spec-driven-development

Creates structured specifications with gated review phases before writing code.

1|Updated Sep 4, 2026
One-click install
npx skills add https://github.com/SanHsien/agent-skills --skill spec-driven-development-sanhsien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-driven-development
Source: https://github.com/SanHsien/agent-skills/tree/main/skills/spec-driven-development
Command: npx skills add https://github.com/SanHsien/agent-skills --skill spec-driven-development-sanhsien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents wasted engineering effort caused by ambiguous requirements by forcing a written, human-approved specification before any code is written, surfacing hidden assumptions early. ## Core Features & Use Cases - Gated Four-Phase Workflow: Enforces Specify → Plan → Tasks → Implement, with human review gates between each phase so nothing advances unvalidated. - Capability Mapping: Decomposes requests bundling multiple independently testable capabilities into a module map with dependency direction and build order before any spec is written. - Structured Spec Template: Covers objective, commands, project structure, code style, testing strategy, and Always/Ask First/Never boundaries, plus testable success criteria. - Use Case: When asked to "make the dashboard faster," the skill reframes it into measurable targets (LCP < 2.5s, CLS < 0.1) and gets human confirmation before implementation begins. ## Quick Start Ask the agent to write a specification for your new feature before any coding, covering objectives, commands, testing strategy, and boundaries.

Frequently Asked Questions about spec-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a software specification before coding?

Write a spec covering six areas: objective, commands, project structure, code style, testing strategy, and boundaries. Surface your assumptions explicitly, reframe vague requirements into testable success criteria, and get human approval before writing any code.

What is spec-driven development workflow?

Spec-driven development is a gated four-phase workflow: Specify, Plan, Tasks, Implement. Each phase requires human review before advancing, and a Phase 0 scope check decomposes multi-capability requests into a capability map first.

When should I skip writing a spec?

Skip the full spec for single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained. Simple tasks still benefit from a two-line spec with acceptance criteria.

How do I break a large feature into modules?

Create a capability map listing module ids, responsibilities, and dependencies with a build order. Use stable kebab-case module ids, ensure one-way dependency direction, and get the map approved before writing per-module specs.

Can I use this with OpenSpec or other spec tools?

Yes, the workflow is format-agnostic. If your project already uses OpenSpec or another specification system, keep that tool's artifact format and storage conventions while this workflow owns the clarification, content, and approval gates.