B. AskUserQuestion → request_user_input Mapping
GSD workflows use AskUserQuestion (Claude Code syntax). Translate to Codex request_user_input:
Parameter mapping:
header → header
question → question
- Options formatted as
"Label" — description → {label: "Label", description: "description"}
- Generate
id from header: lowercase, replace spaces with underscores
Batched calls:
AskUserQuestion([q1, q2]) → single request_user_input with multiple entries in questions[]
Multi-select workaround:
- Codex has no
multiSelect. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.
Execute mode fallback:
- When
request_user_input is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.
C. Task() → spawn_agent Mapping
GSD workflows use Task(...) (Claude Code syntax). Translate to Codex collaboration tools:
Direct mapping:
Task(subagent_type="X", prompt="Y") → spawn_agent(agent_type="X", message="Y")
Task(model="...") → omit (Codex uses per-role config, not inline model selection)
fork_context: false by default — GSD agents load their own context via <files_to_read> blocks
Parallel fan-out:
- Spawn multiple agents → collect agent IDs →
wait(ids) for all to complete
Result parsing:
- Look for structured markers in agent output:
CHECKPOINT, PLAN COMPLETE, SUMMARY, etc.
close_agent(id) after collecting results from each agent
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
- @C:/Users/nicol/.codex/get-shit-done/workflows/complete-milestone.md (main workflow)
- @C:/Users/nicol/.codex/get-shit-done/templates/milestone-archive.md (archive template)
User input:
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
Follow complete-milestone.md workflow:
Check for audit:
- Look for
.planning/v{{version}}-MILESTONE-AUDIT.md
- If missing or stale: recommend
$gsd-audit-milestone first
- If audit status is
gaps_found: recommend $gsd-plan-milestone-gaps first
- If audit status is
passed: proceed to step 1
## Pre-flight Check
{If no v{{version}}-MILESTONE-AUDIT.md:}
⚠ No milestone audit found. Run `$gsd-audit-milestone` first to verify
requirements coverage, cross-phase integration, and E2E flows.
{If audit has gaps:}
⚠ Milestone audit found gaps. Run `$gsd-plan-milestone-gaps` to create
phases that close the gaps, or proceed anyway to accept as tech debt.
{If audit passed:}
✓ Milestone audit passed. Proceeding with completion.
Verify readiness:
- Check all phases in milestone have completed plans (SUMMARY.md exists)
- Present milestone scope and stats
- Wait for confirmation
Gather stats:
- Count phases, plans, tasks
- Calculate git range, file changes, LOC
- Extract timeline from git log
- Present summary, confirm
Extract accomplishments:
- Read all phase SUMMARY.md files in milestone range
- Extract 4-6 key accomplishments
- Present for approval
Archive milestone:
- Create
.planning/milestones/v{{version}}-ROADMAP.md
- Extract full phase details from ROADMAP.md
- Fill milestone-archive.md template
- Update ROADMAP.md to one-line summary with link
Archive requirements:
- Create
.planning/milestones/v{{version}}-REQUIREMENTS.md
- Mark all v1 requirements as complete (checkboxes checked)
- Note requirement outcomes (validated, adjusted, dropped)
- Delete
.planning/REQUIREMENTS.md (fresh one created for next milestone)
Update PROJECT.md:
- Add "Current State" section with shipped version
- Add "Next Milestone Goals" section
- Archive previous content in
<details> (if v1.1+)
Commit and tag:
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
- Commit:
chore: archive v{{version}} milestone
- Tag:
git tag -a v{{version}} -m "[milestone summary]"
- Ask about pushing tag
Offer next steps:
$gsd-new-milestone — start next milestone (questioning → research → requirements → roadmap)
- Milestone archived to
.planning/milestones/v{{version}}-ROADMAP.md
- Requirements archived to
.planning/milestones/v{{version}}-REQUIREMENTS.md
.planning/REQUIREMENTS.md deleted (fresh for next milestone)
- ROADMAP.md collapsed to one-line entry
- PROJECT.md updated with current state
- Git tag v{{version}} created
- Commit successful
- User knows next steps (including need for fresh requirements)
- Load workflow first: Read complete-milestone.md before executing
- Verify completion: All phases must have SUMMARY.md files
- User confirmation: Wait for approval at verification gates
- Archive before deleting: Always create archive files before updating/deleting originals
- One-line summary: Collapsed milestone in ROADMAP.md should be single line with link
- Context efficiency: Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
- Fresh requirements: Next milestone starts with
$gsd-new-milestone which includes requirements definition
1---2name: "gsd-complete-milestone"3description: "Archive completed milestone and prepare for next version"4metadata:5 source: https://skillmd.com/skills/kursku/gsd-complete-milestone6 short-description: "Archive completed milestone and prepare for next version"7risk: safe8---910<codex_skill_adapter>11## A. Skill Invocation12- This skill is invoked by mentioning `$gsd-complete-milestone`.13- Treat all user text after `$gsd-complete-milestone` as `{{GSD_ARGS}}`.14- If no arguments are present, treat `{{GSD_ARGS}}` as empty.1516## B. AskUserQuestion → request_user_input Mapping17GSD workflows use `AskUserQuestion` (Claude Code syntax). Translate to Codex `request_user_input`:1819Parameter mapping:20- `header` → `header`21- `question` → `question`22- Options formatted as `"Label" — description` → `{label: "Label", description: "description"}`23- Generate `id` from header: lowercase, replace spaces with underscores2425Batched calls:26- `AskUserQuestion([q1, q2])` → single `request_user_input` with multiple entries in `questions[]`2728Multi-select workaround:29- Codex has no `multiSelect`. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.3031Execute mode fallback:32- When `request_user_input` is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.3334## C. Task() → spawn_agent Mapping35GSD workflows use `Task(...)` (Claude Code syntax). Translate to Codex collaboration tools:3637Direct mapping:38- `Task(subagent_type="X", prompt="Y")` → `spawn_agent(agent_type="X", message="Y")`39- `Task(model="...")` → omit (Codex uses per-role config, not inline model selection)40- `fork_context: false` by default — GSD agents load their own context via `<files_to_read>` blocks4142Parallel fan-out:43- Spawn multiple agents → collect agent IDs → `wait(ids)` for all to complete4445Result parsing:46- Look for structured markers in agent output: `CHECKPOINT`, `PLAN COMPLETE`, `SUMMARY`, etc.47- `close_agent(id)` after collecting results from each agent48</codex_skill_adapter>4950<objective>51Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.5253Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.54Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.55</objective>5657<execution_context>58**Load these files NOW (before proceeding):**5960- @C:/Users/nicol/.codex/get-shit-done/workflows/complete-milestone.md (main workflow)61- @C:/Users/nicol/.codex/get-shit-done/templates/milestone-archive.md (archive template)62 </execution_context>6364<context>65**Project files:**66- `.planning/ROADMAP.md`67- `.planning/REQUIREMENTS.md`68- `.planning/STATE.md`69- `.planning/PROJECT.md`7071**User input:**7273- Version: {{version}} (e.g., "1.0", "1.1", "2.0")74 </context>7576<process>7778**Follow complete-milestone.md workflow:**79800. **Check for audit:**8182 - Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`83 - If missing or stale: recommend `$gsd-audit-milestone` first84 - If audit status is `gaps_found`: recommend `$gsd-plan-milestone-gaps` first85 - If audit status is `passed`: proceed to step 18687 ```markdown88 ## Pre-flight Check8990 {If no v{{version}}-MILESTONE-AUDIT.md:}91 ⚠ No milestone audit found. Run `$gsd-audit-milestone` first to verify92 requirements coverage, cross-phase integration, and E2E flows.9394 {If audit has gaps:}95 ⚠ Milestone audit found gaps. Run `$gsd-plan-milestone-gaps` to create96 phases that close the gaps, or proceed anyway to accept as tech debt.9798 {If audit passed:}99 ✓ Milestone audit passed. Proceeding with completion.100 ```1011021. **Verify readiness:**103104 - Check all phases in milestone have completed plans (SUMMARY.md exists)105 - Present milestone scope and stats106 - Wait for confirmation1071082. **Gather stats:**109110 - Count phases, plans, tasks111 - Calculate git range, file changes, LOC112 - Extract timeline from git log113 - Present summary, confirm1141153. **Extract accomplishments:**116117 - Read all phase SUMMARY.md files in milestone range118 - Extract 4-6 key accomplishments119 - Present for approval1201214. **Archive milestone:**122123 - Create `.planning/milestones/v{{version}}-ROADMAP.md`124 - Extract full phase details from ROADMAP.md125 - Fill milestone-archive.md template126 - Update ROADMAP.md to one-line summary with link1271285. **Archive requirements:**129130 - Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`131 - Mark all v1 requirements as complete (checkboxes checked)132 - Note requirement outcomes (validated, adjusted, dropped)133 - Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)1341356. **Update PROJECT.md:**136137 - Add "Current State" section with shipped version138 - Add "Next Milestone Goals" section139 - Archive previous content in `<details>` (if v1.1+)1401417. **Commit and tag:**142143 - Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files144 - Commit: `chore: archive v{{version}} milestone`145 - Tag: `git tag -a v{{version}} -m "[milestone summary]"`146 - Ask about pushing tag1471488. **Offer next steps:**149 - `$gsd-new-milestone` — start next milestone (questioning → research → requirements → roadmap)150151</process>152153<success_criteria>154155- Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`156- Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`157- `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)158- ROADMAP.md collapsed to one-line entry159- PROJECT.md updated with current state160- Git tag v{{version}} created161- Commit successful162- User knows next steps (including need for fresh requirements)163 </success_criteria>164165<critical_rules>166167- **Load workflow first:** Read complete-milestone.md before executing168- **Verify completion:** All phases must have SUMMARY.md files169- **User confirmation:** Wait for approval at verification gates170- **Archive before deleting:** Always create archive files before updating/deleting originals171- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link172- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone173- **Fresh requirements:** Next milestone starts with `$gsd-new-milestone` which includes requirements definition174 </critical_rules>