# Debug Subagent Prompt Template Template for spawning gsd-debugger agent. The agent contains all debugging expertise - this template provides problem context only. --- ## Template ```markdown Investigate issue: {issue_id} **Summary:** {issue_summary} expected: {expected} actual: {actual} errors: {errors} reproduction: {reproduction} timeline: {timeline} symptoms_prefilled: {true_or_false} goal: {find_root_cause_only | find_and_fix} Create: .planning/debug/{slug}.md ``` --- ## Placeholders | Placeholder | Source | Example | |-------------|--------|---------| | `{issue_id}` | Orchestrator-assigned | `auth-screen-dark` | | `{issue_summary}` | User description | `Auth screen is too dark` | | `{expected}` | From symptoms | `See logo clearly` | | `{actual}` | From symptoms | `Screen is dark` | | `{errors}` | From symptoms | `None in console` | | `{reproduction}` | From symptoms | `Open /auth page` | | `{timeline}` | From symptoms | `After recent deploy` | | `{goal}` | Orchestrator sets | `find_and_fix` | | `{slug}` | Generated | `auth-screen-dark` | --- ## Usage **From /gsd:debug:** ```python Task( prompt=filled_template, subagent_type="gsd-debugger", description="Debug {slug}" ) ``` **From diagnose-issues (UAT):** ```python Task(prompt=template, subagent_type="gsd-debugger", description="Debug UAT-001") ``` --- ## Continuation For checkpoints, spawn fresh agent with: ```markdown Continue debugging {slug}. Evidence is in the debug file. Debug file: @.planning/debug/{slug}.md **Type:** {checkpoint_type} **Response:** {user_response} goal: {goal} ```