ホーム / 全スキル / ワークフロー&基本ツール / spec-driven-development
ワークフロー&基本ツール · addyosmani/agent-skills

spec-driven-development

コードを書く前に網羅的な仕様書(Spec)を作成する「仕様駆動開発」。新規プロジェクト、新機能、大規模リファクタリング時に、要件の分離、暗黙の前提の可視化、依存関係の定義、受入基準の策定を一括実行。

L1 基本 · ソース登録のみV1 コミット固定Dual-pass Audit
💬 チャット試行
Author addyosmaniGitHub addyosmani/agent-skills ↗Stars 113872License MITCommit 301b02b12b
管理レベルは Skill の能力と推奨統制措置を示すものであり、品質や安全性の認証、利用可否の判定ではありません。使用の可否はユーザーおよび管理者が決定します。Agent 環境によって制約が異なるため、自動保護を仮定しないでください。第三者製 Skill の著作権は原著作者に帰属し、利用リスクは利用者が負います。

1仕組みと動作原理

Phase 0 における複合要件の分離とモジュール依存関係マップの策定。

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.
コード着手前の設計明確化。

前提条件の可視化チェックリスト:暗黙の依存関係や性能要件を事前に洗い出し。

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:
不意の手戻りを防止。

実装開始前における客観的な受入テスト契約の定義。

skills/spec-driven-development/SKILL.md
**Surface assumptions immediately.** Before writing any spec content, list what you're assuming:
明確な完了判定基準。

ロールバック手順と検証マイルストーンを含む段階的実装計画の策定。

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**
低リスクな開発進行。

将模糊需求重构翻译为具体、可测试的验收条件(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 等下游流程平滑衔接。

2コア機能

01Phase 0 仕様書の作成および要件の構造的分離
02暗黙の前提条件の洗い出しとリスク低減
03受入テスト基準およびコントラクトの明確化
04マイルストーンに基づく段階的開発ロードマップの策定
05模糊需求重构为客观量化的验收标准(Success Criteria)
06技术实施计划制定与细粒度单会话任务拆解(Task Template)
07活文档维护纪律(决策或范围变更时同步先改 Spec 并入库版本管理)

4推奨統制措置と判定根拠

安全運用のための推奨統制措置
Agent 向け
自動ロード可能
管理者向け
ソースとバージョンの記録
監査ノート: 仕様作成方法論のドキュメントであり、実行可能コードや特権要求を含みません。

5二重目の独立検証

  • [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 作为权威依据。

6結論

  • コードに着手する前の仕様段階で曖昧さを解消し、エンジニアリングの無駄な手戻りを徹底排除
  • 関係者と開発者の間で、エッジケースや例外処理の合意を初期段階で完全に一致させることが可能
  • AI Agentに対して曖昧さのない明確な青写真を提供し、見当違いな実装の生成を阻止
  • 最適な用途: 新機能開発、アーキテクチャ刷新、複数コンポーネントにまたがる大規模タスクに必須のエンジニアリング手法。
    不向きな用途: 単行の自明なバグ修正や軽微な設定変更など、仕様策定コストが勝る作業。
    💬 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
    Agent はこの JSON ガイドから自動的にダウンロードして検証します。
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 301b02b12b.