linear
БесплатноБез исполняемых скриптовНе проверенManage projects and issues with Linear. Use when a user asks to set up Linear workspaces, create issues and projects, automate workflows, build Linear…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Linear
Overview
Automate and extend Linear — the streamlined issue tracker for modern software teams. This skill covers workspace setup, team workflow configuration, the GraphQL API for full CRUD on issues/projects/cycles, webhooks for real-time events, GitHub/GitLab sync, and automation patterns for triage, labeling, and sprint management.
Instructions
Step 1: Authentication & SDK Setup
Personal API key (Settings → API → Personal API keys):
export LINEAR_API_KEY="lin_api_xxxxxxxxxxxxxxxxxxxx"
SDK setup (recommended):
npm install @linear/sdk
The SDK ships a new major on every GraphQL schema change (100.x as of late October 2026), mostly removing fields on admin/integration inputs that this skill does not use. Pin the version in package.json and read the release notes at github.com/linear/linear/releases before upgrading.
SDK mutation methods are named verb-first (createIssue, updateIssue, createProject); the GraphQL mutations are noun-first (issueCreate, projectCreate). Do not mix them.
import { LinearClient } from "@linear/sdk";
const linear = new LinearClient({ apiKey: process.env.LINEAR_API_KEY });
const me = await linear.viewer;
console.log(`Authenticated as: ${me.name} (${me.email})`);
Raw GraphQL (no SDK needed):
curl -X POST https://api.linear.app/graphql \
-H "Authorization: $LINEAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "{ viewer { id name email } }"}'
Personal API keys go in the Authorization header as-is; OAuth access tokens use Authorization: Bearer <token> (with the SDK: new LinearClient({ accessToken })).
For OAuth2 apps (multi-user), register at linear.app/settings/api/applications and use the Authorization Code flow (PKCE supported; token endpoint https://api.linear.app/oauth/token). Request the narrowest scopes (read, write, issues:create, comments:create; admin only when needed, e.g. to create webhooks). Pass actor=app to act as the app itself (agents, service accounts); refresh tokens are supported.
Hosted MCP server — to let an agent use Linear without writing code:
claude mcp add --transport http linear-server https://mcp.linear.app/mcp
Then run /mcp in Claude Code to sign in. Use https://mcp.linear.app/mcp/readonly for read-only access.
Step 2: Teams, Labels & Templates
Linear hierarchy: Workspace → Teams → Projects → Issues.
// List teams
const teams = await linear.teams();
teams.nodes.forEach((t) => console.log(`${t.key}: ${t.name} (${t.id})`));
// Create label
await linear.createIssueLabel({ teamId: "TEAM_ID", name: "bug", color: "#ef4444" });
Custom workflow states (GraphQL):
mutation { workflowStateCreate(input: {
teamId: "TEAM_ID", name: "In Review", type: "started", color: "#f59e0b", position: 3
}) { workflowState { id name } } }
State types: backlog, unstarted, started, completed, cancelled.
Step 3: Issues — CRUD & Bulk Operations
// Create an issue
const issue = await linear.createIssue({
teamId: "TEAM_ID", title: "Implement user authentication",
description: "Add OAuth2 login flow with Google and GitHub providers.",
priority: 2, assigneeId: "USER_ID", labelIds: ["LABEL_ID"],
estimate: 3, dueDate: "2026-03-15",
});
// Query issues with filters
const issues = await linear.issues({
filter: {
team: { key: { eq: "ENG" } },
state: { type: { in: ["started", "unstarted"] } },
priority: { lte: 2 },
}, first: 50,
});
// Bulk cancel stale backlog issues
const stale = await linear.issues({
filter: { state: { type: { eq: "backlog" } }, labels: { name: { eq: "stale" } } },
});
for (const issue of stale.nodes) {
await issue.update({ stateId: "CANCELLED_STATE_ID" });
}
// Sub-issues and relations
await linear.createIssue({ teamId: "TEAM_ID", title: "Write auth tests", parentId: "PARENT_ID" });
await linear.createIssueRelation({ issueId: "A", relatedIssueId: "B", type: "blocks" });
Step 4: Projects & Cycles
// Create a project
const project = await linear.createProject({
teamIds: ["TEAM_ID"], name: "Q1 Auth Overhaul",
description: "Replace legacy auth with OAuth2 + MFA",
targetDate: "2026-03-31", startDate: "2026-01-15",
// statusId: "PROJECT_STATUS_ID", // `state` is deprecated; use statusId
});
// Link issue to project and check progress
await issue.update({ projectId: "PROJECT_ID" });
const proj = await linear.project("PROJECT_ID");
console.log(`Progress: ${Math.round(proj.progress * 100)}% of ${proj.scope} points`); // progress is a 0-1 fraction
// Create a cycle (sprint)
await linear.createCycle({
teamId: "TEAM_ID", name: "Sprint 14",
startsAt: new Date("2026-02-17T00:00:00Z"), endsAt: new Date("2026-03-02T00:00:00Z"),
});
// Roll unfinished issues to next cycle
const active = (await linear.cycles({
filter: { team: { key: { eq: "ENG" } }, isActive: { eq: true } },
Установить linear в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл linear?
Manage projects and issues with Linear. Use when a user asks to set up Linear workspaces, create issues and projects, automate workflows, build Linear integrations, sync issues with GitHub, manage sprints and cycles, set up triage processes, build custom views, use Linear's GraphQL API, create webhooks, automate issue transitions, or build tools on top of Linear. Covers workspace configuration, team workflows, API automation, and integration patterns.
Как установить скилл linear?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл linear запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic