gsd-phase
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<objective>
Manage phases in ROADMAP.md with a single consolidated command.
</routing>
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>
| Flag | Action | Workflow |
|---|---|---|
| (none) | Add new integer phase at end of milestone | add-phase |
| --insert | Insert decimal phase (e.g., 72.1) after specified phase | insert-phase |
| --remove | Remove future phase, renumber subsequent | remove-phase |
| --edit | Edit fields of existing phase in place | edit-phase |
<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 : strip the flag, pass remainder (format: <after-phase-number> <description>) to insert-phase workflow
--insert - If it is : strip the flag, pass remainder (phase number) to remove-phase workflow
--remove - If it is : strip the flag, pass remainder (phase-number [--force]) to edit-phase workflow
--edit - Otherwise: pass all of $ARGUMENTS (phase description) to add-phase workflow
Roadmap and state are resolved in-workflow via 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>init phase-op<objective>
使用统一的命令管理ROADMAP.md中的阶段。
</routing>
模式路由:
- 默认(无标志):在当前里程碑末尾添加一个新的整数阶段 → add-phase工作流
- --insert:在现有阶段之间插入紧急工作作为小数阶段(例如72.1)→ insert-phase工作流
- --remove:删除未来阶段并重新编号后续阶段 → remove-phase工作流
- --edit:原地编辑现有阶段的任意字段 → edit-phase工作流 </objective>
| 标志 | 操作 | 工作流 |
|---|---|---|
| 无 | 在里程碑末尾添加新的整数阶段 | add-phase |
| --insert | 在指定阶段后插入小数阶段(例如72.1) | insert-phase |
| --remove | 删除未来阶段,重新编号后续阶段 | remove-phase |
| --edit | 原地编辑现有阶段的字段 | edit-phase |
<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的第一个令牌:
- 如果是:移除该标志,将剩余部分(格式:<after-phase-number> <description>)传递给insert-phase工作流
--insert - 如果是:移除该标志,将剩余部分(阶段编号)传递给remove-phase工作流
--remove - 如果是:移除该标志,将剩余部分(phase-number [--force])传递给edit-phase工作流
--edit - 否则:将全部$ARGUMENTS(阶段描述)传递给add-phase工作流
路线图和状态通过和定向读取在工作流中解析。
</context>
<process>
1. 从$ARGUMENTS中解析开头的标志(如果有)。
2. 根据上述路由表加载并完整执行相应的工作流。
3. 保留目标工作流中的所有验证关卡。
</process>init phase-op