addyosmani avatar

Spec Driven Development

Before you write a single line of code, this skill makes you write a spec that defines what you're building, why, and how you'll know it's done. It uses a four phase gate (specify, plan, tasks, implement) where you can't move forward until the human approves each stage. The real value is in surfacing assumptions early. It forces you to list what you're assuming about the tech stack, architecture, and requirements before proceeding, which catches misunderstandings when they're cheap to fix instead of after you've written 500 lines in the wrong direction. Skip it for typo fixes, use it when touching multiple files or making architectural calls.

skills.sh installs
74.7K
GitHub stars
114.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add addyosmani/agent-skills --skill spec-driven-development --agent claude-code

Installs into .claude/skills of the current project.

Files

Spec-Driven Development

Overview

Write a structured specification before writing any code. The spec is the shared source of truth between you and the human engineer — it defines what we're building, why, and how we'll know it's done. Code without a spec is guessing.

When to Use

  • Starting a new project or feature
  • Requirements are ambiguous or incomplete
  • The change touches multiple files or modules
  • You're about to make an architectural decision
  • The task would take more than 30 minutes to implement

When NOT to use: Single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained.

The Gated Workflow

Spec-driven development has four phases, preceded by a scope check (Phase 0) that activates only when one request bundles several independently testable capabilities. Do not advance to the next phase until the current one is validated.

SPECIFY ──→ PLAN ──→ TASKS ──→ IMPLEMENT
   │          │        │          │
   ▼          ▼        ▼          ▼
 Human      Human    Human      Human
 reviews    reviews  reviews    reviews

Phase 0: Scope Check

Sponsors

Details

Repository
github.com/addyosmani/agent-skills
Category
AI & Agent Building
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25
1addyosmani avatarplanning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large 73.5Kskills.sh installs
2addyosmani avatardocumentation-and-adrsaddyosmani/agent-skillsRecords decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that f73.5Kskills.sh installs
3addyosmani avatarcode-simplificationaddyosmani/agent-skillsSimplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend tha72.6Kskills.sh installs
4addyosmani avatarapi-and-interface-designaddyosmani/agent-skillsGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defini72.4Kskills.sh installs
5addyosmani avatardebugging-and-error-recoveryaddyosmani/agent-skillsGuides systematic root-cause debugging. Use when tests fail, builds break, behavior doesn't match expectations, or you encounter any unexpected error. Use when 72.4Kskills.sh installs
6addyosmani avatartest-driven-developmentaddyosmani/agent-skillsDrives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug71.3Kskills.sh installs