lin

📁 shhac/lin 📅 3 days ago
13
总安装量
7
周安装量
#24573
全站排名
安装命令
npx skills add https://github.com/shhac/lin --skill lin

Agent 安装分布

claude-code 7
amp 6
opencode 6
kimi-cli 6
github-copilot 6

Skill 文档

Linear automation with lin

lin is a CLI binary installed on $PATH. Invoke it directly (e.g. lin issue list --team ENG).

All output is JSON to stdout. Errors go to stderr as { "error": "..." } with non-zero exit.

Quick start (auth)

Set an env var (recommended):

export LINEAR_API_KEY="lin_api_..."

Or store it locally:

lin auth login <api-key>
lin auth status

Generate a personal API key at Settings > Account > Security > Personal API Keys in the Linear app.

Looking up issues

lin issue search "auth bug"
lin issue list --team ENG --status "In Progress" --assignee "alice@example.com"
lin issue get overview ENG-123
lin issue get comments ENG-123

Creating and updating issues

lin issue new "Fix login redirect" --team ENG --priority high --status "Todo"
lin issue update status ENG-123 "In Progress"
lin issue update assignee ENG-123 "alice@example.com"
lin issue update priority ENG-123 urgent
lin issue comment new ENG-123 "Started investigating"

Projects

lin project search "migration"
lin project list --status started
lin project get overview <id>
lin project get details <id>       # full markdown content
lin project get issues <id>
lin project update status <id> completed

Teams, users, labels, cycles

lin team list
lin team get ENG
lin user me
lin user list --team ENG
lin label list --team ENG
lin cycle list --team ENG --current
lin cycle get <id>

IDs

All commands accept multiple ID formats:

  • Issue keys: ENG-123
  • UUIDs: aaaaaaaa-1111-2222-3333-444444444444
  • URL slugs: fix-login-redirect-abc123
  • --team accepts team key (ENG) or name (Engineering)

Pagination

List commands return { "items": [...], "pagination"?: { "hasMore": true, "nextCursor": "..." } }.

Use --limit <n> and --cursor <token> to paginate.

References