requirements-and-spec-writing
Skill0 starsChanged 4 months agoMITView on GitHub
Turns an ambiguous or large request into an agreed written specification before implementation, covering objective, users and use cases, requirements, non-goals, interfaces and data contracts, security and privacy, error and edge cases, acceptance criteria, open questions, alternatives considered, and rollout and rollback. Use when a request is vague, scope or acceptance criteria are unclear, or the user asks for a spec, requirements, or a design before coding begins.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-tool-interface-designSkill
- codebase-explorationSkill
- code-reviewSkill
- copilot-cloud-agentSkill
- documentation-maintenanceSkill
- external-skill-reviewSkill
- git-and-pr-workflowSkill
- parallel-worktree-deliverySkill
- planning-and-task-breakdownSkill
- refactoring-and-dead-code-removalSkill
- repository-agent-bootstrapSkill
- security-reviewSkill
- shadow-architectureSkill
- shadow-dreamSkill
- shadow-driftSkill
- shadow-observeSkill
- skill-creatorSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- verification-disciplineSkill
- wayfinder-planningSkill
- web-research-and-verificationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
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 31
Use this before planning or implementation when the request is ambiguous, spans several components, has unclear success criteria, or …
- Distinctive: line 43
Ask one focused question at a time, and only when the answer cannot be inferred from the context already gathered.
- Distinctive: line 47
Write acceptance criteria as observable, checkable outcomes, not intentions.
- Distinctive: line 78
Before declaring the specification ready:
- Distinctive: line 80
Every requirement is testable and each has a matching acceptance criterion.
- Distinctive: line 83
No section silently guesses a decision the requester must own.
≈ “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
Requirements and Spec Writing
Convert an unclear request into a specification that a builder can implement and a reviewer can check, before any code is written.
Goal
Produce a written specification the requester agrees to, separating confirmed facts from assumptions and unresolved decisions.
Inputs
- Required: the original request and its context.
- Optional: existing code, documents, or constraints the specification must respect.
- Output: a specification following the section order below. Copy the spec template to start.
When to use
Use this before planning or implementation when the request is ambiguous, spans several components, has unclear success criteria, or carries security or data implications. Skip it for a small, well-defined change with an obvious outcome.
Workflow
- Restate the request in your own words and confirm the restatement is correct before proceeding.
- Gather context from existing code, documents, and constraints so the specification does not contradict what already exists.
- Draft each section in order. Fill what the context supports and mark the rest as an open question rather than guessing.
- Ask one focused question at a time, and only when the answer cannot be inferred from the context already gathered. Batch trivial confirmations.
- Separate facts, assumptions, and unresolved decisions explicitly. Label every assumption so the requester can correct it.
- Write acceptance criteria as observable, checkable outcomes, not intentions.
- Record non-goals to prevent scope creep, and note alternatives considered with the reason each was set aside.
- Present the specification for agreement. Resolve open questions or carry them forward explicitly before implementation starts.
Specification sections
- Objective: the outcome and why it matters, in one short paragraph.
- Users and use cases: who uses this and the concrete scenarios they perform.
- Requirements: functional and non-functional statements, each testable.
- Non-goals: what is deliberately excluded from this work.
- Existing-system constraints: interfaces, data, and conventions to respect.
- Interfaces and data contracts: inputs, outputs, formats, and schemas.
- Security and privacy: sensitive data, authorization, and trust boundaries.
- Error and edge cases: invalid input, empty state, limits, and failure modes.
- Acceptance criteria: observable conditions that prove the work is complete.
- Open questions: unresolved decisions and who must decide.
- Alternatives considered: options evaluated and why they were not chosen.
- Rollout and rollback: how the change is delivered and how it is reverted.
Decision points
- Context answers a question: record it as a fact and cite the source.
- Context cannot answer and the decision matters: raise it as an open question.
- Context cannot answer but the decision is minor: state a labeled assumption and continue.
- Scope keeps growing: move the excess into non-goals or a follow-up.
Validation
Before declaring the specification ready:
- Every requirement is testable and each has a matching acceptance criterion.
- Non-goals and open questions are explicit.
- Security, privacy, and error handling are addressed or listed as open.
- No section silently guesses a decision the requester must own.
Output format
Return the completed specification, a short list of assumptions made, and the open questions that still need a decision before implementation.
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.

