spec-driven-development

spec-driven-development is a skill for Claude Code, Codex from hoangatg/ai-agent-toolkit. It costs 49 tokens per session (790 once invoked), scanned A, original, MIT.

A guide to spec-driven development, a workflow that defines requirements, constraints, tasks, and acceptance checks before coding begins.

In plain words
What is it for?
Use it to write feature specifications, break work into tasks, guide AI implementation, and verify that the finished code meets the stated requirements.
Why use it?
It helps prevent AI-generated work from drifting away from the goal, losing context, or expanding beyond the agreed scope.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write feature specifications, break work into tasks, guide AI implementation, and verify that the finished code meets the stated requirements.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/spec-driven-development/github.svg)](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/spec-driven-development)
Your own site
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/spec-driven-development"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/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/hoangatg/ai-agent-toolkit/spec-driven-development"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/spec-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 790 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.00049 $0.00790
Opus 5 $0.00024 $0.00395
Sonnet 5 $0.00010 $0.00158
Haiku 4.5 $0.00005 $0.00079

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

.agent/skills/spec-driven-development/SKILL.md · 141 lines

How it starts

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

Spec-Driven Development (SDD)

The #1 trending methodology for AI-assisted development in 2026. Define specs first, then let AI build.

Core Principle

"Specs are not documentation — they are executable truth. Define WHAT before HOW."

Why SDD?

Problem Without SDD SDD Solution
AI generates wrong code Spec constrains AI behavior
Scope creep Spec defines boundaries
Context loss in long sessions Planning files persist context
Inconsistent output Structured criteria ensure quality
"Vibe coding" Systematic, reviewable process

SDD Workflow

1. SPECIFY
   └── Write high-level specification (problem, goals, constraints)

2. PLAN
   └── Break into technical tasks with acceptance criteria

3. TASK
   └── Generate actionable chunks with clear inputs/outputs

4. IMPLEMENT
   └── AI executes tasks against spec, validates against criteria

5. VERIFY
   └── Check implementation matches spec

Spec File Format

Feature Spec (specs/{feature-name}.md)

# Feature: [Name]

## Problem Statement
[What problem does this solve?]

## Goals
- [ ] Goal 1 — [Measurable outcome]
- [ ] Goal 2 — [Measurable outcome]

## Non-Goals (Out of Scope)
- [Explicitly excluded items]

## Technical Requirements
- [Specific technical constraints]

## Acceptance Criteria
- Given [context], When [action], Then [outcome]

## Dependencies
- [External services, APIs, packages]

## Risks & Mitigations
| Risk | Likelihood | Mitigation |
|------|-----------|------------|
| [Risk] | High/Med/Low | [Plan] |

Planning Files (Manus-Style)

Persist AI context across sessions using planning files:

project-plan.md

# Project Plan

## Current Status: [Phase]

## Completed
- [x] Task 1

## In Progress
- [/] Task 2 — [details]

## Upcoming
- [ ] Task 3

## Decisions Made
- Decision 1: [rationale]

## Lessons Learned
- [Key insights from implementation]

lessons-learned.md

# Lessons Learned

## [Date] — [Topic]
**Problem**: [What went wrong]
**Solution**: [What fixed it]
**Prevention**: [How to avoid in future]

Read the full file on GitHub · 141 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. 8d ago First seen · 141 lines · 49 tokens per session scan A fa86069c6b3a

Subscribe to this mod's changes

spec-driven-development is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 49 tokens to every session and 790 once invoked, about $0.0002 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.