bug-fix
Skill0 starsChanged 2 months agoMITView on GitHub
Reproduce a reported defect, establish its cause, implement a fix, and verify the original failure.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- eugenelim/agent-ready-repotheir own version, first seen Oct 3, 2026
- lldwb/lldwb-claude-skillstheir own version, first seen Sep 28, 2026
- sd0xdev/sd0x-harnesstheir own version, first seen Sep 26, 2026
- GangJaeYu/harness_loop_full_koreantheir own version, first seen Sep 23, 2026
- IAbuElRuzz/AgentSkillstheir own version, first seen Sep 16, 2026
Used with
Projects with it also use refactor and code-review.
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.
GitHubSkillrefactor
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
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- techygarg/lattice★ 197same name
- sd0xdev/sd0x-harness★ 191same name
- undeadlist/claude-code-agents★ 149same name
- nwiizo/claudelytics★ 89same name
- eugenelim/agent-ready-repo★ 24same name
- chrisallenlane/claude-swe-workflows★ 18same name
- hadyfayed/laravel-agent★ 14same name
- eugenelim/llm-wiki-kit★ 12same name
- mae616/ai-template★ 9same name
- thixpin/claude-config★ 8same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- instructions/CLAUDE.mdCLAUDE.md
- author-skillSkill
- architectSkill
- arenaSkill
- astack-helpSkill
- astack-updateSkill
- claude-background-jobsSkill
- codex-background-jobsSkill
- create-verification-skillSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grillingSkill
- handoffSkill
- harden-prSkill
- hillclimbSkill
- howSkill
- implementSkill
- improve-codebase-architectureSkill
- investigationSkill
- multi-phase-planSkill
- no-commentsSkill
- open-prSkill
- orchestrateSkill
- perf-issueSkill
- principlesSkill
- prototypeSkill
- refactoringSkill
- reflectSkill
- review-prSkill
- run-jobSkill
- ship-prSkill
- show-me-your-workSkill
- t3-previewSkill
- tddSkill
- teachSkill
- technical-writingSkill
- to-specSkill
- typescript-best-practicesSkill
- unslopSkill
- wayfinderSkill
- whySkill
- wizardSkill
- worktree-cleanupSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
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
- Distinctive: line 16
Verify on the same UI, CLI, or API.
- Distinctive: line 17
Keep the failing-before and passing-after evidence.
- Distinctive: line 18
Use open-pr within the task's delivery scope.
“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.
Files
Bug fix
You own this task. Plan, review, verify. Delegate investigation and the fix with the available subagent tools. Review the findings and diff yourself. If delegation is unavailable, do the work directly and make the separate review pass explicit.
Be scientific. Tie each fix to runtime evidence. When evidence refutes a hypothesis, remove the experimental changes it motivated while preserving unrelated work. Ship the smallest change the evidence justifies.
- Reproduce the user's failure yourself through the affected UI, CLI, or API in an authorized environment. Use diagnosing-bugs phases 1 through 4 for the feedback loop, minimization, and cause. This workflow owns implementation and delivery below. Use the available control tools. If access prevents reproduction, state what you tried and the specific missing access or artifact. Continue useful investigation with unverified hypotheses clearly labeled.
- Narrow the cause with the diagnosis loop. Use how for the affected subsystem and why for relevant regression history. Run independent code and history inquiries in parallel when possible. Each experiment should distinguish the remaining hypotheses. Confirm the mechanism with runtime evidence before designing a fix.
- Plan the fix. If it crosses a function boundary, read architect first. Before implementation, follow tdd's bug-fix workflow to establish failing-before evidence at a practical test boundary, or explain the alternative check. Delegate implementation with the scope, confirmed mechanism, reproduction command, and acceptance criteria. Review the diff.
- Verify on the same UI, CLI, or API. Rerun the original reproduction, the regression check, and relevant adjacent checks. "Inconclusive" or a check of a different interface is not a pass. Apply diagnosing-bugs' cleanup and intermittent-failure criteria.
- Keep the failing-before and passing-after evidence. Follow sequence-verifiable-units for ordered commits when the work has several units. Run review-pr in fix-and-review mode before delivery.
- Use open-pr within the task's delivery scope. Honor a request for local edits only. Merging is a separate action.
For a unit in a multi-phase plan, follow the shared execution-state convention. Reuse its store. Delegated workers return evidence to the coordinator. For a session transfer, read handoff. Include the reproduction command, hypotheses ruled out, current instrumentation, and evidence paths.
Reply: what was broken, root cause, fix, and verification. Include redacted failing-before and passing-after output, or state which evidence is unavailable.
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.

