一键导入
decompose
// Decompose a large Linear task into independent subtasks with a master plan. Analyzes issue, project, related tasks, PRs, and codebase to create PLAN.md and Linear sub-issues.
// Decompose a large Linear task into independent subtasks with a master plan. Analyzes issue, project, related tasks, PRs, and codebase to create PLAN.md and Linear sub-issues.
Triage Sentry crashes for an iOS release. Pulls unresolved fatal events from sentry.anytype.io, investigates each fingerprint cluster against the source, creates one Linear ticket per cluster with a root-cause hypothesis (no proposed fix - the implementer figures that out with full context), then archives the Sentry issue (status `ignored`) so it stops cluttering the inbox. Activate on "triage Sentry crashes", "triage fatal errors", "investigate crashes in release", "fatal errors in 0.X.Y", or any time the user wants to turn a release's Sentry inbox into actionable Linear tickets. The slash entry is `/do-sentry-triage`.
Expert guidance on Swift concurrency using the Office Building mental model. Use when working with actors, isolation, Sendable, TaskGroups, or fixing concurrency warnings and data race issues.
Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.
Context-aware routing to Swift/iOS development patterns, architecture, and best practices. Use when working with .swift files, ViewModels, Coordinators, refactoring, or discussing Swift/SwiftUI patterns.
SwiftUI view structure, composition, and best practices. Use when refactoring SwiftUI views, organizing view files, or extracting subviews.
Audit and improve SwiftUI runtime performance through code review and Instruments guidance. Use for diagnosing slow rendering, janky scrolling, excessive view updates, or layout thrash in SwiftUI apps.
| name | decompose |
| description | Decompose a large Linear task into independent subtasks with a master plan. Analyzes issue, project, related tasks, PRs, and codebase to create PLAN.md and Linear sub-issues. |
Break down a large feature/task into independent, implementable subtasks. Produces a PLAN_IOS_XXXX.md in the plans/ directory and creates Linear sub-issues — all designed so future Claude sessions can pick up any subtask with full context.
Collect ALL of the following before proposing anything:
mcp__linear-server__get_issue (with includeRelations: true)mcp__linear-server__get_project if projectId existsmcp__linear-server__list_comments for team discussion and decisionsgh pr list and git branch -a for work already startedPresent the decomposition to the user as a numbered list organized in dependency layers:
### Layer 0: Foundation (no dependencies)
1. Task A — brief description
2. Task B — brief description
### Layer 1: Components (depends on Layer 0)
3. Task C — brief description. Depends on: #1
4. Task D — brief description. Depends on: #2
### Layer 2: Integration (depends on Layer 1)
...
Decomposition principles:
Include with the proposal:
Wait for user approval before proceeding to Phase 3.
Create at plans/PLAN_IOS_XXXX.md (relative to repo root) with this structure:
# IOS-XXXX: Feature Title
## Overview
What the feature does, why, key concepts. 2-3 paragraphs max.
**Linear**: <link>
**Feature Toggle**: `toggleName`
## Key Concepts
Bullet list of domain terms and what they mean in this context.
## Middleware Commands
Table of RPC commands used by this feature.
## Flows
ASCII diagrams of user flows.
## Design Links
Figma URLs from the issue.
---
## Decomposition & Progress
### Layer N: Layer Name
#### X. Subtask Title — [IOS-YYYY](link)
- [ ] Checklist item 1
- [ ] Checklist item 2
- **Depends on**: #N (if any)
- **Branch**: `ios-YYYY-branch-name`
- **Status**: Not started
---
## Current Codebase Reference
Key files, models, services relevant to this feature.
Where things currently live. Entry points.
The plan must contain enough context that a fresh Claude session can:
For each subtask, create a Linear issue with:
me)## Summary
One paragraph: what this subtask does.
## What to do
Concrete steps, key files, implementation hints.
Reference specific middleware commands, models, existing code.
### Dependencies
Which subtasks must be done first.
### Acceptance Criteria
- [ ] Criteria 1
- [ ] Criteria 2
Each subtask description must be self-contained — a fresh Claude session should be able to work on it by reading only:
plans/PLAN_IOS_XXXX.md (full context)Save a project memory entry so future sessions know this decomposition exists:
Commit plans/PLAN_IOS_XXXX.md to the parent feature branch. Ask user before committing.
When starting a subtask in a new session:
plans/PLAN_IOS_XXXX.md — full feature context + progressorigin/developplans/PLAN_IOS_XXXX.md status in the parent branch