home / skills / openclaw / skills / linear-issues
This skill manages Linear issues through scripts/linear.sh, enabling creation, updates, searches, comments, assignments, and status changes.
npx playbooks add skill openclaw/skills --skill linear-issuesReview the files below or copy the command above to add this skill to your agents.
---
name: linear
description: Interact with Linear for issue tracking. Use when creating, updating, listing, or searching issues. Supports viewing assigned issues, changing status, adding comments, and managing tasks.
---
# Linear
Manage Linear issues via `scripts/linear.sh`.
## Setup
Store API key in `~/.clawdbot/credentials/linear.json`:
```json
{"apiKey": "lin_api_..."}
```
## Commands
```bash
# List my assigned issues
scripts/linear.sh issues --mine
# List team issues
scripts/linear.sh issues --team TEAM_ID
# Get issue details
scripts/linear.sh get CLP-123
# Search issues
scripts/linear.sh search "auth bug"
# Create issue
scripts/linear.sh create --team TEAM_ID --title "Bug: login fails" --description "Details"
# Update issue (status, title, assignee, priority)
scripts/linear.sh update CLP-123 --state STATE_ID
# Add comment
scripts/linear.sh comment CLP-123 "Fixed in PR #42"
# List teams (to get TEAM_ID)
scripts/linear.sh teams
# List states (to get STATE_ID)
scripts/linear.sh states
# List users (to get assignee ID)
scripts/linear.sh users
```
Use `--json` flag for raw API output: `scripts/linear.sh --json issues --mine`
## Workflow Examples
**Create and assign a bug:**
```bash
# Find team ID
scripts/linear.sh teams
# Create with priority 2 (high)
scripts/linear.sh create --team abc123 --title "Critical: API down" --priority 2
```
**Move issue to In Progress:**
```bash
# Find state ID
scripts/linear.sh states
# Update
scripts/linear.sh update CLP-45 --state xyz789
```
See [references/api-examples.md](references/api-examples.md) for GraphQL details.
This skill integrates with Linear to manage issue tracking from the command line. It supports creating, updating, listing, searching, and commenting on issues, plus inspecting teams, states, and users. Credentials are read from a local credentials file so API access remains secure.
The skill wraps Linear API operations in simple shell commands (scripts/linear.sh) that accept flags for team, state, assignee, priority, and output format. Use --json to return raw API JSON for automation. Credentials are stored in ~/.clawdbot/credentials/linear.json and the script issues GraphQL requests under the hood.
Where do I store the API key?
Put the key in ~/.clawdbot/credentials/linear.json as {"apiKey": "lin_api_..."} and secure the file with proper permissions.
How do I get team, state, or user IDs?
Run scripts/linear.sh teams, scripts/linear.sh states, or scripts/linear.sh users to list available IDs before creating or updating issues.