Explore the codebase and write a detailed implementation plan into a Linear parent issue's description. Creates sub-issues for each atomic task. Use when an agent has picked up a parent issue and needs to plan the work, or the user says "plan this issue", "/linear-plan".
Explore the codebase and write the implementation plan for issue $ARGUMENTS.
docs/plans/PLAN_TEMPLATE.md — read this first for the exact markdown formatdocs/LINEAR-WORKFLOW.mdUse mcp__linear-server__get_issue with id $ARGUMENTS to get the current description, title, labels, and priority.
Based on the problem described in the issue:
Using the Parent Issue template from docs/plans/PLAN_TEMPLATE.md, update the issue description with:
Problem — Keep the existing problem statement, refine if your investigation found more detail.
Investigation — Fill in:
Plan — Break into phases. Each phase = a logical group of changes. Each step = a specific action with file path and line number.
Acceptance Criteria — Testable outcomes. Last item: "All sub-issues complete".
Context Map — Table of key files, their purpose, and grep hints to load them.
Decisions — Leave empty (filled during implementation).
Use mcp__linear-server__save_issue with id: "$ARGUMENTS" to update the description.
For each atomic task in the plan:
mcp__linear-server__save_issue to create a sub-issue:
title: "[Phase N] Brief action description"team: "Engineering"project: "Landscaper"parentId: $ARGUMENTSstate: "Todo"description: Use the Sub-Issue template from docs/plans/PLAN_TEMPLATE.mdlabels: Same category label as parentpriority: Same as parent (or lower for optional tasks)blockedBy relationships between sequential sub-issuesUse mcp__linear-server__save_issue with id: "$ARGUMENTS", state: "In Progress".
Use mcp__linear-server__save_comment on the parent issue:
"Plan finalized. Created N sub-issues: [list issue IDs and titles]. Ready for implementation."
Tell the user: