agentleFS
HarambeeAIHarambeeAI/bayes-ship/skills/ship-bugfix/SKILL.md

ship-bugfix

Skill1 starsChanged 7 months agoMITView on GitHub

Systematic bug diagnosis and fix using 4-phase root cause analysis. Writes a failing test for the bug (RED), fixes it (GREEN), verifies no regressions. Argument is the bug description.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

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

    Test hypotheses: Add logging, inspect state, trace execution to narrow down.

    line 20
  2. Distinctive:

    Consider whether the fix should also add defensive checks upstream to prevent similar bugs.

    line 24
  3. Distinctive:

    Write a failing test that reproduces the bug exactly (RED).

    line 27
  4. Distinctive:

    Run the full test suite. Confirm no regressions.

    line 32
  5. Distinctive:

    Verify the original reproduction now works correctly.

    line 33

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

Bugfix — Systematic diagnosis and fix

Usage

/bayes-ship:ship-bugfix <description of the bug>

Process

Phase 1: Reproduce

Dispatch a debugger subagent to create a minimal reproduction of the bug. If the bug cannot be reproduced, report this and ask the user for more details.

Phase 2: Root cause tracing (4-phase systematic process)

  1. Gather evidence: Collect logs, error messages, stack traces, relevant code paths.
  2. Form hypotheses: List 2-3 possible causes based on evidence.
  3. Test hypotheses: Add logging, inspect state, trace execution to narrow down.
  4. Confirm root cause: Prove the fix addresses the actual cause, not a symptom.

Phase 3: Defence-in-depth

Consider whether the fix should also add defensive checks upstream to prevent similar bugs.

Phase 4: Fix (TDD)

  1. Write a failing test that reproduces the bug exactly (RED).
  2. Fix the code to make the test pass (GREEN).
  3. Refactor if needed.

Phase 5: Verify

  1. Run the full test suite. Confirm no regressions.
  2. Verify the original reproduction now works correctly.
  3. Atomic commit with descriptive message referencing the bug.

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.