spec-decision
Skill3 starsChanged 9 days agoMITView on GitHub
Record one hard-to-reverse technical decision as an append-only record in docs/decisions/NNNN-title.md, or supersede an existing one. Use when the user makes or asks about an architecture, dependency, interface or non-functional decision, wants an ADR, or wants to reverse an earlier decision.
In this repository6 other files it gives its agents.
- skills/spec-init/scaffolds/AGENTS.mdAGENTS.md
- spec-checkSkill
- spec-driftSkill
- spec-implementSkill
- spec-initSkill
- spec-writeSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
No for: reversible choices.
- Very specific: line 17
Create docs/decisions/ if missing.
- Very specific: line 21
Update docs/architecture.md if the decision changes current structure, linking to the record.
- Distinctive: line 25
Never rewrite an existing record's content.
- Distinctive: line 27
Write a new record whose Context names the old one and why it no longer applies.
- Very specific: line 29
Update docs/architecture.md to the new current state, if the file exists.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
spec-decision
Decision records say why the system is built as it is, including what was rejected. Agents read the current files and skip git log. When the rejected alternatives stay in the text, agents stop proposing them again.
Is a record needed?
Yes for: structure, dependencies, interfaces, data storage, non-functional characteristics, anything expensive to undo. No for: reversible choices. Decide and move on. Say so to the user instead of writing a record.
New record
- Create
docs/decisions/if missing. Next number: highestNNNNindocs/decisions/+ 1 (0001for the first), zero-padded to four digits. Title in kebab-case:0008-use-event-store.md. - Fill
template.mdfrom this folder. Ifspec-write --exploreleft an exploration summary for this decision (.speculatius/*-exploration-*.md), take the alternatives and their reasons from it. One decision, one page (~60 lines) maximum. - Alternatives considered: at least one, each with the concrete reason it lost.
- Consequences: good and bad. A record with only good consequences is incomplete.
- Update
docs/architecture.mdif the decision changes current structure, linking to the record. If the file is missing, do not create it;spec-initdoes that.
Reversing a decision
Never rewrite an existing record's content. Instead:
- Write a new record whose Context names the old one and why it no longer applies.
- In the old record change only the status line:
Status: Superseded by [0012](0012-title.md). - Update
docs/architecture.mdto the new current state, if the file exists.
Allowed edits to an existing record: status, superseded-by links, typos. spec-check and the plan review of spec-write flag other edits.
Reading
docs/architecture.md comes first. Read superseded records only when the decision is being revisited.
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.

