[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFC97Z1VJH7405SMNHMVD8":3,"skill-same:01M6EFC97Z1VJH7405SMNHMVD8":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFC97Z1VJH7405SMNHMVD8","linear",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Flinear\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Linear\n\n## Overview\n\nAutomate 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\u002Fprojects\u002Fcycles, webhooks for real-time events, GitHub\u002FGitLab sync, and automation patterns for triage, labeling, and sprint management.\n\n## Instructions\n\n### Step 1: Authentication & SDK Setup\n\n**Personal API key** (Settings → API → Personal API keys):\n```bash\nexport LINEAR_API_KEY=\"lin_api_xxxxxxxxxxxxxxxxxxxx\"\n```\n\n**SDK setup** (recommended):\n```bash\nnpm install @linear\u002Fsdk\n```\n\n```typescript\nimport { LinearClient } from \"@linear\u002Fsdk\";\nconst linear = new LinearClient({ apiKey: process.env.LINEAR_API_KEY });\nconst me = await linear.viewer;\nconsole.log(`Authenticated as: ${me.name} (${me.email})`);\n```\n\n**Raw GraphQL** (no SDK needed):\n```bash\ncurl -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { id name email } }\"}'\n```\n\nFor OAuth2 apps (multi-user), register at linear.app\u002Fsettings\u002Fapi\u002Fapplications and use Authorization Code flow with PKCE.\n\n### Step 2: Teams, Labels & Templates\n\nLinear hierarchy: **Workspace → Teams → Projects → Issues**.\n\n```typescript\n\u002F\u002F List teams\nconst teams = await linear.teams();\nteams.nodes.forEach((t) => console.log(`${t.key}: ${t.name} (${t.id})`));\n\n\u002F\u002F Create label\nawait linear.issueLabelCreate({ teamId: \"TEAM_ID\", name: \"bug\", color: \"#ef4444\" });\n```\n\n**Custom workflow states** (GraphQL):\n```graphql\nmutation { workflowStateCreate(input: {\n  teamId: \"TEAM_ID\", name: \"In Review\", type: \"started\", color: \"#f59e0b\", position: 3\n}) { workflowState { id name } } }\n```\n\nState types: `backlog`, `unstarted`, `started`, `completed`, `cancelled`.\n\n### Step 3: Issues — CRUD & Bulk Operations\n\n```typescript\n\u002F\u002F Create an issue\nconst issue = await linear.issueCreate({\n  teamId: \"TEAM_ID\", title: \"Implement user authentication\",\n  description: \"Add OAuth2 login flow with Google and GitHub providers.\",\n  priority: 2, assigneeId: \"USER_ID\", labelIds: [\"LABEL_ID\"],\n  estimate: 3, dueDate: \"2026-03-15\",\n});\n\n\u002F\u002F Query issues with filters\nconst issues = await linear.issues({\n  filter: {\n    team: { key: { eq: \"ENG\" } },\n    state: { type: { in: [\"started\", \"unstarted\"] } },\n    priority: { lte: 2 },\n  }, first: 50,\n});\n\n\u002F\u002F Bulk cancel stale backlog issues\nconst stale = await linear.issues({\n  filter: { state: { type: { eq: \"backlog\" } }, label: { name: { eq: \"stale\" } } },\n});\nfor (const issue of stale.nodes) {\n  await issue.update({ stateId: \"CANCELLED_STATE_ID\" });\n}\n\n\u002F\u002F Sub-issues and relations\nawait linear.issueCreate({ teamId: \"TEAM_ID\", title: \"Write auth tests\", parentId: \"PARENT_ID\" });\nawait linear.issueRelationCreate({ issueId: \"A\", relatedIssueId: \"B\", type: \"blocks\" });\n```\n\n### Step 4: Projects & Cycles\n\n```typescript\n\u002F\u002F Create a project\nconst project = await linear.projectCreate({\n  teamIds: [\"TEAM_ID\"], name: \"Q1 Auth Overhaul\",\n  description: \"Replace legacy auth with OAuth2 + MFA\",\n  targetDate: \"2026-03-31\", startDate: \"2026-01-15\", state: \"started\",\n});\n\n\u002F\u002F Link issue to project and check progress\nawait issue.update({ projectId: \"PROJECT_ID\" });\nconst proj = await linear.project(\"PROJECT_ID\");\nconsole.log(`Progress: ${proj.progress}% — ${proj.completedScopeCount}\u002F${proj.scopeCount}`);\n\n\u002F\u002F Create a cycle (sprint)\nawait linear.cycleCreate({\n  teamId: \"TEAM_ID\", name: \"Sprint 14\",\n  startsAt: \"2026-02-17T00:00:00Z\", endsAt: \"2026-03-02T00:00:00Z\",\n});\n\n\u002F\u002F Roll unfinished issues to next cycle\nconst active = (await linear.cycles({\n  filter: { team: { key: { eq: \"ENG\" } }, isActive: { eq: true } },\n})).nodes[0];\nconst next = (await linear.cycles({\n  filter: { team: { key: { eq: \"ENG\" } }, startsAt: { gt: active.endsAt } }, first: 1,\n})).nodes[0];\nconst unfinished = await linear.issues({\n  filter: { cycle: { id: { eq: active.id } }, state: { type: { in: [\"unstarted\", \"started\"] } } },\n});\nfor (const issue of unfinished.nodes) await issue.update({ cycleId: next.id });\n```\n\n### Step 5: Webhooks & Automation\n\n**Create a webhook** (Settings → API → Webhooks, or via GraphQL):\n```graphql\nmutation { webhookCreate(input: {\n  url: \"https:\u002F\u002Fyour-server.com\u002Flinear\u002Fwebhook\", teamId: \"TEAM_ID\",\n  resourceTypes: [\"Issue\", \"Comment\", \"Project\"], enabled: true\n}) { webhook { id } } }\n```\n\n**Verify and handle webhooks:**\n```typescript\nimport crypto from \"crypto\";\n\nfunction verifyLinearWebhook(body: string, signature: string, secret: string): boolean {\n  const hmac = crypto.createHmac(\"sha256\", secret);\n  hmac.update(body);\n  return hmac.digest(\"hex\") === signature;\n}\n\napp.post(\"\u002Flinear\u002Fwebhook\", (req, res) => {\n  const { action, type, data, updatedFrom } = req.body;\n  if (type === \"Issue\" && action === \"update\" && updatedFrom?.stateId) {\n    console.log(`${data.identifier} moved to ${data.state.name}`);\n  }\n  if (type === \"Issue\" && action === \"create\") {\n    \u002F\u002F Auto-assign by label\n    const labels = data.labels?.map((l: any) => l.name) || [];\n    const map: Record\u003Cstring, string> = { frontend: \"LEAD_A\", backend: \"LEAD_B\" };\n    for (const [label, id] of Object.entries(map)) {\n      if (labels.includes(label)) { linear.issueUpdate(data.id, { assigneeId: id }); break; }\n    }\n  }\n  \u002F\u002F Auto-triage urgent issues into active cycle\n  if (type === \"Issue\" && data.priority \u003C= 1) {\n    linear.cycles({ filter: { team: { id: { eq: data.teamId } }, isActive: { eq: true } } })\n      .then(c => { if (c.nodes[0]) linear.issueUpdate(data.id, { cycleId: c.nodes[0].id }); });\n  }\n  res.sendStatus(200);\n});\n```\n\n### Step 6: GitHub Integration & Reporting\n\n**GitHub sync** — enable in Settings → Integrations → GitHub. Use branch naming:\n```\ngit checkout -b username\u002Feng-123-fix-login-bug\n```\nMerged PRs auto-move linked issues to \"Done\".\n\n**Query team velocity:**\n```graphql\nquery { cycles(filter: { team: { key: { eq: \"ENG\" } }, isCompleted: { eq: true } }, last: 6) {\n  nodes { name completedScopeCount scopeCount startsAt endsAt }\n} }\n```\n\n**Export issues to CSV:**\n```typescript\nconst writer = createWriteStream(\"issues.csv\");\nwriter.write(\"Identifier,Title,State,Priority,Assignee,Created\\n\");\nlet cursor: string | undefined;\nlet hasMore = true;\nwhile (hasMore) {\n  const page = await linear.issues({ first: 100, after: cursor });\n  for (const issue of page.nodes) {\n    const assignee = issue.assignee ? (await issue.assignee).name : \"Unassigned\";\n    const state = (await issue.state)?.name || \"Unknown\";\n    writer.write(`${issue.identifier},\"${issue.title}\",${state},${issue.priority},${assignee},${issue.createdAt}\\n`);\n  }\n  hasMore = page.pageInfo.hasNextPage;\n  cursor = page.pageInfo.endCursor;\n}\nwriter.end();\n```\n\n## Examples\n\n### Example 1: Sprint rollover and velocity dashboard\n\n**User prompt:** \"Our current sprint ends today. Roll any unfinished issues into Sprint 15 and show me a velocity report for the last 4 completed sprints on the ENG team.\"\n\nThe agent will query the active cycle for the ENG team and find all issues with unstarted or started states. It will then look up the next cycle by start date, update each unfinished issue to the new cycle ID, and report how many issues were moved. For the velocity report, it will query the last 4 completed cycles via GraphQL, extract `completedScopeCount` and `scopeCount` for each, and display a table with sprint name, total scope, completed count, and completion percentage.\n\n### Example 2: Auto-triage pipeline with Slack notifications\n\n**User prompt:** \"Set up a webhook so that when any issue is created with the 'bug' label on the Platform team, it gets assigned to the on-call engineer and a Slack message is posted to #platform-bugs with the issue title and link.\"\n\nThe agent will create a Linear webhook subscribed to Issue resource types for the Platform team. It will write an Express handler that verifies the webhook signature, checks for `action: \"create\"` events where the labels include \"bug\", updates the issue's assignee to the on-call engineer's user ID, and sends a POST to the Slack webhook URL with a message containing the issue identifier, title, and Linear URL.\n\n## Guidelines\n\n- **Use the SDK for type safety** — the `@linear\u002Fsdk` package provides typed methods and pagination helpers; prefer it over raw GraphQL for most operations.\n- **Paginate all list queries** — Linear caps results at 250 per page; always check `pageInfo.hasNextPage` and pass `after: endCursor` to avoid silently truncating results.\n- **Verify webhook signatures** — validate the `linear-signature` header with HMAC-SHA256 before processing any webhook payload to prevent forged events.\n- **Scope webhooks to specific teams** — use the `teamId` parameter when creating webhooks to avoid receiving events from unrelated teams in large workspaces.\n- **Use branch naming conventions for GitHub sync** — format branches as `username\u002FTEAM-123-description` so Linear auto-links PRs and moves issues on merge.\n- **Batch updates carefully** — Linear has rate limits (varies by plan); add small delays in loops that update many issues and handle 429 responses with exponential backoff.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Flinear",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill linear",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill linear",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill linear","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Flinear\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]