workflow-bug-fixing
Skill7 starsChanged 47 days agoMITView on GitHub
Workflow for bugs, failing tests, CI failures, runtime errors, and regressions, from local repairs through consequential investigations.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- find-skillsSkill
- git-conventional-commitSkill
- skill-creatorSkill
- code-reviewSkill
- define-conventionsSkill
- diagnoseSkill
- feature-specificationSkill
- git-conventional-commitSkill
- implementSkill
- lean-grill-with-docsSkill
- maintain-changelogSkill
- planSkill
- setup-lean-coding-agentSkill
- workflow-feature-developmentSkill
- workflow-planningSkill
- workflow-refactorSkill
- workflow-reviewSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this workflow for bugs and failures.
- Distinctive: line 11
Create an incident report only on request.
- Distinctive: line 23
If the repair expands into feature-level behavior or contract work, stop and request user direction.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bug Fixing Workflow
Use this workflow for bugs and failures. Every run produces a user-approved plan, an implementation report, and review-pass artifacts. The plan records the symptom, evidence, likely root cause, impact, proposed repair, verification, and non-goals in proportion to the failure's consequences.
Create an incident report only on request; offer one for an outage, data loss, or security exposure.
The main agent orchestrates this workflow and owns user communication, repair approval, and closeout; bug-diagnostician owns investigation. Follow the shared scaffolding in AGENTS.md — Workflow Delegation, Standard Artifacts, and Shared Stop Conditions.
Steps
- Investigate and plan. Spawn
plannerwith the request and this workflow's planning requirements. After it signals grill completion, spawnbug-diagnosticianto inspect the relevant code, callers, tests, project context, and documentation and return its investigation, draftingdocs/incidents/incident_YYYYMMDD_<name>.mdonly if requested. Return that investigation to the same planner to incorporate its evidence and the repair contract into the plan. - Approve the repair plan. The main agent presents the completed plan with the symptom, evidence or likely root cause, proposed repair, impact, and verification plan. Obtain explicit user approval of the plan before changing production or test code; this approval authorizes only the repair described in that plan.
- Reproduce and fix test-first. After plan approval, spawn
implementerwith the approved plan and any incident report. Apply$tdd; prefer an existing failing test, otherwise add the smallest focused regression test and observe RED. Make the smallest root-cause change that turns the regression test GREEN, then refactor only while green. Record the TDD and verification evidence in.agents/implementation-reports/implementation_YYYYMMDD_<name>.md. - Review independently. Spawn
code-reviewerwith the approved plan, implementation report, changed files, tests, verification evidence, and any incident report. The reviewer checks root-cause correctness, regression coverage, security, scope, and code smells, records each pass under.agents/code-reviews/review_YYYYMMDD_<name>_pass_N.md, and onAPPROVEfinalizes any incident report from confirmed evidence. - Resolve and verify. On
BLOCK, send only the concrete findings back toimplementer, preserve the approved plan, rerun the focused regression test, and repeat review untilAPPROVEor a Shared Stop Condition triggers. TreatWARNINGas actionable when tied to the repair plan, a likely bug, security/privacy, or a meaningful test gap. Run relevant broader checks, inspect the final diff, and perform the main-agent closeout review.
If the repair expands into feature-level behavior or contract work, stop and request user direction; do not switch workflows automatically.
In the final response, identify the artifact paths, independent reviewer verdict, and main-agent closeout review. Report the confirmed root cause, repair, exact verification results, residual risks, and omissions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

