agentleFS
GhostwheeIGhostwheeI/Master-Planner/.cursor/skills/spec-drafter/SKILL.md

spec-drafter

Skill0 starsChanged 5 months agoMITView on GitHub

Converts agreed intent and research into a structured spec (the what & why) — objective, requirements with acceptance criteria, architecture, ADRs, and Always/Ask-First/Never boundaries. Use after intake and research, for Medium+ work. Produces spec.md.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write .cursor/plans/<project>/spec.md.

    line 22
  2. Very specific:

    Do not write the task graph yourself — that is task-decomposer's job.

    line 42

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

Spec Drafter

You produce the shared source of truth between the user and the implementer. Code without a spec is guessing; the spec's whole value is forcing clarity before code.

Integrates the six-area spec + Always/Ask-First/Never boundaries + "reframe requirements as success criteria" model from addyosmani/agent-skills spec-driven-development (MIT), the conversation→PRD synthesis idea from mattpocock/skills to-prd (MIT), and the numbered-artifact discipline from anton-abyzov/specweave (MIT). See docs/ATTRIBUTION.md.

Step 1 — Surface assumptions, then draft spec.md

Lead with the assumptions block (carried over from intake) so misunderstandings surface before content:

ASSUMPTIONS I'M MAKING:
1. ...
-> Correct me now, or I proceed with these.

Write .cursor/plans/<project>/spec.md. Include only sections that carry weight — do not pad with empty headings.

Core sections:

  • Objective — what we're building and why; who the user is; what success looks like.
  • Non-Goals — what this explicitly does not do.
  • Requirements — each with verifiable acceptance criteria (a checkbox you could turn into a test). Reframe vague asks as concrete targets ("faster" → "LCP < 2.5s on 4G").
  • Architecture — system boundaries, data model, API/interface contracts, technology stack with one-line justifications.
  • Boundaries — the three-tier set: Always do / Ask first / Never do.

Conditional sections (include when relevant):

  • Research Findings — verified facts with source links (from doubt-research). Unverifiable items marked [NO RELIABLE DATA].
  • Dependencies — table of package · version · license · maintained? · justification.
  • Security Considerations & Deployment & Rollback — required for High-Risk / Large (delegated to security-rollback).
  • ADRs — for each significant "why X over Y" decision, using ../master-planner/references/ADR-FORMAT.md (Context → Decision → Consequences). Offer an ADR only when the decision is hard to reverse, surprising without context, AND a real trade-off.
  • Open Questions — unresolved [NEEDS CLARIFICATION] markers.

The .cursor/plans/_template/spec.md template mirrors this structure.

Step 2 — Hand off to decomposition

Do not write the task graph yourself — that is task-decomposer's job. Pass it the validated spec. Keeping spec (what/why) separate from tasks (how) keeps each reviewable on its own.

Step 3 — Update the manifest

Set Phase: SPEC_COMPLETE (or SPEC_COMPLETE_NEEDS_GRILL for Large/High-Risk). Record artifact paths and a resume instruction.

Step 4 — Keep the spec alive

The spec is a living document: update it when a decision or scope changes (update the spec first, then implement), commit it alongside code, and reference its sections from PRs.

Self-check before handoff

  • Every requirement has verifiable acceptance criteria.
  • Architecture states system boundaries and data flow.
  • Dependencies list version, license, and maintenance status.
  • Boundaries (Always/Ask-First/Never) are present.
  • No unresolved [NEEDS CLARIFICATION] left unflagged to the user.
  • For High-Risk: security + rollback sections are present.

Anti-Rationalization

ExcuseReality
"Acceptance criteria are implicit"Implicit means untestable. Write them out.
"I'll write the spec after coding"That's documentation, not specification. The value is clarity before code.
"This dependency is fine, everyone uses it"Record version, license, and maintenance status anyway.
"The architecture is simple enough to skip"Simple architectures document fast. Write the boundaries and the ADR.

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.