agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/spec-driven-development/SKILL.md

spec-driven-development

Skill0 starsChanged 11 days agoMITView on GitHub

Create specifications before coding. Use when starting a new project, feature, or significant change and no specification exists yet.

126 other projects use a version of this, 63 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use idea-refine, accessibility-engineering and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    idea-refine

    Refine ideas through structured divergent and convergent thinking. Use "idea-refine" or "ideate" to trigger.

    Also in 62 projects that use this

  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 22 projects that use this

  • LLl0k0laDSkill

    api-and-interface-design

    Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

    Also in 68 projects that use this

  • jaydubya818Skill

    observability-and-instrumentation

    Add or review logs, metrics, traces, and actionable alerts.

    Also in 45 projects that use this

  • +2 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

5 rules. 1 is common, 4 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 119 edited versions we read keep these.

  • 4

    Distinctive

    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. Common:

    Write a structured specification before writing any code.

    line 14
  2. Distinctive:

    Do not use for single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained.

    line 23
  3. Distinctive:

    Do not advance a phase until the current one is validated:

    line 27
  4. Distinctive:

    Keep the spec alive: Update it when decisions or scope change.

    line 39
  5. Distinctive:

    Before proceeding to implementation, confirm:

    line 50

“Common” is measured: kept by at least 6 in 10 of the 119 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.

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

Spec-Driven Development

Overview

Write a structured specification before writing any code. The spec is the shared source of truth between you and the human engineer — it defines what we're building, why, and how we'll know it's done. Code without a spec is guessing.

When to use

  • Starting a new project or feature
  • Requirements are ambiguous or incomplete
  • The change touches multiple files or modules
  • You're about to make an architectural decision
  • The task would take more than 30 minutes to implement

Do not use for single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained. If a spec already exists, do not write another — implement against it.

Process

Do not advance a phase until the current one is validated:

SPECIFY ──→ PLAN ──→ TASKS ──→ IMPLEMENT
  1. Specify. Surface assumptions first. Cover objective, commands, project structure, code style, testing strategy, and boundaries (Always / Ask first / Never). Reframe vague requirements as testable success criteria. Spec template: references/spec-template.md. For SaaS, ERP, or membership behavior, add the relevant business invariants from references/business-prd-template.md; omit unrelated modules rather than expanding scope.
  2. Plan. Components, order, risks, parallel vs sequential, checkpoints. Canonical slicing lives in planning-and-task-breakdown. Save tasks/plan.md and tasks/todo.md.
  3. Tasks. One focused session each, with acceptance criteria, verification, ≤ ~5 files, ordered by dependency.
  4. Implement with incremental-implementation and test-driven-development. Load the right spec sections via context-engineering.
  5. Keep the spec alive. Update it when decisions or scope change; commit it; link it from PRs.

Red flags

  • Starting to write code without any written requirements
  • Asking "should I just start building?" before clarifying what "done" means
  • Implementing features not mentioned in any spec or task list
  • Making architectural decisions without documenting them
  • Skipping the spec because "it's obvious what to build"

Verification

Before proceeding to implementation, confirm:

  • The spec covers all six core areas
  • The human has reviewed and approved the spec
  • Success criteria are specific and testable
  • Boundaries (Always/Ask First/Never) are defined
  • The spec is saved to a file in the repository

References

  • references/spec-template.md — six-area spec, assumption list, success-criteria reframe
  • references/business-prd-template.md - scoped actors, lifecycles, money/quantity rules, and failure acceptance criteria

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.