Manages Linear issues, projects, and teams via MCP tools or Linear CLI. Automatically activates when working with Linear tasks, issue creation, status updates, or team workflows.
Ships in linear. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tools and workflows for managing issues, projects, and teams in Linear.
This skill supports multiple tool backends. Use whichever is available:
mcp__linear-server__* or mcp__linear__*, depending on the configured server name) - Use if available in your tool setlinear command) - Always available via BashIf MCP tools are NOT available, use the Linear CLI via Bash:
# View an issue
linear issues view ENG-123
# Create an issue
linear issues create --title "Issue title" --description "Description"
# Update issue status (get state IDs first)
linear issues update ENG-123 -s "STATE_ID"
# Add a comment
linear issues comment add ENG-123 -m "Comment text"
# List issues
linear issues list
Do NOT report "MCP tools not available" as a blocker - use CLI instead.
CRITICAL: Never expose API keys in terminal output or Claude's context.
# Validate LINEAR_API_KEY is set (masked output)
varlock load 2>&1 | grep LINEAR
# Run commands with secrets injected
varlock run -- npx tsx scripts/query.ts "query { viewer { name } }"
# Check schema (safe - no values)
cat .env.schema | grep LINEAR
# ❌ NEVER - exposes key to Claude's context
linear config show
echo $LINEAR_API_KEY
printenv | grep LINEAR
cat .env
Create .env.schema with @sensitive annotation:
# @type=string(startsWith=lin_api_) @required @sensitive
LINEAR_API_KEY=
Add LINEAR_API_KEY to .env (never commit this file)
Note: the official MCP server authenticates via OAuth and does not read LINEAR_API_KEY — the key is only used by this skill's SDK/GraphQL scripts (scripts/query.ts, scripts/linear-ops.ts)
Use varlock load to validate before operations
Run the setup check to verify your configuration:
npx tsx scripts/setup.ts
This will check:
If setup reports a missing API key:
lin_api_)# Option A: Add to shell profile (~/.zshrc or ~/.bashrc)
export LINEAR_API_KEY="lin_api_your_key_here"
# Option B: Add to Claude Code environment
echo 'LINEAR_API_KEY=lin_api_your_key_here' >> ~/.claude/.env
# Then reload your shell or restart Claude Code
Verify everything works:
npx tsx scripts/query.ts "query { viewer { name } }"
You should see your name from Linear.
# Create issue in a project
npx tsx scripts/linear-ops.ts create-issue "Project" "Title" "Description"
# Update issue status
npx tsx scripts/linear-ops.ts status Done ENG-123 ENG-124
# Create sub-issue
npx tsx scripts/linear-ops.ts create-sub-issue ENG-100 "Sub-task" "Details"
# Update project status
npx tsx scripts/linear-ops.ts project-status "Phase 1" completed
# Show all commands
npx tsx scripts/linear-ops.ts help
See Project Management Commands for full reference.
Best Practice: When planning a new phase or initiative, create the project and its issues together in a single planning session. Avoid creating issues in a catch-all project and moving them later.
Create the project first (pass --team in multi-team workspaces — the default is the workspace's first team):
npx tsx scripts/linear-ops.ts create-project "Phase X: Feature Name" "My Initiative" --team ENG
Set project state to Planned:
npx tsx scripts/linear-ops.ts project-status "Phase X: Feature Name" planned
Create issues directly in the project:
npx tsx scripts/linear-ops.ts create-issue "Phase X: Feature Name" "Parent task" "Description"
npx tsx scripts/linear-ops.ts create-sub-issue ENG-XXX "Sub-task 1" "Description"
npx tsx scripts/linear-ops.ts create-sub-issue ENG-XXX "Sub-task 2" "Description"
Update project state when work begins:
npx tsx scripts/linear-ops.ts project-status "Phase X: Feature Name" in-progress
❌ Creating issues in a "holding" project and moving them later:
# Don't do this
create-issue "Phase 6A" "New feature" # Wrong project
# Later: manually move to Phase X # Extra work
Update a project's state in Linear. Accepts user-friendly terminology that maps to Linear's API.
npx tsx scripts/linear-ops.ts project-status <project-name> <state>
Valid States:
| Input | Description | API Value |
|---|---|---|
backlog | Not yet started | backlog |
planned | Scheduled for future | planned |
in-progress | Currently active | started |
paused | Temporarily on hold | paused |
completed | Successfully finished | completed |
canceled | Will not be done | canceled |
Examples:
# Start working on a project
npx tsx scripts/linear-ops.ts project-status "Phase 8: MCP Decision Engine" in-progress
# Mark project complete
npx tsx scripts/linear-ops.ts project-status "Phase 8" completed
# Partial name matching works
npx tsx scripts/linear-ops.ts project-status "Phase 8" paused
Link an existing project to an initiative.
npx tsx scripts/linear-ops.ts link-initiative <project-name> <initiative-name>
Examples:
# Link a project to an initiative
npx tsx scripts/linear-ops.ts link-initiative "Phase 8: MCP Decision Engine" "Q1 Goals"
# Partial matching works
npx tsx scripts/linear-ops.ts link-initiative "Phase 8" "Q1 Goals"
Remove a project from an initiative.
npx tsx scripts/linear-ops.ts unlink-initiative <project-name> <initiative-name>
Examples:
# Remove incorrect link
npx tsx scripts/linear-ops.ts unlink-initiative "Phase 8" "Linear Skill"
# Clean up test links
npx tsx scripts/linear-ops.ts unlink-initiative "Test Project" "Q1 Goals"
Error Handling:
# 1. Create project linked to initiative
npx tsx scripts/linear-ops.ts create-project "Phase 11: New Feature" "Q1 Goals"
# 2. Set state to planned
npx tsx scripts/linear-ops.ts project-status "Phase 11" planned
# 3. Create issues in the project
npx tsx scripts/linear-ops.ts create-issue "Phase 11" "Parent task" "Description"
npx tsx scripts/linear-ops.ts create-sub-issue ENG-XXX "Sub-task 1" "Details"
# 4. Start work - update to in-progress
npx tsx scripts/linear-ops.ts project-status "Phase 11" in-progress
# 5. Mark issues done
npx tsx scripts/linear-ops.ts status Done ENG-XXX ENG-YYY
# 6. Complete project
npx tsx scripts/linear-ops.ts project-status "Phase 11" completed
# 7. (Optional) Link to additional initiative
npx tsx scripts/linear-ops.ts link-initiative "Phase 11" "Q2 Goals"
Three tiers, in order. Reach for the lowest tier that fits:
| Tier | Tool | When to Use |
|---|---|---|
| 1 | MCP tools (official server) | Interactive, one-off operations in conversation — view/create/update a single issue, quick searches. The interactive default. |
| 2 | SDK scripts (npx tsx + @linear/sdk) | The programmatic default: bulk, scripted, multi-step, conditional, or repeatable work — anything the API supports, fully typed. See sdk.md. |
| 3 | Raw GraphQL via the SDK's client.client.rawRequest | Rare escape hatch only. The SDK is generated from the same GraphQL schema, so "not supported by the SDK" is almost never true. |
The bundled scripts (scripts/linear-ops.ts, scripts/sync.ts, etc.) are Tier-2 SDK scripts — use them, or write your own, for anything beyond a single interactive action. scripts/query.ts is the Tier-3 CLI for ad-hoc raw GraphQL.
Use the official Linear MCP server at mcp.linear.app over native HTTP transport:
claude mcp add --transport http --scope user linear-server https://mcp.linear.app/mcp
Or in .mcp.json:
{
"mcpServers": {
"linear-server": {
"type": "http",
"url": "https://mcp.linear.app/mcp"
}
}
}
The server authenticates via OAuth — run /mcp, pick the server, and log in through the browser. LINEAR_API_KEY is not used by the MCP connection; it is only needed for this skill's SDK/GraphQL scripts.
WARNING: The old
/sseendpoint and thenpx mcp-remote https://mcp.linear.app/sseshim are deprecated — OAuth against/ssenow fails with "Protected resource https://mcp.linear.app/mcp does not match expected ...". Do NOT use deprecated community servers either. See troubleshooting.md for details.
| Operation | Reliability | Notes |
|---|---|---|
| Create issue | ✅ High | Full support |
| Update status | ✅ High | Use state: "Done" directly |
| List/Search issues | ✅ High | Supports filters, queries |
| Add comment | ✅ High | Works with issue IDs |
# Via MCP - use human-readable state names (the official server consolidates
# create/update into save_* tools; there is no update_issue)
save_issue with id="issue-uuid", state="Done"
# Via SDK script (bulk operations) - takes a state name then issue identifiers
# (bare numbers like 123 work too; the prefix is stripped automatically)
npx tsx scripts/linear-ops.ts status Done ENG-123 ENG-124
For detailed helper script usage, see troubleshooting.md.
For bulk operations or background execution, use the Linear-specialist subagent:
Task({
description: "Update Linear issues",
prompt: "Mark ENG-101, ENG-102, ENG-103 as Done",
subagent_type: "Linear-specialist"
})
When to use Linear-specialist (parallel):
When to use direct execution:
See sync.md for parallel execution patterns.
Images shared inline in Claude Code are not saved to disk automatically — they live as base64 in the session JSONL. Use the extraction script:
# Find the current session JSONL
ls -t ~/.claude/projects/<project-path>/*.jsonl | head -1
# Extract all inline images (saves to /tmp by default)
npx tsx scripts/extract-image.ts <path-to-session.jsonl>
# Or specify a custom output directory
npx tsx scripts/extract-image.ts <path-to-session.jsonl> ~/Desktop
This saves images to /tmp/shared-image-0.png, /tmp/shared-image-1.png, etc.
Always verify the extracted image with the Read tool before uploading.
# Standard approach
npx tsx scripts/linear-ops.ts create-issue "Project Name" "Issue title" "Description"
Note:
create-issueresolves the team from the target project, so it picks the right team automatically. If you still need manual control over the team, use a short SDK call instead of the helper — look up the project's team, then create the issue with an explicitteamId:// npx tsx in a small script, or inline. @linear/sdk is fully typed. import { LinearClient } from '@linear/sdk' const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY }) // Get the project's team const projects = await client.projects({ filter: { name: { containsIgnoreCase: 'PROJECT NAME' } } }) const project = projects.nodes[0] const teamId = (await project.teams()).nodes[0].id // Create with explicit teamId await client.createIssue({ teamId, projectId: project.id, title: 'Issue title' })
npx tsx scripts/upload-image.ts /tmp/shared-image-0.png ENG-123 "Optional comment text"
The script will:
Supported formats: PNG, JPG/JPEG, GIF, WebP, SVG, PDF
| Problem | Cause | Fix |
|---|---|---|
create-issue picks wrong team | Need a non-default team in a multi-team workspace | Resolve the team from the project via SDK and pass an explicit teamId (see Step 2) |
upload-image.ts "Issue not found" | Issue was deleted before attaching | Ensure issue exists first |
| Image not found on disk | Shared inline, not as file | Extract from session JSONL (Step 1) |
Every issue MUST be attached to a project. Every project MUST be linked to an initiative.
| Entity | Must Link To | If Missing |
|---|---|---|
| Issue | Project | Not visible in project board |
| Project | Initiative | Not visible in roadmap |
See projects.md for complete project creation checklist.
state: "Todo"state: "Backlog"Uses domain-based label taxonomy. See docs/labels.md.
Key rules:
feature, bug, refactor, chore, spikesecurity, backend, frontend, etc.blocked, breaking-change, tech-debt# Validate labels
npx tsx scripts/linear-ops.ts labels validate "feature,security"
# Suggest labels for issue
npx tsx scripts/linear-ops.ts labels suggest "Fix XSS vulnerability"
The right tool for anything programmatic, bulk, or repeatable — use MCP for interactive single operations, and SDK scripts (npx tsx + @linear/sdk) for everything scripted. For loops, mapping, conditionals, or bulk updates, write TypeScript using @linear/sdk. See sdk.md for:
Scripts provide full type hints and are easier to debug than raw GraphQL for multi-step operations.
Fallback only — and not a separate toolchain. Raw GraphQL is reached through the SDK's client.client.rawRequest escape hatch, not a parallel set of tools. The bundled scripts/query.ts is exactly that: a thin CLI wrapper around rawRequest. Use it only for the rare query the typed SDK doesn't already cover.
See api.md for complete documentation including:
rawRequest escape hatch and example queries/mutationsQuick ad-hoc query:
npx tsx scripts/query.ts "query { viewer { name } }"
For advanced project and initiative management patterns, see projects.md.
Quick reference - common project commands:
# Create project linked to initiative (--team takes a team key or name)
npx tsx scripts/linear-ops.ts create-project "Phase X: Name" "My Initiative" --team ENG
# Update project status
npx tsx scripts/linear-ops.ts project-status "Phase X" in-progress
npx tsx scripts/linear-ops.ts project-status "Phase X" completed
# Link/unlink projects to initiatives
npx tsx scripts/linear-ops.ts link-initiative "Phase X" "My Initiative"
npx tsx scripts/linear-ops.ts unlink-initiative "Phase X" "Old Initiative"
Key topics in projects.md:
For bulk synchronization of code changes to Linear, see sync.md.
Quick sync commands:
# Bulk update issues to Done
npx tsx scripts/linear-ops.ts status Done ENG-101 ENG-102 ENG-103
# Update project status
npx tsx scripts/linear-ops.ts project-status "My Project" completed
| Document | Purpose |
|---|---|
| api.md | GraphQL API reference, timeout handling |
| sdk.md | SDK automation patterns |
| sync.md | Bulk sync patterns |
| projects.md | Project & initiative management |
| troubleshooting.md | Common issues, MCP debugging |
| docs/labels.md | Label taxonomy |
External: Linear MCP Documentation
What SKILL.md sets; muted values are Claude Code's defaults
/linear:linearfrom linear
npx claudepluginhub dashed/claude-marketplace --plugin linearOther plugins' skills for the same job