Prompt file imported from WaniWani-AI/cli (
.claude/commands/plan.md). Fill in{{arguments}}before use. Copyright stays with the author.
Start planning the Linear ticket specified in {{arguments}}.
Steps
-
Fetch the Linear ticket using
mcp__linear__get_issuewith the ticket ID from {{arguments}} (e.g., "WAN-123")- If the ticket doesn't exist, inform the user and stop
-
Mark the ticket as "In Progress" using
mcp__linear__update_issue:- Set the state to "In Progress"
- This signals to the team that work has started on this ticket
-
Display ticket information to the user:
- Title
- Description
- Status
- Priority
- Any linked issues or parent tickets
-
Enter plan mode using the EnterPlanMode tool to start planning the implementation:
- The plan should be based on the ticket description and acceptance criteria
- Consider the project's architecture and coding standards (from CLAUDE.md)
- Break down the work into concrete implementation steps
Planning Guidelines
When entering plan mode, focus on:
- Understanding the scope - What exactly needs to be built?
- Identifying affected files - Which files need to be created or modified?
- Dependencies - What needs to happen first? (schema → types → API → UI)
- Testing approach - How will the implementation be verified?
- Edge cases - What could go wrong?
Structure the plan following the project's layered approach:
- Database changes (if any)
- Type definitions and Zod schemas
- API endpoints
- Backend logic
- UI components
Example Usage
/plan WAN-123
This will:
- Fetch WAN-123 from Linear
- Mark the ticket as "In Progress"
- Enter plan mode with the ticket context
When to Use /plan vs /implement
- Use
/planwhen you want to plan the work on an existing branch or without branch management - Use
/implementwhen you want to create a dedicated feature branch for the ticket
Error Handling
- If the ticket ID is not provided, ask the user for it
- If the ticket doesn't exist in Linear, inform the user
