Linear
by @matrixy
Manage Linear projects, issues, and tasks via the bundled Node CLI and the official Linear API. Use when you need to read, create, update, or organize Linear...
clawhub install linear-skillπ About This Skill
name: linear description: Manage Linear projects, issues, and tasks via the bundled Node CLI and the official Linear API. Use when you need to read, create, update, or organize Linear issues, projects, teams, milestones, comments, cycles, labels, and documents. metadata: {"gracebot":{"always":false,"emoji":"π","homepage":"https://github.com/MaTriXy/linear-skill","requires":{"bins":["node","npm"],"env":["LINEAR_API_KEY"]},"primaryEnv":"LINEAR_API_KEY","install":[{"id":"node-brew","kind":"brew","formula":"node","bins":["node","npm"],"label":"Install Node.js (brew)"}]},"clawdbot":{"always":false,"emoji":"π","homepage":"https://github.com/MaTriXy/linear-skill","requires":{"bins":["node","npm"],"env":["LINEAR_API_KEY"]},"primaryEnv":"LINEAR_API_KEY","install":[{"id":"node-brew","kind":"brew","formula":"node","bins":["node","npm"],"label":"Install Node.js (brew)"}]}}
Linear Workflow Management
Manage Linear issues and projects through the bundled CLI at {baseDir}/scripts/linear-cli.js.
Scope and Runtime Model
node {baseDir}/scripts/linear-cli.js ....@linear/sdk.LINEAR_API_KEY from the local environment.https://api.linear.app/graphql) through the official SDK.Prerequisites
1. Node.js and npm are installed.
2. Install script dependencies once:
- cd {baseDir}/scripts && npm install
3. Set your API key:
- export LINEAR_API_KEY="lin_api_..."
If dependencies or LINEAR_API_KEY are missing, stop and complete setup before issue/project operations.
Authentication and Credentials
LINEAR_API_KEY.https://linear.app/settings/api.Required Workflow
1. Clarify intent and scope: - Team/project, labels, cycle, assignee, due date, priority. 2. Read current state first: - List/get issues, projects, statuses, labels, users, cycles. 3. Apply mutations second: - Create/update issues, comments, projects, milestones, labels. 4. Summarize exactly what changed: - Mention IDs, states, assignees, blockers, and follow-up actions.
Command Coverage
teams, projects, createProject
issues, issue, createIssue, updateIssue
createComment
states, labels
userQuick Examples
node {baseDir}/scripts/linear-cli.js teams
node {baseDir}/scripts/linear-cli.js projects
node {baseDir}/scripts/linear-cli.js issues
node {baseDir}/scripts/linear-cli.js issue ENG-123
node {baseDir}/scripts/linear-cli.js createIssue "Title" "Description" "team-id" '{"priority":2}'
node {baseDir}/scripts/linear-cli.js updateIssue "issue-id" '{"stateId":"state-id"}'
Practical Workflows
In Progress, add triage comments.
Safety and Operational Rules
References
references/API.md for priority values and workflow patterns.βοΈ Configuration
1. Node.js and npm are installed.
2. Install script dependencies once:
- cd {baseDir}/scripts && npm install
3. Set your API key:
- export LINEAR_API_KEY="lin_api_..."
If dependencies or LINEAR_API_KEY are missing, stop and complete setup before issue/project operations.