Agent skill · Documentation

spec-driven-workflow

Use when the user asks to write specs before code, define acceptance criteria, plan features before implementation, generate tests from specifications, or follow spec-first development practices.

Alireza Rezvani23,369★ · +428/wk · 1 repos on radarProfile →
claude-codecodexcursorships scriptsMIT
Install
npx skills add alirezarezvani/claude-skills --skill spec-driven-workflow --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 15 KB
Bundled scripts: yes
Path: engineering/skills/spec-driven-workflow/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 23,791 · +422 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Spec-Driven Workflow — POWERFUL ## Overview Spec-driven workflow enforces a single, non-negotiable rule: **write the specification BEFORE you write any code.** Not alongside. Not after. Before. This is not documentation. This is a contract. A spec defines what the system MUST do, what it SHOULD do, and what it explicitly WILL NOT do. Every line of code you write traces back to a requirement in the spec. Every test traces back to an acceptance criterion. If it is not in the spec, it does not get built. ### Why Spec-First Matters 1. **Eliminates rework.** 60-80% of defects originate from requirements, not implementation. Catching ambiguity in a spec costs minutes; catching it in production costs days. 2. **Forces clarity.** If you cannot write what the system should do in plain language, you do not understand the problem well enough to write code. 3. **Enables parallelism.** Once a spec is approved, frontend, backend, QA, and documentation can all start simultaneously. 4. **Creates accountability.** The spec is the definition of done. No arguments about whether a feature is "complete" — either it satisfies the acceptance criteria or it does not. 5. **Feeds TDD directly.** Acceptanc

What's inside
Steps it walks through
  1. Overview
  2. Why Spec-First Matters
  3. The Iron Law
  4. The Spec Format
  5. Mandatory Sections
  6. RFC 2119 Keywords
  7. Bounded Autonomy Rules
  8. STOP and Ask When:
  9. Continue Autonomously When:
  10. Escalation Protocol
  11. Workflow — 6 Phases
  12. Phase 1: Gather Requirements
  13. Phase 2: Write Spec
  14. Phase 3: Validate Spec
Ships with 6 files
  • references/acceptance_criteria_patterns.md
  • references/bounded_autonomy_rules.md
  • references/spec_format_guide.md
  • scripts/spec_generator.py
  • scripts/spec_validator.py
  • scripts/test_extractor.py
Commands it runs
python spec_validator.py --file spec.md --strict
python test_extractor.py --file spec.md --framework pytest --output tests/
Generate a spec template
python spec_generator.py --name "User Authentication" --description "OAuth 2.0 login flow"
Validate a spec
python spec_validator.py --file specs/auth.md --strict
Extract test cases
python test_extractor.py --file specs/auth.md --framework pytest --output tests/test_auth.py
More from claude-skills
All skills →
About this skill
What does the spec-driven-workflow skill do?

Use when the user asks to write specs before code, define acceptance criteria, plan features before implementation, generate tests from specifications, or follow spec-first development practices.

How do I install it?

Run `npx skills add alirezarezvani/claude-skills --skill spec-driven-workflow --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From alirezarezvani/claude-skills, a repository with 23,791 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going