Plan
Creates a detailed implementation plan for an issue. Provide an issue ID as the argument.
Claude CodeGeneric
---
description: Creates a detailed implementation plan for an issue. Provide an issue ID as the argument.
---
# Plan Issue
Thin wrapper that bootstraps context and spawns the planner agent.
## Instructions
1. **Parse arguments**
Extract the issue ID from `$ARGUMENTS`. Normalize to uppercase (e.g., `pap-123` → `PAP-123`).
2. **Bootstrap context** following the Workbench Context section in `CLAUDE.md`:
- Detect pathway (check for `.workbench/config.yaml`)
- Check ck availability
- Resolve PM tool from `.workbench/settings.yml`
3. **Spawn the planner agent** via the Agent tool:
- `subagent_type`: `"claude"`
- Include in the prompt:
- The resolved pathway context block (see CLAUDE.md "Context Passing Format")
- `PM tool: {pm_tool}`
- `To load a skill, read .workbench/workflow/skills/{name}/SKILL.md.`
- `When body files reference the Task tool, use the Agent tool instead.`
- `When spawning sub-agents (codebase-locator, codebase-analyzer, codebase-pattern-finder, thoughts-locator, thoughts-analyzer), use the Agent tool with subagent_type "Explore" and include the body file path in the prompt.`
- `Resume is via SendMessage with the agent ID (not task_id).`
- `Read .workbench/workflow/agents/planner.body.md and follow those instructions for issue {issue_id}.`
4. **Relay questions to the user**: if the agent's output contains questions, relay them exactly. Collect the user's response and resume the agent via SendMessage with the agent ID. Repeat until the agent signals completion.
5. **Report** the agent's final outcome to the user.
**issue_id**
$ARGUMENTS
Maintain Plan?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Plan on getagentictools](https://getagentictools.com/loops/buildhaus-plan-issue?ref=badge)