fix
Skill9 starsChanged 19 days agoMITView on GitHub
Diagnose the root cause of a bug and fix it with a regression test, from a description, a stack trace or error output, or a GitHub issue link. Stops with a working tree to review. Use for 'fix this', 'this is broken', a pasted traceback, or an issue link where a patch is expected. For a feature use /wf:feature.
97 other projects use a version of this.
Adopted by
Most recently taken up by
- sammollaei/law-firm-skillstheir own version, first seen Nov 29, 2026
- BipBop-Labs/bipbop-skillstheir own version, first seen Nov 29, 2026
- Vulnetix/pix-ai-coding-assistanttheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- holland-built/no-yolotheir own version, first seen Nov 29, 2026
- hacagahasanli/agents-knowtheir own version, first seen Nov 29, 2026
Used with
Projects with it also use genie-hacks, workfly and 10 more.
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.
automagik-devSkillgenie-hacks
Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.
Also in 3 projects that use this
automagik-devSkillworkfly
Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.
Also in 3 projects that use this
VulnesisSkillcontainer-scan
Dockerfile / Containerfile / compose analysis plus optional Trivy / Grype / Syft composition when those binaries are present. Use when reviewing a Dockerfile PR, gating `docker build`, building an image SBOM, evaluating base-image risk, or auditing a registry image for CVEs.
Also in 3 projects that use this
VulnesisSkilldep-resolve
Dependency-conflict resolution when a `fix` version bump fails — diagnose the peer-dep tree, find a compatible safe version set, propose package-manager overrides (`overrides`/`resolutions`/`replace`/`[patch]`), fall back to safe-harbour inline patching. Use when an upgrade is blocked by transitive constraints, a peer-dep conflict surfaces, or you need to override a vulnerable transitive without bumping the parent.
Also in 3 projects that use this
bamlabSkilleol-check
Compare the versions of the platform dependencies this repo runs on (Node, React, React Native, Expo, Next.js, Docusaurus, TypeScript, Firebase Functions runtime) against endoflife.date and npm, and say what to upgrade. Use for an EOL / maintenance / "are we up to date" check, or from the factory's weekly run.
Also in 3 projects that use this
- +7 more from Vulnesis
Other versions97 projects use a version of this.
Word for word · 1
- rafagomes/ai-workflow★ 9100% same
Edited · 0
None found.
Wrote their own version · 96
- react/react★ 253ksame name
- facebook/react★ 253ksame name
- motiondivision/motion★ 36ksame name
- cloudflare/vinext★ 9.4ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- crbnos/carbon★ 2.9ksame name
- Akylas/OSS-DocumentScanner★ 2.7ksame name
- kdlbs/kandev★ 1.2ksame name
86 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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- commitSkill
- designSkill
- featureSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- roadmapSkill
- specSkill
- threat-modelSkill
- verify-designSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 87 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Error output or stack trace: use it as the reproduction.
- Distinctive: line 30
Quality checks: Run the project's lint, typecheck and the full test suite (so a regression elsewhere shows up).
- Very specific: line 37
Report and stop: Do not review your own fix: /wf:pr dispatches wf:reviewer (wf-reviewer in Codex) once the commits exist.
- Distinctive: line 43
Issue link: - if one was provided.
“Common” is measured: kept by at least 6 in 10 of the 87 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
Fix the bug described in $ARGUMENTS.
In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.
Parse arguments
- Description:
/wf:fix users can't login when password contains special chars - Issue link or number:
/wf:fix https://github.com/org/repo/issues/42. Rungh issue view <url|N> --commentsand read the description, comments and labels. Ifghis unavailable, ask for the issue text. - Error output or stack trace: use it as the reproduction.
Branch
Run git fetch origin, and if the tree is dirty with unrelated changes, say so before starting. Resolve the trunk branch as <base>: gh repo view --json defaultBranchRef -q .defaultBranchRef.name, falling back to git symbolic-ref --short refs/remotes/origin/HEAD with origin/ stripped. Work on a short-lived branch cut from origin/<base>, not from another feature branch: fix/<N>-<slug> when there is an issue, fix/<slug> otherwise. Worktree conventions are in your global agent instructions (~/.claude/CLAUDE.md or ~/.codex/AGENTS.md) (Trunk-Based Workflow).
Steps
- Reproduce and locate. Check the project's agent instructions (
CLAUDE.mdorAGENTS.md),README.mdanddocs/for context (for a UI bug,docs/design/DESIGN_SYSTEM.mdtoo, if it exists). Find the code path, then reproduce the failure by running the failing test or the reported steps, telling the user what you are doing. Checkgit logon the affected files for the change that may have introduced it. If you cannot reproduce it, say so, list what you tried and ask for the missing input; do not patch on a guess. - Diagnose the root cause. Trace the data flow from input to the failure point. Explain the cause, not the symptom, in 1-2 sentences before changing code.
- Pick the test layer as in
/wf:featurestep 2 (docs/ARCHITECTURE.mdTesting Strategy, else inferred from the project): unit for pure logic, integration at a boundary (API, database, service interaction), e2e only if a critical user flow broke and had no e2e coverage. - Fix. Write the regression test first and watch it fail for the right reason. Then make the minimal change that fixes the root cause, without refactoring surrounding code, and confirm the test passes. If the bug is at a security trigger (see Security triggers in your global agent instructions (
~/.claude/CLAUDE.mdor~/.codex/AGENTS.md)), note that it needs/security-reviewbefore the PR. Quality checks. Run the project's lint, typecheck and the full test suite (so a regression elsewhere shows up); report each in one line (command, result) and paste output only for a failure.
Risk tier. Derive the tier from the diff (see Risk tiers in your global agent instructions (
~/.claude/CLAUDE.mdor~/.codex/AGENTS.md)). A T2 fix needs a human merge however small; say so in the report.Size gate. Measure the hand-written source this change adds: Measure as in
/wf:featurestep 5 (Size gate): added source lines and changed source files, tests, generated files, lockfiles and pure moves excluded. Past roughly 1,000 lines or ~40 files, decide whether it is still one concern. One concern: carry on, and say in the report how large it is and why it stays together. More than one (a fix that grows into a refactor is two slices): stop and propose a split via AskUserQuestion (or, where it is unavailable but the user can answer in chat, as a short numbered list), and do not leave it in the working tree without the user's override.Report and stop. Do not review your own fix:
/wf:prdispatcheswf:reviewer(wf-reviewerin Codex) once the commits exist. Summarize:- Root cause - 1-2 sentences on what was broken.
- Files changed -
git diff --stat, or a short list. - Regression tests - layers added, where they live, how to re-run them.
- Verification - each check in one line.
- Risk -
T1 — <why>. - Issue link - if one was provided.
Then stop. The user reviews the working tree and decides next steps, typically
/wf:committhen/wf:pr.
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.

