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-phase"3description: "Gather phase context through adaptive questioning before planning"4metadata:5 source: https://skillmd.com/skills/kursku/gsd-discuss-phase6 short-description: "Gather phase context through adaptive questioning before planning"7risk: safe8---910<codex_skill_adapter>11## A. Skill Invocation12- This skill is invoked by mentioning `$gsd-discuss-phase`.13- Treat all user text after `$gsd-discuss-phase` 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>51Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.5253**How it works:**541. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)552. Scout codebase for reusable assets and patterns563. Analyze phase — skip gray areas already decided in prior phases574. Present remaining gray areas — user selects which to discuss585. Deep-dive each selected area until satisfied596. Create CONTEXT.md with decisions that guide research and planning6061**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again62</objective>6364<execution_context>65@C:/Users/nicol/.codex/get-shit-done/workflows/discuss-phase.md66@C:/Users/nicol/.codex/get-shit-done/templates/context.md67</execution_context>6869<context>70Phase number: {{GSD_ARGS}} (required)7172Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.73</context>7475<process>761. Validate phase number (error if missing or not in roadmap)772. Check if CONTEXT.md exists (offer update/view/skip if yes)783. **Load prior context** — Read PROJECT.md, REQUIREMENTS.md, STATE.md, and all prior CONTEXT.md files794. **Scout codebase** — Find reusable assets, patterns, and integration points805. **Analyze phase** — Check prior decisions, skip already-decided areas, generate remaining gray areas816. **Present gray areas** — Multi-select: which to discuss? Annotate with prior decisions + code context827. **Deep-dive each area** — 4 questions per area, code-informed options, Context7 for library choices838. **Write CONTEXT.md** — Sections match areas discussed + code_context section849. Offer next steps (research or plan)8586**CRITICAL: Scope guardrail**87- Phase boundary from ROADMAP.md is FIXED88- Discussion clarifies HOW to implement, not WHETHER to add more89- If user suggests new capabilities: "That's its own phase. I'll note it for later."90- Capture deferred ideas — don't lose them, don't act on them9192**Domain-aware gray areas:**93Gray areas depend on what's being built. Analyze the phase goal:94- Something users SEE → layout, density, interactions, states95- Something users CALL → responses, errors, auth, versioning96- Something users RUN → output format, flags, modes, error handling97- Something users READ → structure, tone, depth, flow98- Something being ORGANIZED → criteria, grouping, naming, exceptions99100Generate 3-4 **phase-specific** gray areas, not generic categories.101102**Probing depth:**103- Ask 4 questions per area before checking104- "More questions about [area], or move to next?"105- If more → ask 4 more, check again106- After all areas → "Ready to create context?"107108**Do NOT ask about (Claude handles these):**109- Technical implementation110- Architecture choices111- Performance concerns112- Scope expansion113</process>114115<success_criteria>116- Prior context loaded and applied (no re-asking decided questions)117- Gray areas identified through intelligent analysis118- User chose which areas to discuss119- Each selected area explored until satisfied120- Scope creep redirected to deferred ideas121- CONTEXT.md captures decisions, not vague vision122- User knows next steps123</success_criteria>