gsd-phase

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<objective> Manage phases in ROADMAP.md with a single consolidated command.
Mode routing:
  • default (no flag): Add a new integer phase to the end of the current milestone → add-phase workflow
  • --insert: Insert urgent work as a decimal phase (e.g., 72.1) between existing phases → insert-phase workflow
  • --remove: Remove a future phase and renumber subsequent phases → remove-phase workflow
  • --edit: Edit any field of an existing phase in place → edit-phase workflow </objective>
<routing>
FlagActionWorkflow
(none)Add new integer phase at end of milestoneadd-phase
--insertInsert decimal phase (e.g., 72.1) after specified phaseinsert-phase
--removeRemove future phase, renumber subsequentremove-phase
--editEdit fields of existing phase in placeedit-phase
</routing>
<execution_context> @/.claude/gsd-core/workflows/add-phase.md @/.claude/gsd-core/workflows/insert-phase.md @/.claude/gsd-core/workflows/remove-phase.md @/.claude/gsd-core/workflows/edit-phase.md </execution_context>
<context> Arguments: $ARGUMENTS
Parse the first token of $ARGUMENTS:
  • If it is
    --insert
    : strip the flag, pass remainder (format: <after-phase-number> <description>) to insert-phase workflow
  • If it is
    --remove
    : strip the flag, pass remainder (phase number) to remove-phase workflow
  • If it is
    --edit
    : strip the flag, pass remainder (phase-number [--force]) to edit-phase workflow
  • Otherwise: pass all of $ARGUMENTS (phase description) to add-phase workflow
Roadmap and state are resolved in-workflow via
init phase-op
and targeted reads. </context>
<process> 1. Parse the leading flag (if any) from $ARGUMENTS. 2. Load and execute the appropriate workflow end-to-end based on the routing table above. 3. Preserve all validation gates from the target workflow. </process>
<objective> 使用统一的命令管理ROADMAP.md中的阶段。
模式路由:
  • 默认(无标志):在当前里程碑末尾添加一个新的整数阶段 → add-phase工作流
  • --insert:在现有阶段之间插入紧急工作作为小数阶段(例如72.1)→ insert-phase工作流
  • --remove:删除未来阶段并重新编号后续阶段 → remove-phase工作流
  • --edit:原地编辑现有阶段的任意字段 → edit-phase工作流 </objective>
<routing>
标志操作工作流
在里程碑末尾添加新的整数阶段add-phase
--insert在指定阶段后插入小数阶段(例如72.1)insert-phase
--remove删除未来阶段,重新编号后续阶段remove-phase
--edit原地编辑现有阶段的字段edit-phase
</routing>
<execution_context> @/.claude/gsd-core/workflows/add-phase.md @/.claude/gsd-core/workflows/insert-phase.md @/.claude/gsd-core/workflows/remove-phase.md @/.claude/gsd-core/workflows/edit-phase.md </execution_context>
<context> 参数:$ARGUMENTS
解析$ARGUMENTS的第一个令牌:
  • 如果是
    --insert
    :移除该标志,将剩余部分(格式:<after-phase-number> <description>)传递给insert-phase工作流
  • 如果是
    --remove
    :移除该标志,将剩余部分(阶段编号)传递给remove-phase工作流
  • 如果是
    --edit
    :移除该标志,将剩余部分(phase-number [--force])传递给edit-phase工作流
  • 否则:将全部$ARGUMENTS(阶段描述)传递给add-phase工作流
路线图和状态通过
init phase-op
和定向读取在工作流中解析。 </context>
<process> 1. 从$ARGUMENTS中解析开头的标志(如果有)。 2. 根据上述路由表加载并完整执行相应的工作流。 3. 保留目标工作流中的所有验证关卡。 </process>