spec-driven-development

spec-driven-development is a skill for Claude Code from tranhieutt/software_development_department. It costs 29 tokens per session (3,330 once invoked), scanned A, original, MIT.

A workflow that creates and confirms a clear software specification before implementation code is written. It adjusts the process based on the size and risk of the task.

In plain words
What is it for?
Use it to classify a task, record assumptions, agree on requirements, and prepare work for planning and development.
Why use it?
It reduces unclear requirements, made-up assumptions, and design changes caused by starting implementation too early.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Good fit Use it to classify a task, record assumptions, agree on requirements, and prepare work for planning and development.

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

Made for: Claude Code.

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/tranhieutt/software_development_department/spec-driven-development/github.svg)](https://agentmods.dev/skills/tranhieutt/software_development_department/spec-driven-development)
Your own site
<a href="https://agentmods.dev/skills/tranhieutt/software_development_department/spec-driven-development"><img src="https://agentmods.dev/badge/skills/tranhieutt/software_development_department/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/tranhieutt/software_development_department/spec-driven-development"><img src="https://agentmods.dev/badge/skills/tranhieutt/software_development_department/spec-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,330 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.00029 $0.03330
Opus 5 $0.00015 $0.01665
Sonnet 5 $0.00006 $0.00666
Haiku 4.5 $0.00003 $0.00333

Measured 9d ago against content hash 1c2db9e2835a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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.

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.

.claude/skills/spec-driven-development/SKILL.md · 327 lines

How it starts

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

Spec-Driven Development

Purpose

This skill forces the agent to pause, analyze, and agree upon a specification before jumping into implementation code. Drafting a spec first prevents hallucinations, scopes down overly ambitious changes, and protects the codebase's existing architecture.


Task Classification — Run First

Before any other step, classify the task. The classification determines which gate path applies.

Class Criteria Gate path
Simple ≤ 1 file, ≤ 30 min, intent unambiguous, no data model change Assumption Log (≤ 3 items) → Fast Gate → code
Medium Multi-file, ≤ 2 days, some data or logic change Ground Truth Gate → Spec Gate → plan → tdd
Complex Cross-domain, > 2 days, new entities, auth, billing, or architecture change Interview Gate → Ground Truth Gate → Spec Gate → plan → tdd

State the classification in one line before proceeding:

Classification: [Simple|Medium|Complex] — reason: <one sentence>

Simple Task — Assumption Log

For Simple tasks, skip the full spec. Instead, surface assumptions in a scannable 3-item max format and pause for user confirmation before any edit:

Trước khi bắt đầu, confirm 3 điều:

1. [Assumption về stack / file / scope] → đúng không? [y/n]
2. [Assumption về behavior / constraint] → đúng không? [y/n]
3. Scope: chỉ làm X, KHÔNG làm Y → đúng không? [y/n]

(Nếu có gì sai, nói ngay — tôi chờ trước khi tiếp tục.)

If any answer is "n" or ambiguous → reclassify as Medium and run Ground Truth Gate.


Ground Truth Gate — Required for Medium and Complex tasks

This gate must pass before a spec can be drafted or approved.

The agent must produce — and the user must explicitly confirm — all three documents:

Document 1: Data Model

List every entity involved in the feature. For each entity, specify field names, types, and constraints. No prose allowed — use a table or code block.

Entity: User
  - id: UUID, primary key
  - email: string, unique, not null
  - role: enum(admin, member), default=member
  - created_at: timestamp

Entity: Session
  - token: string, primary key
  - user_id: FK → User.id
  - expires_at: timestamp, not null

Read the full file on GitHub · 327 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 First seen · 327 lines · 29 tokens per session scan A 1c2db9e2835a

Subscribe to this mod's changes

spec-driven-development is a skill published in the GitHub repository tranhieutt/software_development_department (72 stars, last pushed 4mo ago), licensed MIT. It adds 29 tokens to every session and 3,330 once invoked, about $0.0001 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-03.