read-before-build
Skill1 starsChanged 23 days agoMITView on GitHub
"A plan or design document is an aspiration, not a specification. Before
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .gemini/AGENTS.mdAGENTS.md
- .cursor/rules/agent-foundry-orchestrator.mdcCursor rule
- .cursor/rules/agent-foundry-skills.mdcCursor rule
- web/llms.txtllms.txt
- anti-slopSkill
- api-designSkill
- automation-pickSkill
- bottleneck-gatingSkill
- budget-guardSkill
- cache-identitySkill
- constraint-then-solveSkill
- context-optimizationSkill
- cron-troubleshootSkill
- e2e-test-strategySkill
- engram-routingSkill
- execution-observabilitySkill
- fallback-model-routingSkill
- feedback-loopSkill
- judge-integritySkill
- knowledge-extractSkill
- landscape-firstSkill
- measure-firstSkill
- plan-before-codeSkill
- plan-then-actSkill
- prompt-disciplineSkill
- pushback-when-wrongSkill
- quality-protocolSkill
- re-verify-findingsSkill
- session-closeoutSkill
- session-distillSkill
- show-your-workSkill
- structured-output-contractSkill
- verify-firstSkill
- workflow-decomposeSkill
- agent-memory-vaultSkill
- agent-team-standardsSkill
- autonomous-briefingSkill
- book-to-skillSkill
- chrome-devtools-mcp-bridgeSkill
- design-languageSkill
- funnel-pr-guardSkill
- persistent-memorySkill
- sql-migration-trioSkill
- token-compressionSkill
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 33
Wrong name: use the real exported name.
- Distinctive: line 44
Create independent new files together, then change existing files one group at a time and run the narrowest check after each group.
- Distinctive: line 55
Search for the real symbol before creating a new one.
- Distinctive: line 57
If the symbol truly does not exist, decide whether to create it or reuse an existing path.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Inspect Before Build
A design document describes intent. The source describes what exists. Check the source before implementing the plan.
Procedure
1 - Check each plan claim against the source
| Claim from plan | What to inspect | Verdict |
| "X has a fake progress bar" | X component and its state source | May already be real |
| "Y is minimal" | Y component | Plan may be right about missing features |
| "function N exists" | Actual exports and signatures | Plan may name the wrong symbol |
Common findings:
- Already fixed: skip it; do not re-implement.
- Wrong name: use the real exported name.
- Already done: the design doc is stale; skip it.
- Partially right: implement only the true gap.
2 - Record the discrepancies
Record a short "What the plan got wrong" note in the plan or handoff. Future sessions should not rediscover the same stale claims.
3 - Batch independent work, serialize dependent work
Create independent new files together, then change existing files one group at a time and run the narrowest check after each group.
Order within a phase:
- New migrations and independent utilities
- Existing code that depends on them
- Registration, routing, or index wiring
4 - When the build breaks
- Search for the real symbol before creating a new one.
- A missing import often means the name changed; find the new name.
- If the symbol truly does not exist, decide whether to create it or reuse an existing path.
5 - Verify against behavior
A compile or typecheck proves syntax, not the requested behavior. Run the smallest runtime check that exercises the changed path.
Anti-patterns
- Implementing every line of a plan literally.
- Trusting a symbol name in a design document without checking exports.
- Re-implementing a feature that already exists.
- Treating a successful build as proof the behavior works.
- Rewriting the plan silently instead of recording the discrepancy.
Verification Checklist
- Every plan claim about current code was checked against source.
- Real symbol names and signatures were used.
- Work already present was skipped.
- Discrepancies were written back into the plan or handoff.
- The changed path has a runtime check, not only a compile.
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.

