agentleFS
monaccodemonaccode/astromesh-sdd/skills/sdd-specify/SKILL.md

sdd-specify

Skill0 starsChanged 29 days agoApache-2.0View on GitHub

Use when the user describes a new feature, change or product idea and no spec exists for it yet, or when a requirement must be added or changed. Writes specs/NNN-slug/spec.md with numbered, testable requirements and marks open questions instead of guessing.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. mariano-aguero/spec-driven-development-skill★ 11same name
    2. pchemguy/Skill-SDD-Manager★ 0same 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 repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before anything else, read these if they exist.

    line 14
  2. Very specific:

    Write every artifact in language.

    line 25
  3. Distinctive:

    If the user points at an existing spec, go to Changing a spec below.

    line 30
  4. Very specific:

    Read <specs_dir>/constitution.md if it exists.

    line 37
  5. Very specific:

    Ask at most 3 questions, one at a time, and only about things that change scope: who the user is, what must happen, what is explicitly out.

    line 42
  6. Very specific:

    Write spec.md from the template.

    line 49
  7. Distinctive:

    Before the gate, re-read the spec and fix inline:

    line 58
  8. Distinctive:

    Add a row to the spec's Changelog.

    line 75
  9. Very specific:

    If plan.md or tasks.md exist, list the steps and tasks that cite the changed IDs so they can be updated next.

    line 78
  10. Very specific:

    If specify is in gates: show the user the artifact path and a 3–5 line summary, list any [NEEDS CLARIFICATION] items, and stop.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

SDD — Specify

The spec says what the system must do and why. It never says how: no file names, frameworks or APIs unless the user mandated them. It is the contract the plan, the tasks and the verification are checked against.

Step 0 — Load project settings

Before anything else, read these if they exist. Missing files are normal; use the defaults.

  1. .sdd/config.yaml in the project, else ~/.sdd/config.yaml. Defaults: specs_dir: specs, language: en, ids: {requirement: REQ, task: T}, gates: [specify, plan, tasks], verify_command: "", phases: [constitution, specify, plan, tasks, implement, verify].
  2. Template: .sdd/templates/spec.md, else ~/.sdd/templates/spec.md, else templates/spec.md next to this file.
  3. Extra rules: .sdd/rules/all.md and .sdd/rules/specify.md (project, then global). They add to this skill; when they conflict with it, they win.

Write every artifact in language. Use the configured ID prefixes everywhere this skill says REQ or T.

Step 1 — Find or create the feature dir

  • If the user points at an existing spec, go to Changing a spec below.
  • Otherwise the next number NNN is the highest three-digit prefix in specs_dir plus one (start at 001). The slug is kebab-case, at most 5 words, from the feature title. Create <specs_dir>/NNN-<slug>/.

Step 2 — Read context

Read <specs_dir>/constitution.md if it exists. Read code only as far as you need to understand the domain and the current behavior — you are not designing yet.

Step 3 — Ask, don't invent

Ask at most 3 questions, one at a time, and only about things that change scope: who the user is, what must happen, what is explicitly out. Anything else you do not know goes into the spec as [NEEDS CLARIFICATION: <question>]. Never fill a gap with a plausible guess; a guess in a spec becomes a requirement nobody asked for.

Step 4 — Write spec.md

Write spec.md from the template.

  • Each requirement is REQ-n: one sentence, one observable behavior ("the system does X when Y"), followed by at least one acceptance criterion in Given / When / Then.
  • A requirement that contains "and" usually hides two. Split it.
  • List non-goals explicitly. They are what stops scope creep later.

Step 5 — Self-check

Before the gate, re-read the spec and fix inline:

  • Can every REQ be tested by someone who did not write it?
  • Is any implementation detail leaking in?
  • Does anything contradict the constitution or another requirement?
  • Is anything ambiguous enough to be built two ways? Make it explicit or mark it [NEEDS CLARIFICATION].

Changing a spec

Requirements change; their IDs do not. When a requirement is added or changed — by the user or because implementation discovered it:

  • A new requirement takes the next free number. IDs never renumber and are never reused, because plans, tasks, commits and tests already cite them.
  • A changed requirement keeps its ID; rewrite it and note the change.
  • A removed requirement stays in place as ~~REQ-4~~ (removed YYYY-MM-DD: <reason>).
  • Add a row to the spec's Changelog.
  • An approved spec that changes goes back to **Status:** draft until the user approves the change.
  • If plan.md or tasks.md exist, list the steps and tasks that cite the changed IDs so they can be updated next.

Gate

If specify is in gates: show the user the artifact path and a 3–5 line summary, list any [NEEDS CLARIFICATION] items, and stop. Do not start the next phase until the user approves. When they approve, set the artifact's status line to **Status:** approved · **Date:** YYYY-MM-DD and save the file — approval has to live in the file, so a later session or another agent can see it. If specify is not in gates, set the status to approved yourself, say which phase runs next and continue.

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.