close-spec
Skill2.3k starsChanged 2 months agoMITView on GitHub
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/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).
2 other projects use a version of this.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- dzhng/skillsword for word, first seen Oct 4, 2026
- dzhng/duet-agentword for word, first seen Oct 2, 2026
Who's talking about dzhng/jevgrep
- A Hacker News story“Jevgrep: A CLI for coding agents that uses Jev to discover relevant files”Hacker News · Sep 28, 2026 · 5 points
- @sarubot.bsky.social“jevgrep — AIのコード探索コストを約30%削減するTypeScript製CLI ・自然言語でコードの役割を質問し、関連ファイルや該当箇所を特定 ・Claude …”Bluesky · Oct 1, 2026 · 2 likes
- Amitro123/knowledgeBase-Agent“Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs)”GitHub · Oct 4, 2026
- 8gi-foundation/8gent-code“Scout pitch: Question-driven code locator (ask a question, get files and source in one answer)”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.dzhng.jevgrep: init at 0.8.0”GitHub · Oct 3, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Bluesky and Hacker News (8 times).
On GitHub · 5
- Oct 4, 2026Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs) — Amitro123/knowledgeBase-Agent0 reactions · 3 comments
- Oct 3, 2026Scout pitch: Question-driven code locator (ask a question, get files and source in one answer) — 8gi-foundation/8gent-code0 reactions
- Oct 3, 2026agent-skills.github.dzhng.jevgrep: init at 0.8.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026jevgrep: init at 0.3.0 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 26, 2026docs: add jevgrep (dzhng) listing — AppitStudio/awesome-jev0 reactions
On Bluesky · 2
- Oct 1, 2026jevgrep — AIのコード探索コストを約30%削減するTypeScript製CLI ・自然言語でコードの役割を質問し、関連ファイルや該当箇所を特定 ・Claude Code等のAIエージェントにスキルとして組み込み可能… — @sarubot.bsky.socialsays it tested it2 likes and reposts
- Sep 26, 2026RT @dzhng: Introducing jevgrep - a research agent CLI powered by jev from @typesafeai that reduces your coding agent cost by 40% (verified… — @theo-mir-rt.selfhosted.socialsays it tested it0 likes and reposts · 1 reply
On Hacker News · 1
- Sep 28, 2026Jevgrep: A CLI for coding agents that uses Jev to discover relevant files5 points
Other versions2 projects use a version of this.
Word for word · 2
- dzhng/skills★ 978100% same
- dzhng/duet-agent★ 46100% same
Edited · 0
None found.
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 repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agentsSkill
- audit-choicesSkill
- audit-performanceSkill
- audit-testsSkill
- auto-researchSkill
- claudeSkill
- code-reviewSkill
- codexSkill
- compare-screenshotsSkill
- design-with-imagesSkill
- eli5Skill
- eval-skillsSkill
- explore-unknownsSkill
- handoff-specSkill
- implement-specSkill
- implement-spec-with-codexSkill
- jevgrepSkill
- launch-videoSkill
- marketing-pagesSkill
- preview-shotsSkill
- refactor-cleanSkill
- reviewSkill
- screenshot-critiqueSkill
- typesafe-aiSkill
- write-docsSkill
- write-skillsSkill
- write-specSkill
- write-testsSkill
- jevgrepSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Do not summarize the implementation.
- Distinctive: line 24
Diff plan against reality: Read the spec's README and slices, then read what actually landed.
- Very specific: line 68
Fix references: Update links that pointed at the old path.
- Distinctive: line 86
Treat unsupported, contradicted, or stale statements as defects: fix the spec (or the pointer) and re-audit the changed claims.
≈ “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
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.
specs/<feature>/→specs/done/<feature>/(usegit mv). Single-file specs:specs/<feature>.md→specs/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. - Fix references. Update links that pointed at the old path. If
[[memory]]notes or other skills referenced the spec, repoint them. 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 specs/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.

