agentleFS
suleymanbyztsuleymanbyzt/agent-helm/skills/bug-fix/SKILL.md

bug-fix

Skill1 starsChanged 3 months agoMITView on GitHub

Use when investigating or fixing a bug, error, crash, regression, or unexpected behavior. Enforces reproduce-first, evidence-based root cause analysis, and a regression test before the fix.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactor.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 5

    Distinctive

    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
  1. Distinctive:

    If you cannot reproduce it, say so and propose what extra evidence you need (logs, inputs, environment).

    line 19
  2. Distinctive:

    Follow the evidence chain: observed behavior → project source → dependency source → docs.

    line 23
  3. Distinctive:

    Do not touch the failing test's assertions to make it pass.

    line 49
  4. Distinctive:

    Do not fix the symptom and call it done.

    line 50
  5. Distinctive:

    Do not batch unrelated "improvements" into the bug fix.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “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

Goal: fix the cause, prove it stays fixed, leave a record.

Steps

  1. Observe. Collect what is actually known: error message, logs, failing input, expected vs. actual behavior. Write down what is evidence and what is assumption.
  2. Reproduce. Make the bug happen on demand — ideally as a failing automated test. If you cannot reproduce it, say so and propose what extra evidence you need (logs, inputs, environment). Do not "fix" what you cannot see fail.
  3. Find the root cause. Follow the evidence chain: observed behavior → project source → dependency source → docs. If the docs and the behavior disagree, the behavior wins — read the library source if you must. The root cause is the answer to "why did this happen", not "where does it hurt".
  4. Write the regression test first. A test that fails because of the bug. This is the proof your fix works and the guard against the bug returning.
  5. Fix. The smallest change that removes the cause. If the real fix is large or risky (L2/L3), propose it with the Problem / Plan / Risk / Question message before implementing. If you must ship a workaround instead of the root-cause fix, say so explicitly — never disguise one as the other.
  6. Verify. The regression test passes, the full relevant test suite passes, and nothing else changed behavior. Run the verify-work skill.
  7. Record. Journal entry: docs/agent-journal/YYYY-MM-DD-bug-<slug>.md (format: Problem / How found / Root cause / Fix / Regression test).

Do not

  • Do not touch the failing test's assertions to make it pass.
  • Do not fix the symptom and call it done.
  • Do not batch unrelated "improvements" into the bug fix.

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.