agentleFS
Aquifer-seaAquifer-sea/pattern8/skills/bug_fix/SKILL.md

bug_fix

Skill44 starsChanged 9 months agoMITView on GitHub

Constrains the Agent to follow a structured bug fix process — locate → root cause → fix → regression verify.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before fixing a bug, you must check every item in assets/checklist.yaml.

    line 20
  2. Distinctive:

    If the user has not provided an error message or reproduction steps, you must block and ask.

    line 23
  3. Distinctive:

    Do NOT start fixing until the bug is clearly described and reproducible.

    line 24
  4. Distinctive:

    Must include: root cause analysis, fix plan, fix code (diff format), impact analysis, regression checklist.

    line 30
  5. Very specific:

    If you need to execute commands to reproduce or verify a bug, check references/security.yaml first.

    line 35
  6. Distinctive:

    Do not execute any high-risk commands that could damage existing code or environment.

    line 36
  7. Very specific:

    After fixing, audit your fix against references/guidelines.yaml.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bug Fix

Constrains the Agent to follow the "locate → root cause analysis → fix → regression verification" structured process.

<PIPELINE>

Step 1: Inversion (Requirements Alignment)

Before fixing a bug, you must check every item in assets/checklist.yaml.

<HARD-GATE> If the user has not provided an error message or reproduction steps, you must block and ask. Do NOT start fixing until the bug is clearly described and reproducible. </HARD-GATE>

Step 2: Generator (Generate Fix Report from Template)

Your output must strictly follow the format defined in assets/template.yaml. Must include: root cause analysis, fix plan, fix code (diff format), impact analysis, regression checklist. Vague suggestions like "try changing this" are not allowed.

Step 3: Tool Wrapper (Security Fence)

If you need to execute commands to reproduce or verify a bug, check references/security.yaml first. Do not execute any high-risk commands that could damage existing code or environment.

Step 4: Reviewer (Self-Audit Loop)

After fixing, audit your fix against references/guidelines.yaml. Key checks: does the fix address the root cause? Does it introduce new bugs? Is the diff minimal? Roll back and regenerate if non-compliant, up to 3 retries.

</PIPELINE>

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.