fix-with-evidence
Skill0 starsChanged 2 months agoMITView on GitHub
Fix a bug using a strict Reproduce -> Fix -> Verify -> PR loop. Triggers on: "fix this", "apply fix", "solve issue".
- Commits and pushes
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Read the issue or symptom description.
- Very specific: line 30
Use Grep + Read to locate the code path involved.
- Distinctive: line 31
Write a test that reproduces the bug.
- Distinctive: line 32
Run the test. Paste the actual failure output in your response.
- Distinctive: line 34
Gate: do not proceed to Phase 2 until you have a failing test with output captured.
- Distinctive: line 40
Do not refactor surrounding code, rename variables, or "clean up" unrelated issues in the same commit.
- Distinctive: line 42
Gate: if the fix requires touching more than ~3 files or reveals a misunderstanding of the issue, STOP and re-scope with the user.
- Very specific: line 46
Run the full project test suite (not just the new test).
- Distinctive: line 53
If the failure survives the stash, it is pre-existing — record that.
- Distinctive: line 56
Gate: do not proceed to Phase 4 until the full suite is green on the branch OR every non-green test is proven pre-existing with stash …
- Distinctive: line 60
Write the PR body to a temporary file (not heredoc, to avoid backtick escaping):
- Distinctive: line 94
Never skip Phase 1. A fix without a reproducing test is a guess.
- Distinctive: line 95
Never claim a failure is "pre-existing" without the git stash proof.
- Distinctive: line 96
Never expand scope mid-fix.
- Very specific: line 97
Never heredoc PR bodies — always --body-file.
- Distinctive: line 98
If any phase reveals the original issue was misunderstood, STOP, re-scope, and restart from Phase 1 on the corrected understanding.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Fix a bug using a strict four-phase evidence loop: Reproduce → Fix → Verify → PR. Each phase gates on the previous.
Trigger: when the user asks for a bug fix, wants to address an issue, or says "fix X". Also triggered directly via /fix-with-evidence <issue>.
Arguments: $ARGUMENTS — an issue number, link, or symptom description. If empty, ask the user.
Phase 1 — Reproduce
- Read the issue or symptom description. For a GitHub issue:
gh issue view <N>. - Use
Grep+Readto locate the code path involved. Citefile:linereferences. - Write a test that reproduces the bug. Add it to the appropriate test file.
- Run the test. Paste the actual failure output in your response.
Gate: do not proceed to Phase 2 until you have a failing test with output captured. If the bug cannot be reproduced in a test, STOP and ask the user how they observed it.
Phase 2 — Fix
- Propose a minimal change. Avoid scope creep — touch only what is required to make the failing test pass.
- Apply the edit.
- Do not refactor surrounding code, rename variables, or "clean up" unrelated issues in the same commit.
Gate: if the fix requires touching more than ~3 files or reveals a misunderstanding of the issue, STOP and re-scope with the user. Do not patch forward.
Phase 3 — Verify
- Run the full project test suite (not just the new test). Detect runner from
Makefile/package.json/go.mod/pyproject.toml. - For any failure other than your new test (which should now pass), prove whether it is pre-existing:
If the failure survives the stash, it is pre-existing — record that. If it disappears, your fix introduced a regression — return to Phase 2.git stash <test-command> git stash pop - Record before/after test counts:
N passed, M failedonmainvs on the branch.
Gate: do not proceed to Phase 4 until the full suite is green on the branch OR every non-green test is proven pre-existing with stash output.
Phase 4 — PR
Write the PR body to a temporary file (not heredoc, to avoid backtick escaping):
## Summary <1–3 bullets> ## Reproduction <how the bug was observed; include the failing test added in Phase 1> ## Root Cause <what was actually wrong; cite file:line> ## Fix <what changed and why; cite file:line> ## Test Evidence Before: <passed>/<failed> on main After: <passed>/<failed> on branch <paste tail of test output> ## Risk <what could break; what you did not touch> Spec ID: <id if applicable>- Open the PR:
gh pr create --title "<title>" --body-file /tmp/pr-body.md - Report the PR URL to the user. Do not merge — that is a separate decision (use
/merge-pr).
Rules
- Never skip Phase 1. A fix without a reproducing test is a guess.
- Never claim a failure is "pre-existing" without the
git stashproof. - Never expand scope mid-fix. If you find a second bug, note it and create a separate issue — do not bundle.
- Never heredoc PR bodies — always
--body-file. - If any phase reveals the original issue was misunderstood, STOP, re-scope, and restart from Phase 1 on the corrected understanding.
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.

