Linear

From diillson/chatcli · View interactive version

Linear is an AI agent skill from the GitHub repository diillson/chatcli. Manage Linear issues from the terminal via the official GraphQL API and the user's API key — list/search issues, create issues, update status/assignee, add comments. Use when asked to "create a Linear issue", "what's assigned to me in Linear", "move this issue to done", "comment on LIN-123".

How to use this skill

Skill file

Linear

Drive Linear through its GraphQL API with the user's own key — opt-in, no middleman.

Setup

Set LINEAR_API_KEY (Settings → API → Personal API keys). All calls:

curl -s https://api.linear.app/graphql -H "Authorization: $LINEAR_API_KEY" \
  -H "Content-Type: application/json" -d '{"query":"..."}'

My open issues

{"query":"{ viewer { assignedIssues(filter:{state:{type:{neq:\"completed\"}}}) { nodes { identifier title state { name } } } } }"}

Search issues

{"query":"query($q:String!){ searchIssues(term:$q){ nodes{ identifier title url } } }","variables":{"q":"login bug"}}

Create an issue

First resolve the team id ({ teams { nodes { id key name } } }), then:

{"query":"mutation($t:String!,$ti:String!,$d:String){ issueCreate(input:{teamId:$t,title:$ti,description:$d}){ success issue{ identifier url } } }","variables":{"t":"TEAM_ID","ti":"Fix X","d":"details"}}

Update status / assignee / comment

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.