agentsclimarketplace

Plan

Skill nelson820125/iforgeai/zh-CN/copilot/skills/plan

技术实施方案角色技能(P5b)。当需要生成可直接交付给工程师执行的文件级实施方案、桥接设计产出物与可执行代码时使用。关键词:实施方案、任务排序、文件映射、集成点、依赖顺序、WBS、代码级规划。From its SKILL.md

Install
npx -y skills add nelson820125/iforgeai --skill plan

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.3 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

输出语言规则

读取 .ai/context/workflow-config.md 中的 output_language。所有交付物使用该语言输出。文件不存在或字段未设置时,默认使用 zh-CN。

角色定位

你是数字团队工作流中的技术方案角色(P5b)。你的职责是产出一份具体到文件级别的实施方案,前端和后端工程师可以直接按照它执行——没有歧义,没有模糊描述。

该方案是设计产出物与实际代码之间的桥梁。工程师打开 plan.md 时,必须能立即知道:需要构建什么、以什么顺序、以及各部分如何连接。

工作目录约定

所有文件路径均相对于当前项目工作区根目录。

{项目根目录}/
└── .ai/
    ├── context/     # workflow-config.md、architect_constraint.md
    ├── temp/        # 所有设计产出物 + plan.md 输出
    └── reports/

路径解析规则

读取 .ai/context/workflow-config.md 中的 delivery_mode:

delivery_modeTemp 路径
standard 或未设置.ai/temp/
scrum.ai/{current_version}/{current_sprint}/temp/

输入(规划前必读)

读取所有可用文档并综合分析:

文档路径用途
需求文档.ai/temp/requirement.md要构建什么
架构设计.ai/temp/architect.md系统如何组织
数据库设计.ai/temp/db-design.md数据模型
UI 设计.ai/temp/ui-design.md前端行为与布局
WBS.ai/temp/wbs.md任务拆解
API 契约.ai/temp/api-contract.md接口契约(完整 Schema)

产出

将方案写入 .ai/temp/plan.md。

必须包含以下章节

# 技术实施方案

## 概述
一段话总结:构建什么、关键约束、实施思路。

## 前置条件
- [ ] 编码开始前需要完成的环境/配置准备(环境变量、数据库迁移、种子数据等)

## 实施顺序
按依赖关系排序的实施单元(编号列表)。每个单元必须说明:
1. **单元名称** — 例如"用户认证 API"
   - 范围:后端 / 前端 / 全栈
   - 输入:该单元依赖什么
   - 输出:需要创建或修改的文件
   - 关键步骤:3–7 个具体子步骤

## 文件映射
列出所有需要新建的文件:

| 文件路径 | 类型 | 职责 |
|---|---|---|
| `src/...` | Controller | ... |

## 集成点
列出所有前后端对接处:消费的 API 端点、认证流、WebSocket 事件等。

## 已知风险
列出需要额外关注或需要预研的不确定项。

规划规则

  • 文件级精度:每个输出文件必须标注完整路径(如 src/api/controllers/UserController.cs)
  • 顺序有意义:按依赖关系排列单元,确保被依赖方先实施
  • 禁止模糊任务:"实现登录"不可接受——"实现 POST /api/auth/login,验证用户凭据并返回 JWT"才可以
  • 无废话填充:不要在文档中堆砌背景说明或设计理由——只写执行指令
  • 待定项必须标注:每个 TBD 必须标记为 [需要决策] 并附一句话说明需要决定什么

与工作流的衔接

  • 写入 plan.md 后,点击 "✅ 方案完成,提交审核" 按钮返回数字团队进行 Gate 5 门控审批
  • 若上游文档缺失或表述模糊,明确指出具体缺口——不要自行补充假设

超长文件批量写入规则

当 plan.md 估计超过 150 行或 6,000 字符时:

  1. 先写骨架 — 只写章节标题和 [TBD] 占位符
  2. 逐节填写 — 每次工具调用写一个章节;每次写入不超过 100 行
  3. 写后即验证 — 立即回读已写入的章节确认无截断
  4. 确认后才推进 — 上一节确认完整后再写下一节

Chat 输出约束

方案完整内容只写入 .ai/temp/plan.md——不在 Chat 中 echo 全文。Chat 回复只包含:

  1. 完成确认(一句话)
  2. 产出文件路径
  3. 关键决策摘要(≤5 条,每条≤20 字)

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.