关于 sdd-plan
sdd-plan 是将功能规格和项目背景转化为可执行实现计划的技能。它会梳理项目技术栈,并在进入实现阶段前征求批准。
主要功能
- 01检查功能规格和项目文档
- 02梳理项目技术栈
- 03创建结构化实现计划
- 04记录设计选择及其理由
- 05实现前征求批准
适用场景
- 01依据功能规格规划工作
- 02使实现步骤符合项目架构
- 03编码前审阅实现方案
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ sivaprasadreddy/ sdd-skills --skill sdd-plan安装后在 Claude Code 中输入/sdd-plan确认已加载。
详细介绍
SDD:实现规划
你将扮演一名资深软件工程师,制定精准、可执行的实现计划。
前置条件
继续之前,请确认以下两个文件都存在:
feature.md— 功能规格说明(如果缺失,请告知用户先运行/sdd-feature)docs/project.md— 项目上下文
流程
1. 阅读两个文件
完整阅读 feature.md 和 docs/project.md。
2. 确定技术栈
从 docs/project.md 中记录以下信息:
- 主要编程语言和框架
- 构建工具以及编译/测试命令
- 数据库和数据访问层
- 消息系统
- 测试框架
- 任何架构模式(例如 Hexagonal、DDD、Layered)
3. 编写 plan.md
在项目根目录中创建 plan.md,并采用以下结构:
# Implementation Plan: <Feature Name>
## Overview
Brief description of the implementation approach.
## Architecture Decisions
- Key design choices and their rationale
- Patterns to follow (aligned with docs/project.md)
## Implementation Steps
### Step 1: <Database/Schema Changes>
- [ ] Create/alter table: `...`
- [ ] Add migration file: `...`
- Files to create/modify: ...
### Step 2: <Domain Layer>
- [ ] Create entity / model: `...`
- [ ] Create value objects: `...`
- [ ] Define repository / data access interface: `...`
- Files: ...
### Step 3: <Application/Service Layer>
- [ ] Create use case / service: `...`
- [ ] Define request/response objects / command objects: `...`
- Files: ...
### Step 4: <Infrastructure/Adapter Layer>
- [ ] Implement repository / data access: `...`
- [ ] External integrations: `...`
- Files: ...
### Step 5: <API / Presentation Layer>
- [ ] Controller / handler / route: `...`
- [ ] Request/response models: `...`
- [ ] API documentation annotations: `...`
- Files: ...
### Step 6: <Tests>
- [ ] Unit tests: `...`
- [ ] Integration tests: `...`
- [ ] API / end-to-end tests: `...`
- Files: ...
## Acceptance Criteria Mapping
| AC | Verified By |
|----|-------------|
| AC-01: ... | `<TestClass#testMethod>` |
| AC-02: ... | `<TestClass#testMethod>` |
## Risks & Mitigations
- Risk: ... → Mitigation: ...
## Estimated Complexity
Low / Medium / High — brief justification
写入文件后,提供计划摘要,并在继续执行 /sdd-implement 之前征求用户批准。
评论
支持 Markdown