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
How it works:
- Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)
- Scout codebase for reusable assets and patterns
- Analyze phase — skip gray areas already decided in prior phases
- Present remaining gray areas — user selects which to discuss
- Deep-dive each selected area until satisfied
- Create CONTEXT.md with decisions that guide research and planning
Output: {phase_num}-CONTEXT.md — decisions clear enough that downstream agents can act without asking the user again
Context files are resolved in-workflow using init phase-op and roadmap/state tool calls.
CRITICAL: Scope guardrail
- Phase boundary from ROADMAP.md is FIXED
- Discussion clarifies HOW to implement, not WHETHER to add more
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
- Capture deferred ideas — don't lose them, don't act on them
Domain-aware gray areas:
Gray areas depend on what's being built. Analyze the phase goal:
- Something users SEE → layout, density, interactions, states
- Something users CALL → responses, errors, auth, versioning
- Something users RUN → output format, flags, modes, error handling
- Something users READ → structure, tone, depth, flow
- Something being ORGANIZED → criteria, grouping, naming, exceptions
Generate 3-4 phase-specific gray areas, not generic categories.
Probing depth:
- Ask 4 questions per area before checking
- "More questions about [area], or move to next?"
- If more → ask 4 more, check again
- After all areas → "Ready to create context?"
Do NOT ask about (Claude handles these):
- Technical implementation
- Architecture choices
- Performance concerns
- Scope expansion
1---2name: gsd-discuss-phase3description: Gather phase context through adaptive questioning before planning4---56<codex_skill_adapter>7## A. Skill Invocation8- This skill is invoked by mentioning `$gsd-discuss-phase`.9- Treat all user text after `$gsd-discuss-phase` as `{{GSD_ARGS}}`.10- If no arguments are present, treat `{{GSD_ARGS}}` as empty.1112## B. AskUserQuestion → request_user_input Mapping13GSD workflows use `AskUserQuestion` (Claude Code syntax). Translate to Codex `request_user_input`:1415Parameter mapping:16- `header` → `header`17- `question` → `question`18- Options formatted as `"Label" — description` → `{label: "Label", description: "description"}`19- Generate `id` from header: lowercase, replace spaces with underscores2021Batched calls:22- `AskUserQuestion([q1, q2])` → single `request_user_input` with multiple entries in `questions[]`2324Multi-select workaround:25- Codex has no `multiSelect`. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.2627Execute mode fallback:28- When `request_user_input` is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.2930## C. Task() → spawn_agent Mapping31GSD workflows use `Task(...)` (Claude Code syntax). Translate to Codex collaboration tools:3233Direct mapping:34- `Task(subagent_type="X", prompt="Y")` → `spawn_agent(agent_type="X", message="Y")`35- `Task(model="...")` → omit (Codex uses per-role config, not inline model selection)36- `fork_context: false` by default — GSD agents load their own context via `<files_to_read>` blocks3738Parallel fan-out:39- Spawn multiple agents → collect agent IDs → `wait(ids)` for all to complete4041Result parsing:42- Look for structured markers in agent output: `CHECKPOINT`, `PLAN COMPLETE`, `SUMMARY`, etc.43- `close_agent(id)` after collecting results from each agent44</codex_skill_adapter>4546<objective>47Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.4849**How it works:**501. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)512. Scout codebase for reusable assets and patterns523. Analyze phase — skip gray areas already decided in prior phases534. Present remaining gray areas — user selects which to discuss545. Deep-dive each selected area until satisfied556. Create CONTEXT.md with decisions that guide research and planning5657**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again58</objective>5960<execution_context>61@C:/Users/nicol/.codex/get-shit-done/workflows/discuss-phase.md62@C:/Users/nicol/.codex/get-shit-done/templates/context.md63</execution_context>6465<context>66Phase number: {{GSD_ARGS}} (required)6768Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.69</context>7071<process>721. Validate phase number (error if missing or not in roadmap)732. Check if CONTEXT.md exists (offer update/view/skip if yes)743. **Load prior context** — Read PROJECT.md, REQUIREMENTS.md, STATE.md, and all prior CONTEXT.md files754. **Scout codebase** — Find reusable assets, patterns, and integration points765. **Analyze phase** — Check prior decisions, skip already-decided areas, generate remaining gray areas776. **Present gray areas** — Multi-select: which to discuss? Annotate with prior decisions + code context787. **Deep-dive each area** — 4 questions per area, code-informed options, Context7 for library choices798. **Write CONTEXT.md** — Sections match areas discussed + code_context section809. Offer next steps (research or plan)8182**CRITICAL: Scope guardrail**83- Phase boundary from ROADMAP.md is FIXED84- Discussion clarifies HOW to implement, not WHETHER to add more85- If user suggests new capabilities: "That's its own phase. I'll note it for later."86- Capture deferred ideas — don't lose them, don't act on them8788**Domain-aware gray areas:**89Gray areas depend on what's being built. Analyze the phase goal:90- Something users SEE → layout, density, interactions, states91- Something users CALL → responses, errors, auth, versioning92- Something users RUN → output format, flags, modes, error handling93- Something users READ → structure, tone, depth, flow94- Something being ORGANIZED → criteria, grouping, naming, exceptions9596Generate 3-4 **phase-specific** gray areas, not generic categories.9798**Probing depth:**99- Ask 4 questions per area before checking100- "More questions about [area], or move to next?"101- If more → ask 4 more, check again102- After all areas → "Ready to create context?"103104**Do NOT ask about (Claude handles these):**105- Technical implementation106- Architecture choices107- Performance concerns108- Scope expansion109</process>110111<success_criteria>112- Prior context loaded and applied (no re-asking decided questions)113- Gray areas identified through intelligent analysis114- User chose which areas to discuss115- Each selected area explored until satisfied116- Scope creep redirected to deferred ideas117- CONTEXT.md captures decisions, not vague vision118- User knows next steps119</success_criteria>