AgentSkillsCN

spec-driven-dev

采用四阶段法进行功能规划——明确需求、设计架构、拆解为细粒度任务、实施并验证。生成原子级任务,确保代理能够无误地执行每一步。触发词包括“plan feature”“design”“new feature”“implement feature”“create spec”。

SKILL.md
--- frontmatter
name: spec-driven-dev
description: Feature planning with 4 phases - Specify requirements, Design architecture, break into granular Tasks, Implement and Validate. Creates atomic tasks that agents can implement without errors. Triggers on "plan feature", "design", "new feature", "implement feature", "create spec".

Spec-Driven Development

Plan and implement features with precision. Granular tasks. Clear dependencies. Right tools.

code
┌──────────┐   ┌──────────┐   ┌─────────┐   ┌───────────────────┐
│ SPECIFY  │ → │  DESIGN  │ → │  TASKS  │ → │ IMPLEMENT+VALIDATE│
└──────────┘   └──────────┘   └─────────┘   └───────────────────┘

Phase Selection

User wants to...Load reference
Define what to buildspecify.md
Design architecturedesign.md
Break into taskstasks.md
Implement a taskimplement.md
Verify it worksvalidate.md

Commands

CommandAction
specify [feature]Define requirements
design [feature]Design architecture
tasks [feature]Create task breakdown
implement T1Implement task
validateVerify implementation

Output

code
.specs/[feature-slug]/
├── spec.md
├── design.md
└── tasks.md