Home / Commands / addyosmani/agent-skills

spec

Start spec-driven development — write a structured specification before writing code

commandLicense: MIT Source: addyosmani/agent-skills

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/spec.md https://raw.githubusercontent.com/addyosmani/agent-skills/HEAD/.claude/commands/spec.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/spec.md https://raw.githubusercontent.com/addyosmani/agent-skills/HEAD/.claude/commands/spec.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Start spec-driven development — write a structured specification before writing code
disable-model-invocation: true
---

Invoke the agent-skills:spec-driven-development skill.

Begin by understanding what the user wants to build. Ask clarifying questions about:
1. The objective and target users
2. Core features and acceptance criteria
3. Tech stack preferences and constraints
4. Known boundaries (what to always do, ask first about, and never do)

Then generate a structured spec covering all six core areas: objective, commands, project structure, code style, testing strategy, and boundaries.

If the request bundles several independently testable capabilities, first propose a capability map (module ids, dependency direction, build order) per the skill's Phase 0 and get it approved, then spec each module in dependency order.

Save the spec as SPEC.md in the project root and confirm with the user before proceeding.