close-spec
Skill1 starsChanged 14 days agoMITView on GitHub
When a spec under .buddhi/.buddhi/specs/<branch>/<branch>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to .buddhi/.buddhi/specs/<branch>/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
4 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- dzhng/jevgrepedited, first seen Nov 7, 2026
- dzhng/skillsedited, first seen Nov 4, 2026
- dzhng/duet-agentedited, first seen Oct 30, 2026
- dzhng/yapedited, first seen Oct 15, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- dzhng/jevgrep★ 3.2k95% same
- dzhng/skills★ 1.5k95% same
- dzhng/yap★ 11295% same
- dzhng/duet-agent★ 5595% same
Wrote their own version · 0
None found.
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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11ySkill
- agents-mdSkill
- antislop-codeSkill
- antislop-copywritingSkill
- antislop-humanSkill
- antislop-layoutmobileSkill
- antislopSkill
- antislop-uiSkill
- askSkill
- audit-agentsSkill
- audit-choicesSkill
- audit-performanceSkill
- audit-testsSkill
- auto-researchSkill
- code-reviewSkill
- compare-screenshotsSkill
- debugSkill
- design-mdSkill
- design-with-imagesSkill
- document-codebaseSkill
- eli5Skill
- eval-skillsSkill
- explore-unknownsSkill
- handoff-specSkill
- implementSkill
- learnSkill
- marketing-pagesSkill
- memorySkill
- okf-contextSkill
- preview-shotsSkill
- quick-planSkill
- ratchet-filesSkill
- refactor-cleanSkill
- rememberSkill
- repoagent-doc-generationSkill
- retroSkill
- reviewSkill
- rtkSkill
- screenshot-critiqueSkill
- specifySkill
- spec-planSkill
- spec-tasksSkill
- statusSkill
- system-designSkill
- verifySkill
- write-docsSkill
- write-skillsSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 3 are common, 0 are distinctive, and 2 are very specific to this project.
3
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 15
Do not summarize the implementation.
- Common: line 24
Diff plan against reality: Read the spec's README and slices, then read what actually landed.
- Very specific: line 68
Promote to OKF Memory & Fix references: Run buddhi memory sdd-promote --branch <branch> to extract verified architectural decisions and …
- Very specific: line 71
If the feature touched UI, ensure A11Y-DECISIONS.md and REPORT.md are preserved alongside the closed spec in .buddhi/specs/done/<feature>/.
- Common: line 90
Treat unsupported, contradicted, or stale statements as defects: fix the spec (or the pointer) and re-audit the changed claims.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Close Spec
A spec is a build plan while you're building and a rationale record once you've shipped. Closing flips it from one to the other. The plan was a ladder of slices and predictions; the record is the layer of meaning the code can't hold — why this exists, what it must never break, what you tried that failed. The code is the single source of truth for how; the closed spec is the source of truth for why, and a map into the code.
Do not summarize the implementation. Anyone can read the code. If a paragraph restates what a function does, cut it and point at the function instead.
Workflow
- Confirm it shipped. The feature is merged or working in-tree and its tests/screenshot gates are green. If slices remain unverified, it isn't done — finish or review first.
- Diff plan against reality. Read the spec's README and slices, then read what actually landed. Note every place the build diverged from the plan: dropped slices, renamed seams, a mechanic that turned out different, an assumption that broke. The divergences are the most valuable thing to record — they're exactly what a future reader would otherwise re-derive.
- Move it.
.buddhi/.buddhi/specs/<branch>/<branch>/→.buddhi/.buddhi/specs/<branch>/done/<feature>/(usegit mv). Single-file specs:.buddhi/.buddhi/specs/<branch>/<branch>.md→.buddhi/.buddhi/specs/<branch>/done/<feature>.md. Rewrite the README as a record, not a plan. Keep:
- Overview & purpose — what shipped and the problem it solves, in present tense ("the economy settles monthly"), not future ("will add").
- The reason — why it works this way and not the obvious alternatives; the constraints and trade-offs that forced the shape. This is the part the code cannot tell you.
- Principles & invariants — the rules the implementation must keep honoring. What must stay true; what would silently break if violated.
- Pointers into the code — greppable module/type/function names, file paths, and the tests that pin the behavior. Send the reader to the code for mechanics; name the entry points so they can find it in one grep.
- Dead ends — approaches tried and rejected, with the reason, so nobody re-walks them.
- Visual provenance — any images that were uploaded as a baseline to match, a comparison target, or inspiration for the look. These are the requirement: they say what "done" had to resemble and why the result took the shape it did. Keep them in-tree and reference them from the README, naming where each came from (a real screenshot, a mood board, a reference game) and what it was driving. Without them a reader sees the outcome but not the standard it was held to.
Cut: slice-by-slice build order, "next we will…", scaffolding instructions, per-slice verification checklists, and any prose that re-narrates code.
- Collapse the slices, preserve the imagery. The slices were the build
ladder; once shipped they're sediment. Fold anything durable (a divergence,
a dead end, an invariant a slice established) into the README, then delete
slices/. But keep the baseline, comparison, and inspiration images — the references the work was measured against — and thevisualizations/orassets/that still help a reader judge the result. These are provenance, not scaffolding: discard a build instruction, never the picture that defined what the build was aiming at. Wire each one into the README's visual-provenance trail so the story of where the requirement came from survives the close. - Promote to OKF Memory & Fix references. Run
buddhi memory sdd-promote --branch <branch>to extract verified architectural decisions and sound choices fromchoices.md,spec.md, andA11Y-DECISIONS.mdinto durable OKF concept nodes under.agents/memory/decisions/and.agents/memory/sdd/. If the feature touched UI, ensureA11Y-DECISIONS.mdandREPORT.mdare preserved alongside the closed spec in.buddhi/specs/done/<feature>/. Update links that pointed at the old path, and repoint memory relations to.buddhi/specs/done/<feature>/spec.md. Audit every statement, unbiased. Spawn sub-agents that did not write the spec and lack the conversation, and have them check the final document claim by claim against the actual code and tests. Fan out — one agent per section, or split the claim list across agents — so no single biased pass waves it through. Each agent returns a verdict per statement:
- Pointer (a named module/type/function/file/test) — does it exist and say what the spec says? Flag stale names and wrong paths.
- Invariant / principle — is it actually enforced in the code, or just asserted? Flag claims the code contradicts or doesn't back.
- Overview / reason — is it consistent with what shipped, present tense, no leftover "will"/"next"/slice numbers?
- Visual provenance — do the referenced baseline/inspiration images still exist in-tree, and does the README say where each came from and what it drove? Flag a result shown with no standard it was held to.
Treat unsupported, contradicted, or stale statements as defects: fix the spec (or the pointer) and re-audit the changed claims. The spec is not closed while any statement is unverified.
Smell Test
- Could a reader reconstruct this paragraph by reading the code? → cut it, leave a pointer.
- Does it say "will" or "next" or name a slice number? → it's still a plan.
- Did a real decision diverge from the plan and go unrecorded? → that's the one thing worth keeping; add it.
- Was there a baseline or inspiration image you were matching against? → keep it and say what it drove; the result is meaningless without the standard.
Done
The spec lives under .buddhi/.buddhi/specs/<branch>/done/, reads as why-and-what-must-hold rather than
how, names the code that implements it, preserves the baseline and inspiration
imagery the work was measured against, and every statement has survived an
unbiased audit against the code. A fresh reader gets the intent, the
invariants, and the visual standard without the code — the story of why it's
done and how the decisions were made — and the mechanics by following the
pointers into it.
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.

