linear
Linear project management via MCP or GraphQL API: issue queries, state transitions, epic authoring for VantageEx agent teams, and epic auditing. Use when…
by vinnie357★ 30 GitHub stars
Install linear in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Linear
Manage Linear issues, author VantageEx-compatible epics, and interact with the Linear API via MCP or direct GraphQL.
MCP Setup (Preferred)
The Linear MCP server provides tool-based access to Linear. Set up once:
claude mcp add --transport http linear-server https://mcp.linear.app/mcp
Then run /mcp in a Claude Code session to complete OAuth authentication (opens browser).
After setup, use MCP tools directly for all Linear operations. The MCP server handles authentication and provides structured tool interfaces.
For full setup details, troubleshooting, and alternative client configurations, read references/mcp-setup.md.
GraphQL Fallback
When MCP is unavailable (headless environments, scripting, CI), use the GraphQL API directly.
Endpoint: https://api.linear.app/graphql
Auth: Bearer token via LINEAR_API_KEY environment variable
# Test connectivity
curl -s -H "Authorization: Bearer $LINEAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "{ viewer { id name email } }"}' \
https://api.linear.app/graphql
For the full query catalog, read references/graphql-api.md.
The nushell client at scripts/0.1.0/linear.nu wraps common GraphQL operations.
Common Operations
Query an Issue
By key (e.g., MT-686):
query IssueByKey($key: String!) {
issue(id: $key) {
id identifier title url description
state { id name type }
project { id name }
labels { nodes { name } }
attachments { nodes { title url sourceType } }
}
}
Create an Issue
mutation CreateIssue($teamId: String!, $title: String!, $description: String, $stateId: String, $labelIds: [String!]) {
issueCreate(input: {
teamId: $teamId
title: $title
description: $description
stateId: $stateId
labelIds: $labelIds
}) {
success
issue { id identifier url }
}
}
Update Issue State
Always fetch team workflow states first to get the exact stateId:
query IssueTeamStates($id: String!) {
issue(id: $id) {
team {
states { nodes { id name type } }
}
}
}
Then transition:
mutation MoveIssue($id: String!, $stateId: String!) {
issueUpdate(id: $id, input: { stateId: $stateId }) {
success
issue { id identifier state { name } }
}
}
Add a Comment
mutation CreateComment($issueId: String!, $body: String!) {
commentCreate(input: { issueId: $issueId, body: $body }) {
success
comment { id url }
}
}
Attach a GitHub PR
Prefer the GitHub-specific mutation for PR metadata:
mutation AttachPR($issueId: String!, $url: String!, $title: String) {
attachmentLinkGitHubPR(issueId: $issueId, url: $url, title: $title, linkKind: links) {
success
attachment { id title url }
}
}
List Workflow States
query TeamStates($teamId: String!) {
team(id: $teamId) {
states { nodes { id name type position } }
}
}
Introspection
When an unfamiliar mutation or type is needed, query the schema:
query ListMutations {
__type(name: "Mutation") { fields { name } }
}
query InspectInput($typeName: String!) {
__type(name: $typeName) {
inputFields { name type { kind name ofType { kind name } } }
}
}
VantageEx Epic Format
VantageEx epics follow a three-level hierarchy: Epic (user-authored) -> Issues (team leader creates) -> Tasks (agents create).
The user authors the epic description in Linear. The epic body uses markdown sections that VantageEx parses.
Required Sections
| Section | Purpose | Author |
|---|---|---|
## Objective |
2-3 sentences defining success criteria | User (immutable) |
## Skills |
Domain-specific skills needed (core skills implicit) | User (immutable) |
## Repos |
Target repositories | User (immutable) |
Optional Sections
| Section | Purpose | Author |
|---|---|---|
## Instructions |
User guidance added at re-queue (ADR-027) | User or dashboard |
## Constraints |
Boundaries (defaults: mise run ci, no attribution, squash merge) |
User |
## Agents |
Priority-ordered agent CLIs from {claude, codex, antigravity, local} (default [claude]) |
User |
## Team |
Claude model layer: lead, default, escalation (applies when Agents resolves to claude) |
User |
## Escalation |
Failure and ambiguity policies | User |
## PR |
Pull request URL when submitted | Agent |
Title and Slug
- Title: Imperative statement ("Implement OAuth2 PKCE flow for API gateway")
- Slug: kebab-case, max ~30 chars, URL-safe (
oauth-pkce-flow) - Branch:
feature/<epic-slug>
For the full epic specification with examples and anti-patterns, read references/epic-format.md.
Epic Body Format Rules
Epic bodies use plain markdown for every section. Parsers that ingest epic bodies (including the /linear:audit-epics command and downstream consumers) ca
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- references/audit-checklist.md
- references/epic-format.md
- references/epic-sizing.md
- references/graphql-api.md
- references/mcp-setup.md
- references/workflow-states.md
- scripts/0.1.0/linear.nu
- templates/0.1.0/audit-report.md
- templates/0.1.0/epic.md
- templates/0.1.0/team-definition.md
FAQ
What does the linear skill do?
Linear project management via MCP or GraphQL API: issue queries, state transitions, epic authoring for VantageEx agent teams, and epic auditing. Use when interacting with Linear issues, creating or auditing epics, querying workflow states, or managing Linear project data.
How do I install the linear skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the linear skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…