agentleFS
Cody-SimsCody-Sims/agent-skills/skills/requirements-and-spec-writing/SKILL.md

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.

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
  1. Distinctive:

    Use this before planning or implementation when the request is ambiguous, spans several components, has unclear success criteria, or …

    line 31
  2. Distinctive:

    Ask one focused question at a time, and only when the answer cannot be inferred from the context already gathered.

    line 43
  3. Distinctive:

    Write acceptance criteria as observable, checkable outcomes, not intentions.

    line 47
  4. Distinctive:

    Before declaring the specification ready:

    line 78
  5. Distinctive:

    Every requirement is testable and each has a matching acceptance criterion.

    line 80
  6. Distinctive:

    No section silently guesses a decision the requester must own.

    line 83

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Restate the request in your own words and confirm the restatement is correct before proceeding.
  2. Gather context from existing code, documents, and constraints so the specification does not contradict what already exists.
  3. Draft each section in order. Fill what the context supports and mark the rest as an open question rather than guessing.
  4. Ask one focused question at a time, and only when the answer cannot be inferred from the context already gathered. Batch trivial confirmations.
  5. Separate facts, assumptions, and unresolved decisions explicitly. Label every assumption so the requester can correct it.
  6. Write acceptance criteria as observable, checkable outcomes, not intentions.
  7. Record non-goals to prevent scope creep, and note alternatives considered with the reason each was set aside.
  8. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.