spec-implementation-plan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesespec-implementation-plan(I1:实现计划 / plan.md SSOT)
spec-implementation-plan (I1: Implementation Plan / plan.md SSOT)
概览
Overview
I1 的目标是把 与 转换为可直接执行的实现计划 ,并将其作为唯一执行清单与状态 SSOT(checkbox 任务 + 每任务步骤 + 最小验证 + 提交点 + 审计信息)。
{FEATURE_DIR}/requirements/*{FEATURE_DIR}/design/*{FEATURE_DIR}/implementation/plan.md开始时宣布:「我正在使用 spec-implementation-plan 技能创建实现计划(plan.md SSOT)。」
The goal of I1 is to convert and into a directly executable implementation plan , which serves as the single source of truth (SSOT) for execution checklist and status (checkbox tasks + steps per task + minimal validation + commit points + audit information).
{FEATURE_DIR}/requirements/*{FEATURE_DIR}/design/*{FEATURE_DIR}/implementation/plan.mdAnnounce at the start: "I am using the spec-implementation-plan skill to create an implementation plan (plan.md SSOT)."
何时使用 / 不使用
When to Use / Not to Use
- 使用时机
- 你需要产出或更新 (I1 必做)。
{FEATURE_DIR}/implementation/plan.md - 你准备进入 I2 执行,但当前没有“可勾选 + 可执行”的任务清单。
- 你需要产出或更新
- 不要用在
- 失败、拿不到
spec-context(此时必须停止)。FEATURE_DIR - 输入侧 SSOT 不足:与
requirements/solution.md都不存在,且无法追溯范围/验收(必须在 plan.md 标注 NEEDS CLARIFICATION 并阻断进入 I2)。requirements/prd.md
- When to use
- You need to generate or update (mandatory for I1).
{FEATURE_DIR}/implementation/plan.md - You are preparing to enter I2 execution but currently do not have a "checkable + executable" task list.
- You need to generate or update
- Do not use when
- fails and you cannot obtain
spec-context(must stop immediately).FEATURE_DIR - Insufficient input SSOT: Both and
requirements/solution.mddo not exist, and you cannot trace the scope/acceptance (must mark NEEDS CLARIFICATION in plan.md and block entry into I2).requirements/prd.md
门禁 / 停止(严格执行)
Gatekeeping / Stop (Strictly Enforced)
REQUIRED SUB-SKILL:先执行 并在对话中回显 。
spec-contextFEATURE_DIR=...powershell
$repoRoot = (git rev-parse --show-toplevel)
. (Join-Path $repoRoot "skills\spec-context\spec-common.ps1")
$context = Get-SpecContext
$FEATURE_DIR = $context.FEATURE_DIR
Write-Host "FEATURE_DIR=$FEATURE_DIR"立刻停止(满足其一即可):
- 未得到
FEATURE_DIR - 分支/目录不确定(你发现自己想“猜 路径”)
.aisdlc/specs/... - 与
requirements/solution.md均缺失,导致目标/范围/验收口径无法追溯requirements/prd.md - 任何关键不确定性无法在输入中证据化(必须写入 ,并明确“阻断进入 I2”)
plan.md/## NEEDS CLARIFICATION
REQUIRED SUB-SKILL: Execute first and echo in the conversation.
spec-contextFEATURE_DIR=...powershell
$repoRoot = (git rev-parse --show-toplevel)
. (Join-Path $repoRoot "skills\spec-context\spec-common.ps1")
$context = Get-SpecContext
$FEATURE_DIR = $context.FEATURE_DIR
Write-Host "FEATURE_DIR=$FEATURE_DIR"Stop immediately if any of the following is true:
- is not obtained
FEATURE_DIR - Branch/directory is uncertain (you find yourself wanting to "guess the path")
.aisdlc/specs/... - Both and
requirements/solution.mdare missing, making it impossible to trace the objective/scope/acceptance criteriarequirements/prd.md - Any critical uncertainty cannot be evidenced in the input (must be written into and clearly state "block entry into I2")
plan.md/## NEEDS CLARIFICATION
输入 / 输出(落盘约定)
Input / Output (File Storage Convention)
- 读取(渐进式披露,最少必要)
- 项目级(必读其索引或必要片段):、
project/memory/*、project/contracts/project/adr/ - Spec 级(按需最少读):或
{FEATURE_DIR}/requirements/solution.md(至少其一){FEATURE_DIR}/requirements/prd.md - Spec 级(如存在且相关):、
{FEATURE_DIR}/design/design.md{FEATURE_DIR}/design/research.md
- 项目级(必读其索引或必要片段):
- 写入(唯一)
{FEATURE_DIR}/implementation/plan.md
- Read (Progressive Disclosure, Minimal Necessary)
- Project-level (must read its index or necessary fragments): ,
project/memory/*,project/contracts/project/adr/ - Spec-level (read minimally as needed): Either or
{FEATURE_DIR}/requirements/solution.md(at least one){FEATURE_DIR}/requirements/prd.md - Spec-level (if exists and relevant): ,
{FEATURE_DIR}/design/design.md{FEATURE_DIR}/design/research.md
- Project-level (must read its index or necessary fragments):
- Write (Only)
{FEATURE_DIR}/implementation/plan.md
小块任务粒度(重用 writing-plans)
Small Task Granularity (Reuse writing-plans)
每一步是一个动作(2–5 分钟),并在 中写到“任何人照抄即可执行”:
plan.md- 「写失败测试」(如适用)- 一步
- 「运行确保失败」- 一步
- 「实现让测试通过的最少代码」- 一步
- 「运行验证确保通过」- 一步
- 「提交」(频繁提交)- 一步
约束:I1 只写计划,不写代码;但每个任务必须声明其最小验证方式(命令 + 期望信号)。
Each step is an action (2–5 minutes) and should be written in to the extent that "anyone can follow and execute it":
plan.md- "Write failing test" (if applicable) - one step
- "Run to ensure failure" - one step
- "Implement minimal code to make the test pass" - one step
- "Run verification to ensure pass" - one step
- "Commit" (frequent commits) - one step
Constraint: I1 only writes the plan, not code; but each task must declare its minimal verification method (command + expected signal).
plan.md
头部(必须)
plan.mdplan.md
Header (Mandatory)
plan.md必须以该头部开头(模板见 ):
./plan-template.mdmarkdown
undefinedMust start with this header (template see ):
./plan-template.mdmarkdown
undefined[需求名] 实现计划(SSOT)
[Requirement Name] Implementation Plan (SSOT)
必需技能:(按批次执行本计划) 上下文门禁: 必须先用spec-implementation-execute定位spec-context,失败即停止{FEATURE_DIR}
目标: [一句话描述要交付什么]
范围: In / Out
架构: [2–3 句方法说明 + 关键约束]
验收口径: [引用 requirements/solution.md 或 requirements/prd.md 的 AC/验收点]
undefinedRequired Skill:(execute this plan in batches) Context Gatekeeping: Must first usespec-implementation-executeto locatespec-context, stop if failed{FEATURE_DIR}
Objective: [One-sentence description of what to deliver]
Scope: In / Out
Architecture: [2–3 sentences of method description + key constraints]
Acceptance Criteria: [Reference AC/acceptance points from requirements/solution.md or requirements/prd.md]
undefined计划正文(必须)
Plan Body (Mandatory)
- TL;DR:一句话概括计划目标与范围
- 范围与边界:In/Out(对齐需求与设计)
- 里程碑与节奏:阶段拆分、时间预估、交付物清单
- 依赖与资源:外部系统/团队/权限/环境/数据依赖
- 风险与验证:风险清单、验证方式、Owner
- 验收口径:对应 PRD/方案的关键 AC 与验收人
- NEEDS CLARIFICATION(必须有):统一列出未消除的不确定项(未消除前不得进入 I2)
- TL;DR: One-sentence summary of the plan's objective and scope
- Scope and Boundaries: In/Out (aligned with requirements and design)
- Milestones and Rhythm: Phase split, time estimation, deliverable list
- Dependencies and Resources: Dependencies on external systems/teams/permissions/environments/data
- Risks and Verification: Risk list, verification methods, Owner
- Acceptance Criteria: Key AC and acceptors corresponding to PRD/solution
- NEEDS CLARIFICATION (Mandatory): Unified list of unresolved uncertainties (cannot enter I2 until resolved)
任务结构(重用 writing-plans,但加入 SSOT/审计/门禁)
Task Structure (Reuse writing-plans, add SSOT/Audit/Gatekeeping)
plan.md- [ ]/- [x]每个任务必须包含:
- 精确文件路径(创建/修改/测试)
- 可验证验收点(可测试条件)
- 可执行步骤(命令 + 期望输出/信号)
- 提交点与最小审计信息()
commit/pr/changed_files
任务模板(示例骨架):
markdown
undefinedThe must include a checkable task list as the only source of truth for execution and status ().
plan.md- [ ]/- [x]Each task must include:
- Exact file path (create/modify/test)
- Verifiable acceptance points (testable conditions)
- Executable steps (command + expected output/signal)
- Commit points and minimal audit information ()
commit/pr/changed_files
Task Template (Example Skeleton):
markdown
undefined任务清单(SSOT)
Task List (SSOT)
Task T1: [任务标题]
Task T1: [Task Title]
- 状态:未开始 / 进行中 / 完成 / 阻塞(阻塞必须写明取证路径)
文件:
- 创建:
exact/path/to/new.file - 修改:(可选:精确到段落/函数)
exact/path/to/existing.file - 测试:(如适用)
tests/exact/path/to/test.file
验收点:
- [可验证条件 1]
- [可验证条件 2]
步骤 1:写失败测试(如适用)
- 修改点:
tests/... - Run:
[精确命令] - Expected: FAIL(写出期望看到的关键失败信号)
步骤 2:写最少实现
- 修改点:
path/to/file
步骤 3:运行验证
- Run:
[精确命令] - Expected: PASS(写出期望看到的关键通过信号)
步骤 4:提交(频繁提交;commit message 必须中文)
- Commit message:
[一句话说明 why(中文)] - 审计信息:、
commit=<TBD>、pr=<TBD>changed_files=<TBD>
> 命令书写约定:默认面向 PowerShell;同一行多命令请用 `;` 分隔(不要用 `&&`)。- Status: Not Started / In Progress / Completed / Blocked (must provide evidence path if blocked)
Files:
- Create:
exact/path/to/new.file - Modify: (optional: exact paragraph/function)
exact/path/to/existing.file - Test: (if applicable)
tests/exact/path/to/test.file
Acceptance Points:
- [Verifiable condition 1]
- [Verifiable condition 2]
Step 1: Write failing test (if applicable)
- Modification point:
tests/... - Run:
[exact command] - Expected: FAIL (write the key failure signal expected)
Step 2: Write minimal implementation
- Modification point:
path/to/file
Step 3: Run verification
- Run:
[exact command] - Expected: PASS (write the key pass signal expected)
Step 4: Commit (commit frequently; commit message must be in Chinese)
- Commit message:
[One-sentence explanation in Chinese] - Audit Information: 、
commit=<TBD>、pr=<TBD>changed_files=<TBD>
> Command Writing Convention: Default to PowerShell; use `;` to separate multiple commands on the same line (do not use `&&`).I1-DoD(门禁:缺一不可)
I1-DoD (Gatekeeping: No Exceptions)
- 计划范围与 、
{FEATURE_DIR}/requirements/*一致且可追溯{FEATURE_DIR}/design/* - 里程碑明确且可验收(每一项有对应产物或可验证标准)
- 依赖与风险已列出,并有最小验证/缓解动作(含 Owner)
- 关键验收口径可追溯(至少引用 或
requirements/prd.md)requirements/solution.md - 内存在“任务清单(SSOT)”,且每个任务包含:文件路径、验收点、最小验证方式、提交点与审计信息
plan.md - 任何不确定项均进入 ,且未消除前不得进入 I2
NEEDS CLARIFICATION
- The plan scope is consistent and traceable with and
{FEATURE_DIR}/requirements/*{FEATURE_DIR}/design/* - Milestones are clear and acceptable (each has a corresponding deliverable or verifiable standard)
- Dependencies and risks are listed, with minimal verification/mitigation actions (including Owner)
- Key acceptance criteria are traceable (at least reference or
requirements/prd.md)requirements/solution.md - The contains a "Task List (SSOT)", and each task includes: file path, acceptance points, minimal verification method, commit points and audit information
plan.md - Any unresolved uncertainties are listed in , and cannot enter I2 until resolved
NEEDS CLARIFICATION
牢记(高频规则速查)
Keep in Mind (Quick Reference for High-Frequency Rules)
- 始终先 拿到
spec-context,失败就停止FEATURE_DIR=... - 始终写精确路径、精确命令与期望信号
- 不要把不确定性写成已知;统一进入 并阻断 I2
NEEDS CLARIFICATION - DRY、YAGNI、TDD、频繁提交(计划里也要体现提交节奏)
- Always use first to get
spec-context, stop if failedFEATURE_DIR=... - Always write exact paths, exact commands and expected signals
- Do not treat uncertainties as known; uniformly list them in and block I2
NEEDS CLARIFICATION - DRY, YAGNI, TDD, frequent commits (the commit rhythm should also be reflected in the plan)
执行交接(写完 plan.md 之后)
Execution Handover (After Writing plan.md)
保存计划后,提供执行选项(重用 的交接话术,但输出位置与执行技能对齐 Spec 实现阶段):
writing-plans「计划已完成并保存到 。两种执行方式:」
{FEATURE_DIR}/implementation/plan.md1. Subagent-Driven(本会话) - 留在本会话,用子智能体按任务执行,并在任务间做检查点审查与回写
- 必需子技能: 使用
subagent-driven-development - 执行方式:
- 以 为唯一 SSOT
{FEATURE_DIR}/implementation/plan.md - 按批次执行(默认前 3 个未完成任务),每批完成后汇报并等待反馈
- 执行中回写:勾选任务(→
- [ ])+ 补齐- [x]+ 关键验证结果commit/pr/changed_files
- 以
2. 并行会话(另开) - 另开会话按批次执行,适合更“执行导向”的跑通式推进
- 必需子技能: 优先使用 (实现阶段 SOP 的 I2 执行技能;按批次执行并回写
spec-implementation-execute)plan.md
选哪种?
若计划存在关键缺陷/不确定性:先停在 I1,补齐的取证路径与最小验证动作,再进入 I2(不要猜测推进)。NEEDS CLARIFICATION
After saving the plan, provide execution options (reuse the handover wording of , but align the output location and execution skill with the Spec implementation phase):
writing-plans"The plan has been completed and saved to . Two execution methods:"
{FEATURE_DIR}/implementation/plan.md1. Subagent-Driven (This Session) - Stay in this session, use sub-agents to execute tasks, and conduct checkpoint reviews and rewrites between tasks
- Required Sub-Skill: Use
subagent-driven-development - Execution Method:
- Take as the only SSOT
{FEATURE_DIR}/implementation/plan.md - Execute in batches (default first 3 incomplete tasks), report after each batch is completed and wait for feedback
- Rewrite during execution: Check off tasks (→
- [ ]) + fill in- [x]+ key verification resultscommit/pr/changed_files
- Take
2. Parallel Session (New Session) - Open a new session to execute in batches, suitable for more execution-oriented, end-to-end advancement
- Required Sub-Skill: Prefer to use (I2 execution skill in the implementation phase SOP; execute in batches and rewrite
spec-implementation-execute)plan.md
Which one to choose?
If there are critical defects/uncertainties in the plan: Stay in I1 first, complete the evidence path and minimal verification actions for, then enter I2 (do not guess and advance).NEEDS CLARIFICATION