Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage Linear issues, projects, and teams
.claude/skills/lingxling-linear-claude-skill/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 262% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 292% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 251% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 354% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 124% | 0% |
Manage Linear issues, projects, and teams
Use this skill when working with manage linear issues, projects, and teams.
Tools and workflows for managing issues, projects, and teams in Linear.
This skill supports multiple tool backends. Use whichever is available:
linear command) - Always available via BashIf MCP tools are NOT available, use the Linear CLI via Bash:
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.
bash# 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
bash# ❌ NEVER - exposes key to Claude's context linear config show echo $LINEAR_API_KEY printenv | grep LINEAR cat .env
.env.schema with @sensitive annotation:bash # @type=string(startsWith=lin_api_) @required @sensitive LINEAR_API_KEY=
LINEAR_API_KEY to .env (never commit this file)json { "mcpServers": { "linear": { "env": { "LINEAR_API_KEY": "${LINEAR_API_KEY}" } } } }
varlock load to validate before operationsRun the setup check to verify your configuration:
bashnpx tsx ~/.claude/skills/linear/scripts/setup.ts
This will check:
If setup reports a missing API key:
lin_api_)bash# 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:
bashnpx tsx ~/.claude/skills/linear/scripts/query.ts "query { viewer { name } }"
You should see your name from Linear.
bash# 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.
bash npx tsx scripts/linear-ops.ts create-project "Phase X: Feature Name" "My Initiative"
bash npx tsx scripts/linear-ops.ts project-status "Phase X: Feature Name" planned
bash 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"
bash npx tsx scripts/linear-ops.ts project-status "Phase X: Feature Name" in-progress
❌ Creating issues in a "holding" project and moving them later:
bash# 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.
bashnpx 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:
bash# 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.
bashnpx tsx scripts/linear-ops.ts link-initiative <project-name> <initiative-name>
Examples:
bash# 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.
bashnpx tsx scripts/linear-ops.ts unlink-initiative <project-name> <initiative-name>
Examples:
bash# 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:
bash# 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"
Choose the right tool for the task:
| Tool | When to Use | |------|-------------| | MCP (Official Server) | Most operations - PREFERRED | | Helper Scripts | Bulk operations, when MCP unavailable | | SDK scripts | Complex operations (loops, conditionals) | | GraphQL API | Operations not supported by MCP/SDK |
Use the official Linear MCP server at mcp.linear.app:
json{ "mcpServers": { "linear": { "command": "npx", "args": ["mcp-remote", "https://mcp.linear.app/sse"], "env": { "LINEAR_API_KEY": "your_api_key" } } } }
> WARNING: Do NOT use deprecated community servers. 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 |
bash# Via MCP - use human-readable state names update_issue with id="issue-uuid", state="Done" # Via helper script (bulk operations) node scripts/linear-helpers.mjs update-status Done 123 124 125
For detailed helper script usage, see troubleshooting.md.
For bulk operations or background execution, use the Linear-specialist subagent:
javascriptTask({ 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.
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-debtbash# 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"
Use only when MCP tools are insufficient. For complex operations involving loops, mapping, or bulk updates, write TypeScript scripts 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. Use when operations aren't supported by MCP or SDK.
See api.md for complete documentation including:
Quick ad-hoc query:
bashnpx tsx ~/.claude/skills/linear/scripts/query.ts "query { viewer { name } }"
For advanced project and initiative management patterns, see projects.md.
Quick reference - common project commands:
bash# Create project linked to initiative npx tsx scripts/linear-ops.ts create-project "Phase X: Name" "My Initiative" # 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:
bash# 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
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-02 | fail→fail | 19,396 | 7,432 | -62% | 1 | 1 | 0% | 608 | 4,145 | +582% | 0 | 0 | — |
case-01 | fail→fail | 9,897 | 14,165 | +43% | 1 | 1 | 0% | 816 | 4,074 | +399% | 0 | 0 | — |
case-03 | fail→fail | 8,354 | 8,000 | -4% | 1 | 1 | 0% | 651 | 4,285 | +558% | 0 | 0 | — |
case-04 | fail→pass | 10,709 | 5,637 | -47% | 1 | 1 | 0% | 1,295 | 4,689 | +262% | 0 | 0 | — |
case-05 | fail→pass | 7,818 | 14,450 | +85% | 1 | 1 | 0% | 1,215 | 4,765 | +292% | 0 | 0 | — |
case-06 | fail→fail | 18,387 | 11,471 | -38% | 1 | 1 | 0% | 2,577 | 4,211 | +63% | 0 | 0 | — |
case-07 | fail→fail | 5,010 | 8,251 | +65% | 1 | 1 | 0% | 315 | 4,359 | +1284% | 0 | 0 | — |
case-08 | fail→fail | 3,383 | 9,349 | +176% | 1 | 1 | 0% | 613 | 4,280 | +598% | 0 | 0 | — |
case-09 | pass→pass | 7,922 | 3,008 | -62% | 1 | 1 | 0% | 1,104 | 4,161 | +277% | 0 | 0 | — |
case-10 | fail→pass | 8,180 | 2,576 | -69% | 1 | 1 | 0% | 1,176 | 4,122 | +251% | 0 | 0 | — |
case-11 | pass→pass | 22,025 | 133,042 | +504% | 1 | 1 | 0% | 1,542 | 4,792 | +211% | 0 | 0 | — |
case-12 | fail→pass | 7,779 | 4,908 | -37% | 1 | 1 | 0% | 999 | 4,539 | +354% | 0 | 0 | — |
case-13 | fail→pass | 11,456 | 3,538 | -69% | 1 | 1 | 0% | 1,875 | 4,206 | +124% | 0 | 0 | — |
case-14 | fail→pass | 13,995 | 5,156 | -63% | 1 | 1 | 0% | 2,033 | 4,459 | +119% | 0 | 0 | — |
case-15 | fail→pass | 14,694 | 6,205 | -58% | 1 | 1 | 0% | 1,984 | 4,640 | +134% | 0 | 0 | — |
case-16 | pass→pass | 6,970 | 4,143 | -41% | 1 | 1 | 0% | 1,149 | 4,310 | +275% | 0 | 0 | — |
case-17 | fail→pass | 12,404 | 4,938 | -60% | 1 | 1 | 0% | 1,613 | 4,655 | +189% | 0 | 0 | — |
case-18 | fail→pass | 10,357 | 63,941 | +517% | 1 | 1 | 0% | 1,466 | 4,240 | +189% | 0 | 0 | — |
case-19 | fail→pass | 10,377 | 2,319 | -78% | 1 | 1 | 0% | 1,409 | 4,141 | +194% | 0 | 0 | — |
case-20 | fail→pass | 11,429 | 5,358 | -53% | 1 | 1 | 0% | 1,478 | 4,424 | +199% | 0 | 0 | — |
case-21 | pass→pass | 8,999 | 6,146 | -32% | 1 | 1 | 0% | 1,214 | 4,720 | +289% | 0 | 0 | — |
case-22 | pass→pass | 6,102 | 4,050 | -34% | 1 | 1 | 0% | 1,031 | 4,354 | +322% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 16 counted toward the lift figure. The other 6 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 16 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.