spec-writing
Skill2 starsChanged 2 months agoMITView on GitHub
Use when a chosen bet needs a buildable specification — scope boundaries, testable acceptance criteria, enumerated states and edge cases, and the tracking plan that will measure whether it worked
11 other projects use a version of this.
Adopted by
Most recently taken up by
- crbnos/carbontheir own version, first seen Oct 4, 2026
- converge-ai-labs/agent-foundationtheir own version, first seen Sep 30, 2026
- aditya-deokar/software-factorytheir own version, first seen Sep 29, 2026
- dagarre00/claude-code-templatetheir own version, first seen Sep 7, 2026
- khuynh22/agent-dev-teamtheir own version, first seen Aug 31, 2026
- anyoneanderson/agent-skillstheir own version, first seen Jul 30, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- crbnos/carbon★ 2.7ksame name
- converge-ai-labs/agent-foundation★ 143same name
- itseffi/agentic-os★ 115same name
- damienlaine/agentic-sprint★ 18same name
- khuynh22/agent-dev-team★ 9same name
- Lion-1209/Lion-Skills★ 5same name
- anyoneanderson/agent-skills★ 2same name
- aditya-deokar/software-factory★ 1same name
- bedomax/webdesigner-agent★ 1same name
- dagarre00/claude-code-template★ 1same name
1 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- builder-osSkill
- competitive-intelSkill
- delivery-disciplineSkill
- discovery-methodsSkill
- evidence-ledgerSkill
- experiment-methodologySkill
- financial-modelsSkill
- gate-checksSkill
- growth-frameworksSkill
- ideation-methodsSkill
- okr-frameworksSkill
- opportunity-mappingSkill
- outcome-reviewSkill
- pm-artifactsSkill
- pressure-testingSkill
- problem-framingSkill
- release-opsSkill
- research-methodsSkill
- saas-metrics-referenceSkill
- strategy-frameworksSkill
- tracking-standardsSkill
- using-builder-osSkill
- ux-architectureSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
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 10
Read operating modes first.
- Distinctive: line 14
Read the relevant section of spec methods for the forms, examples and rules behind steps 3 to 7c.
- Distinctive: line 30
Use supplied requirements, current behavior and constraints.
- Distinctive: line 34
Run in order. Delegate where the host allows it, run inline where it does not.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Spec Writing
Phase 4 makes the chosen bet buildable by someone who was not in the conversation, and measurable by someone who reads the result three months later. A spec has one job: remove the decisions an implementer would otherwise make silently.
Read operating modes first. Lifecycle artifact paths, gates and state writes below apply only to an explicitly selected initiative.
Load ux-architecture only for flows needing design work, tracking-standards only for event design, pm-artifacts only for a requested PRD template, and evidence-ledger only for lifecycle tags. Read capability mapping only before resolving external context. Do not recursively load the same skill through UX.
Read the relevant section of spec methods for the forms, examples and rules behind steps 3 to 7c.
Capabilities
| Capability | Used for | Floor if absent |
repo.read | What exists, what the current flows do, what is already instrumented | Ask the user to describe the current behavior; mark the spec as written without code access |
analytics.events | Which of the planned events already exist | Read the instrumentation from source; where there is no source, design from scratch and note it |
docs.search | Prior specs, design decisions, constraints already agreed | Ask |
tickets.read | Bugs and requests that bound the scope | Skip |
files.read / files.write | Previous artifacts, this artifact, state | Required |
Phase 4 needs no data capability. Missing repo.read makes effort estimates softer and the "what exists today" section thinner; it does not block the phase.
Standalone Procedure
Use supplied requirements, current behavior and constraints. Write the requested scope, numbered assertions and relevant states. Mark unknown facts and owner decisions; do not require a solution-bet file or initialize an initiative. A request for a draft does not authorize implementation.
Lifecycle Procedure
Run in order. Delegate where the host allows it, run inline where it does not.
- Read
03-solution-bet.mdand02-definition.md. The selected bet with its primary user action, the kill criteria, and the success metric with its baseline. No03-solution-bet.mdmeans stop: a spec without a chosen bet specifies a guess. - State what exists today. The current behavior in the area the bet touches, read from the code where
repo.readresolved, from the user where it did not. ReadTECH.mdand the constraints inPRODUCT.mdfirst: they bound what the spec may ask for, and a spec that contradicts one names it and says why. - Bound the scope. In scope, then out of scope as not now, not ever by design, or not until X, including the boundary someone will argue with. Gate 4.2 fails an empty list. An undecided in-scope question goes under Not yet specified with who decides it and which acceptance criteria wait on it, never under out of scope.
- Design the flows. Hand information architecture, flows, per-step states, the component inventory and the accessibility floor to
ux-architecture, which writesDESIGN.md; consume its flow list. Delegate visual craft to a design-quality toolchain where the session has one. Every flow traces to the phase 3 primary action. - Write acceptance criteria. One per requirement, numbered, because phase 5 maps tests to them by number. Gate 4.1: each is a testable assertion with a subject that exists in the product, a verb with an observable outcome, and a condition under which it is checked. Adjective test: strike every adjective; if nothing verifiable remains, it was not a criterion.
- Enumerate states and edge cases. Six states per flow: empty, loading, partial, error, success, permission; gate 4.3 requires empty and error for every flow. Then the four edge-case categories: zero/one/many/too many, concurrency, interrupted, hostile or malformed input. Every case gets an expected behavior; "undefined" only when written down as a deliberate choice.
- Design the tracking plan, before the build. Gate 4.4: work backwards from the phase 2 metric to the events and properties that compute it. Check each against the existing catalogue via
tracking-standards, mark it new or existing, and state how the events produce the number.
7b. If a criterion depends on model output, write the eval set before the build and before the prompt. Declare **Model output:** yes; gate 4.6 checks an actual dataset file of at least 20 cases (10 in lite mode) with a threshold, a judge and must-pass cases. Label synthetic cases; never invent unavailable real inputs as observations.
7c. List the constraint conflicts. Check each requirement against the PRODUCT.md and TECH.md constraints. Write every collision with who decides it and the criteria it blocks, or state which constraints were checked and that none collide; gate 4.7 requires the ## Conflicts section. Close conflicts with their owner before acceptance, or carry them as blocking edges into phase 5.
- Write and gate. Write
.builderos/initiatives/{initiative}/04-spec.md, confirmDESIGN.mdexists, run gate 4. On a pass, present the spec and ask for acceptance (a technical reviewer joins for a high-risk change); record it with the person's answer (scripts/bos.mjs record 4 --judged "{judge-id}=pass|fail,..." --accepted-by "who"where commands run), which advances to phase 5. Never accept on their behalf.
Completion marker: ## SPEC COMPLETE with the scope boundaries, the conflicts, the numbered acceptance criteria, the state coverage, the tracking plan, the gate result and who accepted.
Output Contract
.builderos/initiatives/{initiative}/04-spec.md, written to the spec template. Gate 4 parses its headings, bold labels and tables, so keep them exactly.
Common Mistakes
| Mistake | Why it fails | Correct |
| An open question filed under out of scope | The question disappears and the implementer answers it silently | Out of scope is beyond the bet; an undecided in-scope question goes under Not yet specified |
| An adjective doing the work in a criterion | Nothing to test in phase 5 | Strike the adjectives; what remains must be verifiable |
| Only happy-path states | The partial and permission states generate the support load | Six states per flow, every time |
| "The summary is accurate" as a criterion for model output | Nothing to assert; the build is judged by whoever demos it | Declare model output, write the eval set with a threshold |
| Recording gate 4 because it passed | Nobody accepted the spec; the agent approved its own work | Ask, and record only with the person's answer |
More rows close spec methods.
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.

