roadmap-sync
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou are helping the user synchronize with the current
change history.
.spec-driven/roadmap/你需要帮助用户将与当前变更历史同步。
.spec-driven/roadmap/Prerequisites
前提条件
The directory must exist at the project root. Before
proceeding, verify:
.spec-driven/ls .spec-driven/If this fails, the project is not initialized. Run first.
/spec-driven-initIf is missing, repair the scaffold first:
.spec-driven/roadmap/node {{SKILL_DIR}}/scripts/spec-driven.js init.spec-driven/ls .spec-driven/如果执行失败,说明项目未初始化,请先运行。
/spec-driven-init如果缺少目录,请先修复脚手架:
.spec-driven/roadmap/node {{SKILL_DIR}}/scripts/spec-driven.js initSteps
操作步骤
-
Read roadmap state first — before changing anything, read:
.spec-driven/config.yaml.spec-driven/roadmap/INDEX.md- every milestone file listed in the roadmap index
- run
node {{SKILL_DIR}}/scripts/spec-driven.js roadmap-status - inspect the returned milestone and planned change state summary
-
Compare roadmap to repository reality — use theoutput as the source of deterministic comparison. For each milestone in scope, identify:
roadmap-status- planned changes that are archived
- planned changes that still exist as active work
- planned changes that are missing or renamed
- milestone statuses that no longer match the derived status
- any ambiguity the script cannot resolve, such as likely renames or roadmap prose that still needs human judgment
-
Update roadmap files — reconcile milestone status and listed change state based on the repository evidence you found.
-
Preserve roadmap rules — during sync:
- do not mark a milestone complete unless every listed planned change is archived
- keep the roadmap as planning state, not an implementation log
-
Validate roadmap size before finish — run:
node {{SKILL_DIR}}/scripts/spec-driven.js verify-roadmapIf validation reports that any milestone is too large, stop and tell the user to split it instead of presenting roadmap sync as complete. -
Report the sync result — summarize:
- milestones updated
- planned changes whose state changed
- missing or ambiguous references that still need human cleanup
-
优先读取路线图状态 —— 在做出任何修改前,请先读取以下内容:
.spec-driven/config.yaml.spec-driven/roadmap/INDEX.md- 路线图索引中列出的所有里程碑文件
- 运行
node {{SKILL_DIR}}/scripts/spec-driven.js roadmap-status - 检查返回的里程碑和计划变更状态汇总
-
将路线图与仓库实际情况对比 —— 以的输出作为确定性对比的数据源。针对每个涉及的里程碑,识别:
roadmap-status- 已归档的计划变更
- 仍处于活跃工作状态的计划变更
- 缺失或已重命名的计划变更
- 与推导状态不再匹配的里程碑状态
- 脚本无法解决的任何歧义,例如可能的重命名,或仍需人工判断的路线图文本
-
更新路线图文件 —— 根据你找到的仓库证据,核对里程碑状态和列出的变更状态
-
遵守路线图规则 —— 同步过程中:
- 除非所有列出的计划变更都已归档,否则不要将里程碑标记为已完成
- 保留路线图作为规划状态,而非实现日志
-
完成前验证路线图规模 —— 运行:
node {{SKILL_DIR}}/scripts/spec-driven.js verify-roadmap如果验证报告显示任何里程碑过大,请停止操作并告知用户需要拆分里程碑,而非直接返回路线图同步已完成。 -
上报同步结果 —— 汇总以下内容:
- 已更新的里程碑
- 状态发生变化的计划变更
- 仍需人工清理的缺失或歧义引用
Rules
规则
- This is a planning/documentation skill only — do not change product code
- Use plus roadmap files as the source of truth for deterministic status comparison
roadmap-status - Do not preserve stale manual labels that conflict with actual archive state
- Surface ambiguity explicitly when a roadmap entry no longer matches any change
- 这仅属于规划/文档类技能 —— 不要修改产品代码
- 以输出加路线图文件作为确定性状态对比的可信数据源
roadmap-status - 不要保留与实际归档状态冲突的陈旧手动标签
- 当路线图条目与任何变更都不匹配时,明确指出歧义