Home / All Skills / Workflow & Core Tools / spec-driven-development
Workflow & Core Tools · addyosmani/agent-skills

spec-driven-development

Creates comprehensive specifications before coding. Use when starting a new project, feature, or significant refactor and no spec exists. Decouples requirements, surfaces unstated assumptions, maps dependencies, and defines acceptance criteria.

L1 Basic · Source registration onlyV1 Commit-PinnedDual-pass Audit
💬 Chat Trial
Author addyosmaniGitHub addyosmani/agent-skills ↗Stars 113872License MITCommit 301b02b12b
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

Phase 0 requirement decoupling and modular dependency capability mapping.

skills/spec-driven-development/SKILL.md
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.
Architectural clarity before code.

Surface Assumptions Checklist: exposes unstated dependencies and performance expectations upfront.

skills/spec-driven-development/SKILL.md
**Propose a capability map before writing any spec.** Small and reviewable — a module table plus a build order, not a project plan:
Eliminates surprise roadblocks.

Explicit acceptance test contract definitions before implementation starts.

skills/spec-driven-development/SKILL.md
**Surface assumptions immediately.** Before writing any spec content, list what you're assuming:
Objective completion gates.

Phased implementation roadmaps with rollback and verification milestones.

skills/spec-driven-development/SKILL.md
Write a spec document covering these six core areas: … 1. **Objective** … 2. **Commands** … 3. **Project Structure** … 4. **Code Style** … 5. **Testing Strategy** … 6. **Boundaries**
Low-risk execution tracking.

将模糊需求重构翻译为具体、可测试的验收条件(Success Criteria),为后续验证建立确定性指标。

skills/spec-driven-development/SKILL.md
**Reframe instructions as success criteria.** When receiving vague requirements, translate them into concrete conditions:
这里在做什么:把“让仪表盘更快”等主观描述转化为“LCP < 2.5s、初始加载 < 500ms”等硬性指标,让优化和实现闭环具备客观衡量基准。

规格保存后必须硬性强制立即停轮(CRITICAL STOP),严禁在同轮会话中直接进入 Plan 或编写代码。

skills/spec-driven-development/SKILL.md
**Stop after writing the spec (CRITICAL).** Once the spec is saved: … **STOP YOUR TURN IMMEDIATELY.** Do NOT start Phase 2, invoke `planning-and-task-breakdown`, or write code in this turn.
这里在做什么:设置不可逾越的人机交互物理门禁,确保人类必须在后置回合中明确批准规格后,才可调动计划与执行流程。

保持格式无关性并兼容现有规范体系,可无缝对接 OpenSpec 等第三方规格系统而无需创建冗余副本。

skills/spec-driven-development/SKILL.md
**External spec tools:** This workflow is format-agnostic. If the project already uses OpenSpec or another specification system, keep that system's artifact format and storage conventions
这里在做什么:明确自身定位是流程控制与澄清门禁,兼容既有项目的资产结构,避免工具生态冲突。

规划产物规范化落盘:计划保存至 tasks/plan.md,任务清单写入 tasks/todo.md,为下游构建与执行命令提供标准契约。

skills/spec-driven-development/SKILL.md
Save the plan to `tasks/plan.md` and record the task list in the task list target defined by `planning-and-task-breakdown` (default `tasks/todo.md`; projects may designate an external tracker instead).
这里在做什么:确立跨技能协同的产物路径标准,使 planning-and-task-breakdown 与 incremental-implementation 等下游流程平滑衔接。

2Core Capabilities

01Phase 0 specification authoring and requirement decoupling
02Unstated assumption exposure and risk mitigation
03Acceptance test criteria and contract definition
04Milestone-based phased implementation planning
05模糊需求重构为客观量化的验收标准(Success Criteria)
06技术实施计划制定与细粒度单会话任务拆解(Task Template)
07活文档维护纪律(决策或范围变更时同步先改 Spec 并入库版本管理)

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Can be auto-loaded
For Administrators
Register source and version
Audit Notes: Methodological documentation and specification templates; zero host permissions required.

5Second-Pass Verification

  • [ok] 自身目录零代码与零网络外发 — 经检查,skills/spec-driven-development/ 下仅有 SKILL.md(13099 bytes),全量扫描无网络请求端点、无环境变量读取、无任何可执行脚本。
  • [ok] Phase 0 能力图(Capability Map)与稳定 ID 机制真实存在 — SKILL.md Phase 0 明确给出 Capability Map 表格规范(Module id / Responsibility / Depends on)与 Build order 依赖次序示例,并要求模块 ID 一经选定不可中途重命名。
  • [ok] 六大核心规格维度与模板一一对应 — SKILL.md 明确列出 Objective、Commands、Project Structure、Code Style、Testing Strategy、Boundaries 六大核心领域,并在下方给出了对齐的 Markdown Spec Template。
  • [ok] 强制停轮门禁(Critical Stop)具有绝对约束力 — SKILL.md 显式写明 'Stop after writing the spec (CRITICAL)' 并大写强调 'STOP YOUR TURN IMMEDIATELY. Do NOT start Phase 2, invoke planning-and-task-breakdown, or write code in this turn'。
  • [ok] 与下游规划技能的产物对接约定明确 — Phase 2 明确规定规划结果保存至 tasks/plan.md,任务清单录入 tasks/todo.md,并声明以 planning-and-task-breakdown 作为权威依据。

6Verdict & Scenarios

  • Drastically reduces wasted engineering effort by solving ambiguity at the spec level before code is written
  • Forces stakeholders and engineers to align on contracts, edge cases, and failure modes early
  • Provides autonomous agents with clear, unambiguous blueprints that prevent hallucinated implementations
  • Best for: Essential for new features, complex refactors, multi-system integrations, or any engineering task expected to take over 30 minutes.
    Not for: Not for trivial one-line bug fixes or simple configuration edits.
    💬 Online Trial Chat Sandbox

    Preview this skill in an interactive chat playground. Generic LLM evaluation trial.

    💬 Open Chat Trial (Preview)
    Under construction · Generic sandbox trial
    Install Agent-Ready
    ① Accelerated Distribution dl.bestaiskill.com
    Option A · Direct Zip Download⚡ Download spec-driven-development (Zip)
    Edge-accelerated mirror via dl.bestaiskill.com
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 301b02b12b.