spec-driven-dev

spec-driven-dev is a skill for Claude Code, Codex from mrtblount/Spec-to-Ship. It costs 237 tokens per session (6,538 once invoked), scanned A, original, MIT.

A spec-driven development skill guides software work through four stages: writing requirements, planning the architecture, breaking the plan into tasks, and implementing them. A specification records the intended behaviour and constraints before code is written.

In plain words
What is it for?
Use it before a new project or major feature, or to document an existing project first. It can create SPEC.md, PLAN.md, TASKS.md, discover required tools, and sync work with project-management services.
Why use it?
It keeps important decisions and rules from being lost during implementation. Turning the plan into explicit tasks makes coding more predictable and easier to validate.

Skill for Claude CodeCodex

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

Good fit Use it before a new project or major feature, or to document an existing project first. It can create SPEC.md, PLAN.md, TASKS.md, discover required tools, and sync work with project-management services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mrtblount/spec-to-ship/spec-driven-dev
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 mrtblount/Spec-to-Ship --skill spec-driven-dev
Clone the repo
git clone --depth 1 https://github.com/mrtblount/Spec-to-Ship

Made for: Claude Code, Codex.

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-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/mrtblount/spec-to-ship/spec-driven-dev/github.svg)](https://agentmods.dev/skills/mrtblount/spec-to-ship/spec-driven-dev)
Your own site
<a href="https://agentmods.dev/skills/mrtblount/spec-to-ship/spec-driven-dev"><img src="https://agentmods.dev/badge/skills/mrtblount/spec-to-ship/spec-driven-dev/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-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrtblount/spec-to-ship/spec-driven-dev"><img src="https://agentmods.dev/badge/skills/mrtblount/spec-to-ship/spec-driven-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,538 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.
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.00237 $0.06538
Opus 5.5 $0.00095 $0.02615
Sonnet 5.5 $0.00047 $0.01308
Haiku 4.5 $0.00024 $0.00654

Measured 2mo ago against content hash 60d625b14426, 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-dev 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 2mo ago.

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-dev/SKILL.md · 665 lines

How it starts

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

Core Philosophy: Code is a lossy projection of specifications. Intent, constraints, invariants, and architectural decisions must be captured in the spec BEFORE any code is written. The spec is the product; the code is a byproduct.

Sub-Skills

Component Purpose
retrofit Pre-Phase 1: Scan existing project, build BASELINE.md for context
specifier Phase 1: Gather requirements, business logic, user journeys → SPEC.md
architect Phase 2: Technical architecture, data models, API contracts → PLAN.md
decomposer Phase 3: Break plan into atomic, implementable tasks → TASKS.md
toolchain Post-spec: Discover, install, and configure required tools/MCPs
sync Post-spec: Push tasks to GitHub Projects, SPEC.md to Linear, configure sync

Dependency Chain:

  • Greenfield: specifier → architect → decomposer → toolchain → sync → implement
  • Existing project: retrofit → specifier → architect → decomposer → toolchain → sync → implement

The Solution: Front-load ALL thinking into structured specification documents. When the spec is comprehensive and LLM-optimized, implementation becomes mechanical execution — one-shot or close to it.

When FULL SDD is Required:

  • New projects (any greenfield work)
  • Major features (touching 5+ files or introducing new architectural patterns)
  • Significant refactors (changing data models, API contracts, or system boundaries)
  • Any work the user explicitly wants to one-shot

When LIGHT SDD Suffices:

  • Medium features (3-5 files, clear scope, known patterns)
  • Features within an existing well-spec'd project

When NO SDD is Needed:

  • Bug fixes (unless systemic)
  • Small features (1-3 files, clear scope)
  • Documentation, configuration, or styling changes

Maturity Levels (for user awareness, not skill configuration):

  1. Spec-first: Spec written, used to guide implementation, then archived
  2. Spec-anchored: Spec kept alive for ongoing evolution and maintenance
  3. Spec-as-source: Spec is the only human-edited artifact; code is fully generated
STEP 1: Detect project state

CHECK for existing project indicators:
  - package.json, requirements.txt, Cargo.toml, go.mod (package manifest)
  - .git directory with history
  - src/ or app/ directory with code
  - CLAUDE.md or build log
  - specs/BASELINE.md (already retrofitted)

IF existing project detected AND specs/BASELINE.md does NOT exist:
  project_state = EXISTING_NO_BASELINE
ELIF existing project detected AND specs/BASELINE.md EXISTS:
  project_state = EXISTING_WITH_BASELINE
ELSE:
  project_state = GREENFIELD

STEP 2: Determine scope

IF request matches ANY:
  - Keywords: "new project", "build me", "create an app/site/tool/platform"
  - Keywords: "I want to build", "let's build", "start a new"
  - Keywords: "new feature", "add a feature", "build a feature", "implement"
  - Keywords: "I want to add", "add X to", "build X for", "create X in"
  - Keywords: "spec this", "write a spec", "one-shot this"
  - Keywords: "deploy SDD", "add spec-driven", "retrofit", "baseline this"
  - Estimated scope: > 5 files or > 500 lines of new code
  - Introduces new data models, APIs, or architectural patterns
  - User explicitly requests SDD
  - User describes a feature that sounds non-trivial (multiple components,
    database changes, new API endpoints, new pages/routes)
THEN:
  scope = FULL_SDD

ELIF request is medium scope (3-5 files, clear patterns):
  scope = LIGHT_SDD
  RESPOND:
    "This is medium-sized. I'll do a lightweight spec — just enough to
     one-shot it cleanly."
  Execute abbreviated flow:
    - Ask 3-5 clarifying questions about scope, constraints, edge cases
    - Produce mini-spec inline (not a separate file)
    - Proceed to implementation
  EXIT

ELSE:
  scope = NO_SDD
  Proceed with normal implementation
  EXIT

STEP 3: Route based on project state + scope

IF scope == FULL_SDD AND project_state == EXISTING_NO_BASELINE:
  RESPOND:
    "This is an existing project without a baseline. Before we spec new work,
     I need to understand what's already built.

     **I'll run the retrofit process first:**
     - Scan your codebase, build log, git history, and config
     - Create a BASELINE.md capturing your current architecture and state
     - Then we'll flow into the normal spec process for your new feature

     Let me start scanning."
  GOTO Phase 0.5 (Retrofit)

ELIF scope == FULL_SDD AND project_state == EXISTING_WITH_BASELINE:
  RESPOND:
    "I see this project already has a baseline. I'll reference it for context
     as we spec your new work.

     **4 Phases:**
     1. **Specify** — What are we building and why?
     2. **Plan** — How will it be built technically?
     3. **Tasks** — What are the atomic units of work?
     4. **Implement** — Execute against the spec.

     Let's start with Phase 1."
  READ specs/BASELINE.md into context
  GOTO Phase 1

ELIF scope == FULL_SDD AND project_state == GREENFIELD:
  RESPOND:
    "This needs a spec before we build. I'm going to walk you through
     spec-driven development — this is where the real work happens.
     Once the spec is solid, implementation should be close to one-shot.

     **4 Phases:**
     1. **Specify** — What are we building and why?
     2. **Plan** — How will it be built technically?
     3. **Tasks** — What are the atomic units of work?
     4. **Implement** — Execute against the spec.

     Let's start with Phase 1."
  GOTO Phase 1

Read the full file on GitHub · 665 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. 2mo ago First seen · 665 lines · 237 tokens per session scan A 60d625b14426

Subscribe to this mod's changes

spec-driven-dev is a skill published in the GitHub repository mrtblount/Spec-to-Ship (2 stars, last pushed 3mo ago), licensed MIT. It adds 237 tokens to every session and 6,538 once invoked, about $0.0009 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-08-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens