# Write Dev Plan

> 基于 change-requests/{CR-ID}/sdd.md 编写开发计划 plan.md，包含里程碑排期、任务依赖图、风险与回滚策略。

- **Type:** Skill
- **Install:** `agentstack add skill-xinyiai0724-tools-write-dev-plan`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [xinyiai0724](https://agentstack.voostack.com/s/xinyiai0724)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [xinyiai0724](https://github.com/xinyiai0724)
- **Source:** https://github.com/xinyiai0724/tools/tree/main/skills/develop/write-dev-plan

## Install

```sh
agentstack add skill-xinyiai0724-tools-write-dev-plan
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: write-dev-plan

**类型**: 开发期 Skill（develop/ 组）  
**调用时机**: code-implementation pipeline 第 1 节点

---

## 用途

将 SDD 转化为可执行的开发计划，落盘到 `change-requests/{CR-ID}/plan.md`，作为 write-dev-tasks 的输入基础。

---

## 参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `cr_id` | string | ✅ | 目标 CR-ID |
| `target_version` | string | ❌ | 目标版本，写入 plan.md frontmatter |

---

## 执行步骤

### Step 1 — 前置校验

1. 确认 `change-requests/{cr_id}/sdd.md` 存在
2. CR status 应为 `tech-design-reviewed`

### Step 2 — 生成 plan.md

```yaml
---
id: {cr_id}-plan
type: PLAN
cr-ref: {cr_id}
sdd-ref: "change-requests/{cr_id}/sdd.md"
target-version: {target_version 或 tbd}
status: draft
created: {YYYY-MM-DDTHH:mm:ss+08:00}
updated: {YYYY-MM-DDTHH:mm:ss+08:00}
---
```

章节：
1. **交付里程碑** — 阶段划分（设计 / 实现 / 测试 / 联调 / 发布）与时间估算
2. **任务依赖图** — 各模块/接口任务的依赖关系（文字描述或 ASCII 图）
3. **资源与分工** — 预计工时分配
4. **风险与回滚策略** — 技术风险列表及对应回滚方案
5. **验收与发布策略** — 发布前 checklist / feature-flag 计划

### Step 3 — 落盘并 commit

落盘到 `change-requests/{cr_id}/plan.md`。  
Commit：`feat({cr_id}): draft dev plan`

### Step 4 — 输出摘要

```
✅ 开发计划已生成
   文件       : change-requests/{cr_id}/plan.md
   里程碑数   : {N}
   估算总工时 : {N} 人天
   下一步     : 执行 write-dev-tasks
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [xinyiai0724](https://github.com/xinyiai0724)
- **Source:** [xinyiai0724/tools](https://github.com/xinyiai0724/tools)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-xinyiai0724-tools-write-dev-plan
- Seller: https://agentstack.voostack.com/s/xinyiai0724
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
