patch
Skill3 starsChanged 11 days agoMITView on GitHub
Fix a defect on the smallest context footprint — one band, the affected files. Add --trace to file a defect blueprint.
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Read the description and pin down the affected file(s).
- Distinctive: line 34
Read the affected file(s), and no more of them than the defect requires.
- Very specific: line 41
When --trace is passed:
- Very specific: line 45
Write a short brief.md: summary, root cause hypothesis, affected files, acceptance criterion (the defect no longer reproduces), owning band.
- Very specific: line 66
Never read context.md whole.
- Distinctive: line 67
Do not tidy the surrounding code unless the untidiness is the defect.
“Common” is measured: kept by at least 6 in 10 of the 9 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
Patch
Arguments
Defect description and/or file path(s). Add --trace to file a defect blueprint alongside the fix.
Output
Code fix + root cause. With --trace: also blueprints/defects/<slug>/brief.md and a moved .buildcli/active.
Goal
Diagnose and repair with the least context that can do the job. Load the one band that owns the broken code. Nothing beyond it.
Steps
- Read the arguments:
--tracepresent → file a defect blueprint before fixing (see Trace mode).- Otherwise → fix directly, no blueprint artifacts.
- Read the description and pin down the affected file(s).
- Route to a band by file path or symptom:
- API, service, auth, middleware →
[band:service] - component, page, client state, routing →
[band:interface] - migration, model, query, schema →
[band:store] - test file →
[band:verify] - pipeline, infra, environment config →
[band:delivery]
- API, service, auth, middleware →
- Load only that band:
.buildcli/runtime/bcx band <name>. Never the whole file — with the harness enforced, that read is blocked. - Read the affected file(s), and no more of them than the defect requires.
- Name the root cause. If you are not sure, state the hypothesis before changing anything.
- Apply the minimal fix that resolves it without side effects.
- Flag any risk or follow-up that lands in another band.
Trace mode (--trace)
When --trace is passed:
- Build a kebab-case slug from the description.
- Create
blueprints/defects/<slug>/. - Write a short
brief.md: summary, root cause hypothesis, affected files, acceptance criterion (the defect no longer reproduces), owning band. - Run
.buildcli/runtime/bcx active blueprints/defects/<slug>. - Fix as normal.
- Once fixed, update
brief.mdwith the confirmed root cause and what changed.
Reach for --trace when:
- The defect spans several files or resisted a first diagnosis.
- You want it tracked next to features for the release notes.
- The root cause is surprising and worth writing down.
Output
- The fixed file(s)
- Root cause: one sentence
- Fix summary: what changed and why
- Cross-band flags, if the fix ripples
- With
--trace: the path toblueprints/defects/<slug>/brief.md
Rules
- Never read
context.mdwhole. One band. - Do not tidy the surrounding code unless the untidiness is the defect.
- Root cause still unclear after reading the file? Ask. Do not guess in code.
- A fix that spans bands is not one fix. Flag it and split it.
--traceis opt-in. A one-line typo fix does not need a blueprint.
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- anthropics/defending-code-reference-harness★ 7.5ksame name
- LilMGenius/win-hooks★ 50same name
- scadastrangelove/rust-in-peace★ 25same name
- stefanwebb/named-pipes★ 15same name
- Megaprompting/torque-loop★ 10same name
- air-gapped/skills★ 5same name
- IvandoNascimento/skills★ 1same name
- krixon/skills★ 1same name
- enigmatic-saini/AI_WAY_OF_BUILDING_V1★ 0same name
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 repository19 other files it gives its agents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

