spec-driven-development

spec-driven-development is a skill for Claude Code, Codex from magnus919/agent-skills. It costs 165 tokens per session (4,092 once invoked), scanned A, original, MIT.

A development process in which structured specifications guide AI-generated software through stages such as definition, breakdown, implementation, verification, and delivery. Each stage has a review gate before the next begins.

In plain words
What is it for?
Use it to design AI software factories, write testable specifications, decompose work, add review gates, and verify generated code before delivery.
Why use it?
It reduces ambiguity and catches missing requirements or defects earlier, before they spread into later implementation stages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to design AI software factories, write testable specifications, decompose work, add review gates, and verify generated code before delivery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnus919/agent-skills/spec-driven-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add magnus919/agent-skills --skill spec-driven-development
Clone the repo
git clone --depth 1 https://github.com/magnus919/agent-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin spec-driven-development — /plugin install spec-driven-development after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnus919/agent-skills/spec-driven-development/github.svg)](https://agentmods.dev/skills/magnus919/agent-skills/spec-driven-development)
Your own site
<a href="https://agentmods.dev/skills/magnus919/agent-skills/spec-driven-development"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/spec-driven-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnus919/agent-skills/spec-driven-development"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/spec-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00165 $0.04092
Opus 5.5 $0.00066 $0.01637
Sonnet 5.5 $0.00033 $0.00818
Haiku 4.5 $0.00016 $0.00409

Measured 9d ago against content hash 6133cd3b755f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-driven-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/business_policy.py, scripts/spec-quality-check.sh, scripts/spec-to-tasks.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

spec-driven-development/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spec-Driven Development for AI Software Factories

A methodology for building software where specifications are the executable input to an AI code generation pipeline. The factory model: specs are blueprints, AI agents are the assembly line, verification is quality control, and gates catch defects before they compound.

Pipeline Overview

INCEPTION → [SPECIFY] → REVIEW → [DECOMPOSE] → REVIEW → [IMPLEMENT] → REVIEW → [VERIFY] → DELIVER
                 ↑         ↑          ↑            ↑           ↑           ↑          ↑         ↓
            Phase 1    Gate 1    Phase 2       Gate 2    Phase 3      Gate 3    Phase 4   Gate 4

Each phase passes through a gate before the next begins. A defect caught at Gate 1 costs minutes to fix; the same defect found at Gate 4 costs hours.

Use an existing approved PRD, architecture document or issue set as the specification when it supplies the minimum handoff in references/factory-review-lanes.md. Throughout this workflow, SPEC.md denotes that authoritative specification; it need not be a new file or competing copy. Validate equivalent content and traceability. Run format-specific scripts only when their expected input format applies; otherwise record the equivalent content checks and any missing information explicitly.

SDD Core Principles

  1. Make consequential intent explicit. Keep specifications readable and testable. Agents can ask for clarification; unresolved consequential choices need an owner and must stop dependent work before its decision boundary.
  2. Completeness over brevity. Every missing acceptance criterion is a missing feature. Specifying an edge case upfront costs minutes; discovering it in production costs hours or days.
  3. Testability over descriptiveness. An AC that cannot produce CLEAR PASS or CLEAR FAIL is not an AC — it's a hope.
  4. Gates catch defects early. A Gate 1 (spec review) fix costs minutes. A Gate 4 (acceptance review) fix costs hours — the entire implementation may need to be discarded.
  5. Spec is the single source of truth. Every downstream artifact traces back to the spec. Deviations are defects unless explicitly documented.
  6. Specs guide test oracles. Gherkin-style ACs can become executable cases, but still need implementation, coverage and oracle review. Independent and withheld scenarios can reveal gaps in visible examples.

Read the full file on GitHub · 241 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +9 lines 6133cd3b755f
  2. 10d ago Changed · +12 lines 638fea3ef269
  3. 16d ago Changed · +6 lines d47824d7c663
  4. 1mo ago First seen · 214 lines · 165 tokens per session scan A 7ec40a49b55d

Subscribe to this mod's changes

spec-driven-development is a skill published in the GitHub repository magnus919/agent-skills (149 stars, last pushed today), licensed MIT. It adds 165 tokens to every session and 4,092 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.