linear-plan-mode
Maintains feature plans in Linear during Claude Code plan mode. The orchestrator creates and updates Linear issues directly using MCP tools. Use when in plan mode, planning features, or creating implementation plans that should be tracked in Linear.
What this skill does
# Linear Plan Mode Integration
When in plan mode, maintain the plan in Linear alongside the plan file. The **orchestrator** handles all Linear operations directly — never delegate to sub-agents for issue creation or updates.
## CRITICAL RULES (ALWAYS FOLLOW)
1. **ALL issues (parent and sub-issues) MUST have status "Todo"** - Never use "Triage", "Backlog", or any other status for new issues
2. **Parent issues MUST have the "Feature Root" label** - NOT "Feature", always "Feature Root"
3. **Never modify "Done" issues** - They represent completed work
4. **Check Linear teams first** - If multiple teams exist, ALWAYS ask the user which team to use before creating issues
5. **Orchestrator does ALL Linear work directly** - Do NOT spawn sub-agents for Linear operations. ToolSearch and MCP tools work in plan mode.
## Key Principle
**All Linear MCP tools work in plan mode.** The orchestrator can call `ToolSearch`, `mcp__linear__create_issue`, `mcp__linear__update_issue`, and `mcp__linear__get_issue` directly. No delegation needed.
## Workflow
### Phase 1: Plan Mode Entry
When entering plan mode for any task:
1. **Ask the user** if this plan should be tracked in Linear
2. **If yes**, load Linear tools directly:
```
ToolSearch: "+linear create issue"
```
3. **Check for existing parent issue** using `mcp__linear__get_issue` (if issue ID is known) or `mcp__linear__search_issues`
4. **If no existing issue**, create one directly:
```
mcp__linear__create_issue(
title: "[feature title]",
team: "LaserFocused",
state: "Todo",
labels: ["Feature Root"],
description: "[plan overview]"
)
```
### Phase 2: Plan Development (Sync as You Go)
As you write/edit the plan file, keep Linear in sync by calling MCP tools directly:
| Plan File Change | Linear Action |
|------------------|---------------|
| New section added | `mcp__linear__create_issue` with `parentId` |
| Section modified | `mcp__linear__update_issue` with updated description |
| Section removed | `mcp__linear__update_issue` to set state "Canceled" (with user confirmation) |
**Example — creating a sub-issue directly:**
```
mcp__linear__create_issue(
title: "[Backend] Add student results API endpoint",
team: "LaserFocused",
parentId: "<parent-uuid>",
state: "Todo",
description: "## Acceptance Criteria\n- [ ] GET endpoint returns student answers\n- [ ] Includes audio URLs\n\n## Depends on\nLAS-XXX (migration)"
)
```
### Phase 3: Plan Finalization
Before calling `ExitPlanMode`:
1. Ensure all plan sections have corresponding Linear sub-issues
2. Parent issue has high-level overview with Mermaid diagram
3. All sub-issues are in "Todo" status ready for execution
4. Sub-issue IDs are recorded in the plan file
## Linear Issue Structure
### Parent Issue (Feature Root)
Parent issues MUST have the "Feature Root" label and follow this structure:
```markdown
## IMPORTANT
This feature is tracked in Linear. Before starting work:
- Find your assigned sub-issue
- Mark it "In Progress" before coding
- Mark it "Done" when complete
## Problem
[What problem we're solving]
## Solution Overview
[High-level approach - 2-3 paragraphs max]
## High-Level Flow
```mermaid
flowchart TD
A[User Action] --> B[System Response]
B --> C[Result]
```
## MVP Scope
**In Scope:**
- [Essential item 1]
- [Essential item 2]
**Out of Scope (Deferred):**
- [Nice-to-have 1]
- [Nice-to-have 2]
## Sub-Issues
[Auto-generated list of child issues]
```
### Sub-Issues (Tagged by Layer)
Each sub-issue title is prefixed with its layer tag:
| Tag | Meaning |
|-----|---------|
| `[Backend]` | Express API, services, repositories |
| `[Frontend]` | React components, pages, hooks |
| `[Migration]` | Database schema changes |
| `[Both]` | Spans backend and frontend |
Sub-issue description format:
```markdown
## Context
[Brief context linking to parent feature]
## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Technical Notes
[Implementation hints, patterns to follow]
## Dependencies
Depends on: LAS-XXX (if applicable)
```
## Mermaid Diagrams
Use diagrams to visualize flows and relationships:
| Context | Diagram Type | When to Use |
|---------|--------------|-------------|
| Parent issue | `flowchart TD` | Main user/data flow (REQUIRED) |
| API endpoints | `sequenceDiagram` | Service interactions |
| State machines | `stateDiagram-v2` | Status workflows |
| Data models | `erDiagram` | Entity relationships |
For detailed templates, see [mermaid-templates.md](mermaid-templates.md).
## Key Constraints
- **Orchestrator does ALL Linear work** — never delegate to sub-agents or linear-manager for issue creation
- **Never modify "Done" issues** — They represent completed work
- **Confirm before canceling** — Ask user before canceling "In Progress" issues
- **Todo status only** — ALL new issues MUST start as "Todo"
- **"Feature Root" label (not "Feature")** — Parent issues ALWAYS get the "Feature Root" label
- **linear-manager is for implementation only** — It tracks status during Phase 5, not during planning
## Quick Reference
**Load Linear tools:**
```
ToolSearch: "+linear create issue"
```
**Create parent issue:**
```
mcp__linear__create_issue(
title: "Feature title",
team: "LaserFocused",
state: "Todo",
labels: ["Feature Root"],
description: "[plan overview with mermaid diagram]"
)
```
**Create sub-issue:**
```
mcp__linear__create_issue(
title: "[Backend] Step description",
team: "LaserFocused",
parentId: "<parent-uuid>",
state: "Todo",
description: "[acceptance criteria + dependencies]"
)
```
**Update issue:**
```
mcp__linear__update_issue(
issueId: "<uuid>",
description: "[updated content]"
)
```
For detailed sync patterns, see [sync-patterns.md](sync-patterns.md).
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.