to-spec
Skill9 starsChanged 3 months agoMITView on GitHub
Turn a hardened discussion into a numbered written spec — a WHAT/WHY contract with problem, solution, user stories, decisions and testing seams — saved to docs/specs/<NNN>-<slug>.md and registered in its INDEX. Use when the user says "spec this out", "write this up as a spec", "make a spec". Synthesises the conversation; does not re-interview.
105 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- prefapp/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use setup-ts-deep-modules, writing-beats and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 17 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 22 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
qwlabsSkillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 16 projects that use this
qhuang20Skillmigrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
Also in 19 projects that use this
AnasX7Skillscaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
Also in 19 projects that use this
- +2 more from Roentek
Other versions105 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 105
- mattpocock/skills★ 335ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- stevesolun/ctx★ 588same name
- nodetool-ai/nodetool★ 551same name
- aws/graph-explorer★ 484same name
- devcxl/mattpocock-skills-zh★ 426same name
- bighadj22/codflow★ 338same name
- loulanyue/skills★ 231same name
- tt-a1i/matt-skills-with-to-goal★ 182same name
- iamyoki/qwen-image-2.1-skill★ 146same name
95 more not listed
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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- create-planSkill
- file-an-issueSkill
- grill-meSkill
- implementSkill
- open-prSkill
- refine-approachSkill
- reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 96 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
- Very specific: line 20
If the conversation has not settled the WHAT (approaches still open, scope undefined), stop and recommend /brainstorm then /grill-me.
- Very specific: line 63
Add a row to docs/specs/INDEX.md (| NNN | title | draft | date |).
“Common” is measured: kept by at least 6 in 10 of the 96 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
To-Spec
Honour .agents/skills/README.md. Crystallise a discussion that already happened into a durable spec: the WHAT/WHY contract the rest of the lifecycle draws from. The HOW comes later.
/brainstorm → /grill-me → **/to-spec** → /file-an-issue → /create-plan → …The next step is /file-an-issue, which slices the spec into GitHub issues — behind a human gate: present the spec, wait for approval.
A spec is temporary; GitHub is the durable contract. Once /file-an-issue runs, it copies Problem + Solution + Out of scope into the parent issue and links the children; from then on the issue is the source of truth and the file is disposable (status: ticketed, frontmatter carries parent:). Never link into a spec from other docs; link to the issue.
Step 0 — Do you have material?
If the conversation has not settled the WHAT (approaches still open, scope undefined), stop and recommend /brainstorm then /grill-me. A spec around an unresolved question gives the ambiguity a filename.
Step 1 — Gather
The conversation above is the primary source. Read docs/brainstorm/<slug>.md if it exists. Only if the discussion never touched the code: a light grounding pass (describe what exists, file:line). Use the repo's vocabulary from AGENTS.md: entry, posting, ledger, quarter file, tool, store, setup, template, language.
Step 2 — Testing seam (the one question you may ask)
Confirm with the user where this is verified: tests/smoke.py (no network — the default), tests/demo_terminal.sh (needs a model key), or the phone against the demo agent. Prefer the highest seam that gives honest confidence; prefer existing seams over new ones.
Step 3 — Number and write
ls docs/specs/ → highest NNN- prefix + 1, zero-padded (001 if empty). Write docs/specs/<NNN>-<slug>.md:
---
slug: <slug>
status: draft
last_verified: <YYYY-MM-DD>
---
# <NNN> — <Feature> — Spec
## Problem
Who feels it, when, what it costs. No implementation.
## Solution
In plain terms. Still no implementation.
## User stories
1. As a <person texting the agent / shop owner / self-hoster / judge in a terminal>, I can <X> so that <benefit>.
## Decisions
Tool shape, prompt rule, ledger convention, store field, language strings — the clarifications the grilling produced. Which existing patterns it reuses; which invariants it respects (six tools, strict check, entry numbers, offset-after-batch, fixed strings in `en` and `ur`).
## Testing decisions
The seam(s) from Step 2 and the closest prior-art test to mirror in tests/smoke.py.
## Out of scope
- <explicitly excluded>
## Further notes
- Open questions, links to the brainstorm doc.Step 4 — Register
Add a row to docs/specs/INDEX.md (| [NNN](NNN-slug.md) | title | draft | date |); create the file with a one-line header if absent.
Step 5 — Hand off (human gate)
Present the spec and wait. Offer: Slice into issues (/file-an-issue, expected) · Plan it directly (/create-plan, single-slice) · Stop.
What NOT to do
- Interview the user (only the seam question). Bake in file paths or code that will go stale (a schema or reply shape that is the decision is fine). Write the HOW. Invent a fact the discussion did not settle — flag it under Further notes.
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.

