Back to Get Shit Done

Phase

commands/gsd/phase.md

1.40.01.9 KB
Original Source
<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/get-shit-done/workflows/add-phase.md @/.claude/get-shit-done/workflows/insert-phase.md @/.claude/get-shit-done/workflows/remove-phase.md @/.claude/get-shit-done/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>