writing-specs
Skill1 starsChanged 4 months agoMITView on GitHub
Writes a specification: detailed requirements and acceptance criteria for settled intent, or a revision to an existing spec. Use when settled intent needs detailed requirements and acceptance criteria before building, including a revision to an existing spec, or when the user asks for a spec, requirements, or acceptance criteria. Skip when current requirements already cover the work, when choosing implementation details, or while a material decision about what the user wants is still pending.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- victorhqc/filberttheir own version, first seen Oct 2, 2026
- JetBrains/thinkrailtheir own version, first seen Sep 29, 2026
- sergeyklay/.agentstheir own version, first seen Sep 28, 2026
- fireshort/skillstheir own version, first seen Aug 26, 2026
- xmtplabs/code-factorytheir own version, first seen May 22, 2026
- devstefancho/skillstheir own version, first seen Feb 10, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- JetBrains/thinkrail★ 508same name
- devstefancho/skills★ 13same name
- sergeyklay/.agents★ 6same name
- victorhqc/filbert★ 4same name
- fireshort/skills★ 1same name
- xmtplabs/code-factory★ 1same name
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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clarifying-intentSkill
- dispatching-parallel-agentsSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- migration-strategySkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- executing-plansSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- complexity-auditSkill
- containing-an-incidentSkill
- debuggingSkill
- diagnosing-a-sessionSkill
- post-mortemSkill
- refactor-architectureSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If the intent itself is unclear, grill it first with clarifying-intent.
- Distinctive: line 28
Write each functional requirement as an observable behavior with a stable ID that successors never recycle:
- Very specific: line 39
Read references/reference-forms.md before choosing the first acceptance form.
- Very specific: line 55
Write the immutable spec to .sdlc-skills/specs/{{YYYY-MM-DD}}-{{topic}}.md or the user-set path.
- Very specific: line 74
Ask through the harness's user-input action when one exists, else print this block.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Writing Specs
Turn an intent into a requirements spec (SRS): gather and analyze what the software must do, how each requirement is verified, and the assumptions, dependencies, and risks involved. Requirements are the what — keep the how (architecture, schemas, code) for design.
When to use
- You have a goal, brief, or feature request and need its detailed requirements before designing or building.
- Skip for a trivial change whose single requirement is obvious — just state it and go.
- If the intent itself is unclear, grill it first with
clarifying-intent; this skill assumes you roughly know what you want. - A reply that has not directly closed a pending decision routes to
clarifying-intent; this skill cannot convert it into approved requirements.
Step 1: Gather and state
- Pull the goal or brief. Read the relevant existing code. Genuine gap →
invoke
clarifying-intent. Invent nothing you could have found. - State the problem in a line or two. Link the goal it serves.
Step 2: Write the requirements
Open assets/spec-template.md before starting; each step fills its section.
Write each functional requirement as an observable behavior with a stable ID that successors never recycle:
Right: R-07 rejects an expired token with a 401 Wrong: R-07 good auth- Carry every applicable guardrail and obligation: trust and data, security, accessibility, compatibility, operational and recovery, performance and resource, supported platforms and modes. No generic NFR list.
- Read
references/reference-forms.mdbefore choosing the first acceptance form. Per requirement, choose the cheapest honest form: executable gate, disposable mockup, source-fact contract, rubric, or prose. - Executable gate → write it as a proposed file beside the spec, never into
the project;
test-driven-developmentlands and runs it inside the task workspace. Interface or mutation authority open → write the observable, intended gate, owner, handoff. Never invent an interface. - List the edge cases and scenarios that break a naive build: empty input, concurrency, unhappy paths.
- Fill every column of the template's assumptions-and-dependencies table, one row per assumption or dependency.
- List open questions, requirement-level risks, and what is out of scope this round.
Step 3: Write and present
- Write the immutable spec to
.sdlc-skills/specs/{{YYYY-MM-DD}}-{{topic}}.mdor the user-set path. - Fill the classification block. Any answer off the ordinary route, or the
user marks the work high-risk → run
assets/spec-review.mdbefore presenting, with a reviewer who is not the sole author. Blocking. Present:
Spec {{path}} — version {{identity (per template)}} Requirements: {{n}} Open questions: {{n}} Out of scope: {{n}} 1. Approve and hand off to design 2. Request changes 3. Reject 4. Cancel Recommendation: {{option the open-question state supports}} — {{one sentence}}.Ask through the harness's user-input action when one exists, else print this block; end the turn;
clarifying-intentowns what closes it.- REQUIRED SUB-SKILL: on option 1, invoke the next missing precondition:
ui-ux-design,system-architecture, ordata-modelfor unresolved non-trivial shape; otherwisewriting-plans. Never impose a phase already complete.
Gotchas
- A retired requirement ID reused for new work silently repoints every earlier citation of it: test names, review comments, out-of-scope links.
- A gate written into the project while specifying lands in whichever checkout is open, before any task workspace exists.
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.

