bug-patch
Skill1 starsChanged 5 months agoMITView on GitHub
Invoke when user shares a GitHub issue, bug report, error log, or failing test. "this is failing", "fix this issue", "patch this bug", "issue report", "bug report", "GitHub issue", "failing test". SDLC categories: Program Repair, Defect Detection, Software Maintenance. SWE-Bench class output — correct, runnable patches.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- apex-archSkill
- apex-debugSkill
- apex-flexSkill
- apex-infraSkill
- apex-novaSkill
- apex-perfSkill
- apex-reedSkill
- apex-reviewSkill
- apex-secSkill
- apexSkill
- apex-uiSkill
- debug-protocolSkill
- deploy-pipelineSkill
- full-stack-scaffoldSkill
- mvp-cutSkill
- perf-auditSkill
- pr-reviewSkill
- refactorSkill
- requirements-to-specSkill
- researchSkill
- sec-reviewSkill
- system-designSkill
- test-harnessSkill
- ui-generateSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 22
Must not break existing tests
- Distinctive: line 23
Must be minimum change that fixes the issue
- Distinctive: line 24
Must be applicable with: git apply patch.diff
- Distinctive: line 25
Test must fail before patch, pass after patch
≈ “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
Bug Patch Protocol (SWE-Bench Class)
- READ issue description completely
- LOCATE relevant code (ask or search)
- REPRODUCE failure condition mentally (or actually if shell available)
- ISOLATE root cause — not a symptom, the cause
- WRITE minimal patch (diff format preferred)
- WRITE regression test — proves patch works
- OUTPUT patch + test + one-line explanation of root cause
Patch quality (SWE-Bench criteria):
- Must not break existing tests
- Must be minimum change that fixes the issue
- Must be applicable with: git apply patch.diff
- Test must fail before patch, pass after patch
Output:
```diff
[the patch][test that fails before, passes after] Root cause: [one line]
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.

