spec-driven

spec-driven is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 54 tokens per session (1,102 once invoked), scanned A, original, Apache-2.0.

A structured development workflow for starting projects or complex features with unclear requirements. It creates a specification, plan, tasks, and tests before implementation.

In plain words
What is it for?
Use it for new projects, multi-part features, or changes that need an approved plan and offensive-first tests.
Why use it?
It helps teams resolve ambiguity before code is written and keeps work aligned across multiple modules. TDD, or test-driven development, means writing tests that challenge the behavior before building it.

Skill for Claude CodeCodex

Part of the odin-code plugin — 52 skills shipped together

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.

agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/spec-driven
Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill spec-driven
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-code, the plugin that ships this one along with the rest of its 52 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/spec-driven.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/spec-driven)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/spec-driven"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/spec-driven.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00054 $0.01102
Opus 5 $0.00027 $0.00551
Sonnet 5 $0.00011 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured yesterday against content hash 443ce98336c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-driven 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 yesterday.

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.

plugins/odin-code/skills/spec-driven/SKILL.md · 52 lines

How it starts

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

Spec-driven development

Contract

Field Bound contract
Trigger A new project or feature is starting, requirements are unclear, the change touches multiple modules, or the task exceeds roughly 30 minutes.
Authority Reversible local: files, VCS, and credentials scoped to the current working tree; no remote mutation, credential exposure, or irreversible action.
Side effect Writes and commits a spec, records human-approved plan and tasks, and implements through offensive-first TDD. All writes are local; no external service calls.
Done A reviewed, approved spec covering six areas is saved to the repo and the implementation follows it.

Inputs

The user's request is mandatory. The requester must approve the spec before planning begins.

Refusal

  • Human withholds approval: do not proceed to the next phase. Surface the specific objection and wait.
  • Scope widens mid-implementation: stop. Return to the spec. Update it; get approval; then proceed.
  • Assumption surfaces after spec is written: surface it immediately; do not proceed until the human resolves or approves it.
  • No spec written or saved: the done predicate is not met. Implement nothing until the spec exists and is approved.
  • Non-converged: if the human never approves, the skill ends with no implementation. State this outcome explicitly.

Procedure

  1. Surface assumptions first. Before writing any spec content, list every assumption being made and require explicit correction. Do not silently fill ambiguous requirements. Done when: every assumption is listed and corrected or confirmed.
  2. Write the spec covering six core areas: a. Objective: what is being built and why, who the user is, what success looks like. b. Commands: full executable commands with flags (build, test, lint, dev) for the stack the project actually uses. Record exact commands, not bare tool names. c. Project structure: where source lives, where tests go, where docs belong. Capture the layout that applies. d. Code style: one real snippet of the project's style beats paragraphs describing it. Include naming conventions, formatting rules, and an accepted example in the project's language. e. Testing strategy: sketch the seams where the feature will be tested. Prefer an existing seam to a new one; use the highest seam available; propose any new seam at the highest point where it can sit. Record the framework, test locations, coverage expectations, and which test level covers each concern. Confirm seams with the user before proceeding because a seam disagreement invalidates the testing strategy beneath it. f. Boundaries: three tiers — Always (run tests before commits, follow naming conventions, validate inputs); Ask first (schema changes, adding dependencies, changing CI config); Never (commit secrets, edit vendored directories, delete failing tests without approval). Done when: all six areas are written.
  3. Present the spec to the human. Do not advance until the human reviews and approves it. The human's approval gates every subsequent phase. Done when: the human approves the spec.
  4. Plan from the validated spec. Identify major components and dependencies; determine implementation order; note risks and mitigations; separate parallel from sequential work; define verification checkpoints. Done when: the plan is written.
  5. Present the plan to the human. Do not advance until the human reviews and approves it. Done when: the human approves the plan.
  6. Break the plan into discrete tasks. Each task: completable in one focused session; has explicit acceptance criteria; includes a verification step (test, build, or manual check); is ordered by dependency; changes no more than ~5 files. Done when: the task list is written.
  7. Present the task list to the human. Do not advance until the human reviews and approves it. Done when: the human approves the task list.
  8. Implement through offensive-first TDD, one task at a time. For each task: run the tdd skill's cycle — turn its acceptance criteria into attacks that must fail red for the right reason, implement until the attacks stop breaking the code, and never bend a test or fixture to reach green — then verify against the acceptance criteria before starting the next task. Load only the spec sections and source files the current task needs. Done when: every task is implemented and verified.
  9. Update the spec first when decisions change. If the data model or scope changes, update the spec, then implement. Done when: the spec reflects the current decision.
  10. Commit the spec to version control alongside the code. Reference the spec in each PR. Done when: the spec is committed.

Read the full file on GitHub · 52 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 52 lines · 54 tokens per session scan A 443ce98336c9

Subscribe to this mod's changes

spec-driven is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 1,102 once invoked, about $0.0003 per session on Opus 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-04.

Related

Other skills, from other repositories

auto-loop

TDD-based autonomous development loop with checkpoint recovery and observability changelog.

claude-world/director-mode-lite · 17 tokens

workflow

Run the complete 5-step development workflow: focus problem → prevent over-development → test-first (TDD) → document → smart commit. Use when starting a new feature, or when the user runs /workflow or asks for the full development flow.

claude-world/director-mode-lite · 52 tokens

test-first

Drive one feature through a strict TDD Red-Green-Refactor cycle with checklists for each phase. Use when implementing new functionality test-first, or when the user runs /test-first.

claude-world/director-mode-lite · 42 tokens

specify-incremental

Decompose a single-feature specification into a linear, phase-by-phase implementation plan. Use this for medium-complexity work — single feature, one or two components — where transparent human-in-the-loop phase review is preferred over factory automation.

rsmdt/the-startup · 53 tokens

tdd

Test-driven development — the red-green-refactor discipline for code that's correct by design, not by accident. INVOKE PROACTIVELY whenever writing or changing code, fixing a bug, adding or structuring tests, or choosing what to mock — even when nobody says "TDD" or "tests". (Tests are code held to…

PrabhdeepSingh/claude-plugins · 80 tokens

tdd-xfail

Use when fixing a bug through strict xfail reproduction and needing proof that the test fails for the intended reason.

tony/skills · 27 tokens