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.
In this repository43 other files it gives its agents.
- accessibilitySkill
- agent-evalSkill
- agentic-engineeringSkill
- ai-regression-testingSkill
- api-designSkill
- atomic-planningSkill
- backend-patternsSkill
- coding-standards-eccSkill
- context-engineeringSkill
- frontend-patternsSkill
- git-worktreesSkill
- langchain-dependenciesSkill
- langchain-fundamentalsSkill
- langchain-middlewareSkill
- langchain-ragSkill
- langgraph-fundamentalsSkill
- langgraph-persistenceSkill
- minimalist-skillSkill
- output-skillSkill
- redesign-skillSkill
- security-scanSkill
- ship-architectSkill
- ship-autoSkill
- ship-deploySkill
- ship-discoverSkill
- ship-executeSkill
- ship-finish-branchSkill
- ship-newSkill
- ship-planSkill
- ship-researchSkill
- ship-resumeSkill
- ship-reviewSkill
- ship-settingsSkill
- ship-specSkill
- ship-statusSkill
- ship-testSkill
- ship-worktreeSkill
- soft-skillSkill
- systematic-debuggingSkill
- taste-skillSkill
- test-driven-developmentSkill
- two-stage-reviewSkill
- verification-before-completionSkill
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
- Distinctive: line 20
Test hypotheses: Add logging, inspect state, trace execution to narrow down.
- Distinctive: line 24
Consider whether the fix should also add defensive checks upstream to prevent similar bugs.
- Distinctive: line 27
Write a failing test that reproduces the bug exactly (RED).
- Distinctive: line 32
Run the full test suite. Confirm no regressions.
- Distinctive: line 33
Verify the original reproduction now works correctly.
≈ “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.
Files
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)
- Gather evidence: Collect logs, error messages, stack traces, relevant code paths.
- Form hypotheses: List 2-3 possible causes based on evidence.
- Test hypotheses: Add logging, inspect state, trace execution to narrow down.
- 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)
- Write a failing test that reproduces the bug exactly (RED).
- Fix the code to make the test pass (GREEN).
- Refactor if needed.
Phase 5: Verify
- Run the full test suite. Confirm no regressions.
- Verify the original reproduction now works correctly.
- Atomic commit with descriptive message referencing the bug.
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.

