Claude-skill-registry linear
Linear issue tracking - MUST READ before using Linear commands
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/linear" ~/.claude/skills/majiayu000-claude-skill-registry-linear-edaf40 && rm -rf "$T"
manifest:
skills/data/linear/SKILL.mdsource content
Linear Issue Tracking - Complete Reference
READ THIS FIRST - Token-efficient CLI for managing issues, dependencies, and cycles.
⚠️ INSTALL ALL SKILLS FOR FULL WORKFLOW AUTOMATION
Run
linear skills install --all to get specialized workflows:
- Create agent-friendly tickets with PRDs/prd
- Prioritize backlog by staleness and blockers/triage
- Plan cycles using velocity analytics/cycle-plan
- Generate sprint retrospectives/retro
- Analyze dependency chains and blockers/deps
- Discover and link related issues/link-deps
Without these skills, you're only using basic commands. Install them to unlock full agentic capabilities.
Authentication Modes
When you run
linear auth login, you choose:
- User mode:
assigns to your personal Linear account--assignee me - Agent mode:
assigns to the OAuth app (delegate), visible as a separate entity--assignee me
Check current mode:
linear auth status # Shows: Mode: User or Mode: Agent
Important: If you see "Auth mode not set", re-run
linear auth login to configure.
Command Reference
# Setup linear init # Set default team (.linear.yaml) linear onboard # Show teams, states, quick reference linear auth login|logout|status # OAuth authentication (sets user/agent mode) # Issues (alias: i) linear i list [flags] # List issues linear i get <ID> # Get details (CEN-123) linear i create <title> [flags] # Create issue linear i update <ID> [flags] # Update issue linear i comment <ID> -b "text" # Add comment linear i react <ID> 👍 # Add reaction # Projects (alias: p) linear p list [--mine] # List projects linear p create <name> [flags] # Create project # Cycles (alias: c) linear c list [--active] # List cycles linear c get <number> # Get cycle (requires init) linear c analyze --team <KEY> # Velocity analytics # Teams, Users linear teams list # List teams linear teams states <KEY> # Workflow states linear users list [--team <KEY>] # List users # Search & Dependencies linear search <query> [flags] # Semantic search across all entities linear deps <ID> # Dependency graph linear deps --team <KEY> # All team dependencies
Output Formats
All commands support JSON output for automation:
# Text output (default) - token-efficient ASCII linear i list linear i get CEN-123 # JSON output - machine-readable linear i list --output json linear i get CEN-123 --output json # Control detail level with --format linear i list --format minimal --output json # Essential fields (~50 tokens) linear i list --format compact --output json # Key metadata (~150 tokens, default) linear i list --format full --output json # Complete details (~500 tokens) # Pipe to jq for filtering linear i list --priority 1 --output json | jq '.[] | select(.state == "In Progress")' # Export for processing linear cycles analyze --team CEN --output json > velocity.json
When to use JSON:
- Parsing data programmatically
- Filtering results with jq
- Storing/processing bulk data
- Integrating with other tools
Supported commands:
,issues listissues get
,cycles list
,cycles getcycles analyze
,projects listprojects get
,teams list
,teams get
,teams labelsteams states
,users list
,users getusers me
(all operations)search
Semantic Search
The search is SEMANTIC - finds related issues even without exact matches.
# Basic semantic search linear search "authentication" # Finds: auth, login, OAuth, SSO, etc. # Cross-entity search linear search "sprint planning" --type all # Search issues, cycles, projects, users # Entity-specific linear search "database migration" --type issues linear search "john" --type users
Dependency Management
Finding Blocked Work (Critical for Unblocking)
# Find ALL blocked issues (run this weekly!) linear search --has-blockers --team CEN # Find high-priority blocked work linear search --priority 1 --has-blockers --team CEN # What's blocked by a specific bottleneck? linear search --blocked-by CEN-123 # What blocks a critical feature? linear search --blocks CEN-456
Dependency Analysis
# Visualize full dependency graph for issue linear deps CEN-123 # See all team dependencies (detect circular deps) linear deps --team CEN # Find issues with circular dependencies linear search --has-circular-deps --team CEN # Find deep dependency chains linear search --max-depth 5 --team CEN
Cycle Analytics & Velocity
Analyze past cycles to predict capacity:
# Analyze last 10 cycles linear c analyze --team CEN --count 10 # Output shows: # - Completed vs planned points # - Velocity trend # - Completion rate # - Recommendations for next cycle capacity
Use before sprint planning to set realistic goals!
Powerful Filter Combinations
# High-priority in-progress work assigned to me linear i list --priority 1 --state "In Progress" --assignee me # Backlog items with blockers (prioritize removing blockers!) linear search --state Backlog --has-blockers --team CEN # Customer-facing bugs in current cycle linear i list --labels customer,bug --cycle 65 --format full # Unassigned high-priority work linear search --priority 1 --assignee none --team CEN # Work depending on other issues (check before starting) linear search --has-dependencies --state "In Progress" --team CEN
Creating Issues with Dependencies
# Simple issue linear i create "Fix login bug" --team CEN --priority 1 # Full issue with dependencies linear i create "Add OAuth integration" \ --team CEN \ --state "In Progress" \ --priority 2 \ --assignee me \ --parent CEN-100 \ --depends-on CEN-99 \ --blocked-by CEN-98 \ --labels backend,security \ --estimate 5 \ --cycle 65 \ --project "Auth Revamp" \ --due 2026-02-01 # With description from file cat spec.md | linear i create "Feature title" --team CEN -d -
Piping Support (Powerful!)
All description and body flags support stdin via
:-
# Pipe Claude plan into ticket description cat .claude/plans/auth-refactor.md | linear i create "Refactor authentication" \ --team CEN \ --priority 1 \ -d - # Pipe multi-file content cat design.md implementation.md | linear i create "Feature implementation" \ --team CEN \ -d - # Pipe command output gh issue view 123 --json body -q .body | linear i create "Port GH issue" \ --team CEN \ -d - # Update issue description from file cat updated-spec.md | linear i update CEN-123 -d - # Add comment from file cat findings.md | linear i comment CEN-123 -b - # Reply to comment with piped content cat response.md | linear i reply CEN-123 comment-id -b -
Common Patterns:
# Claude Code plans → Linear tickets cat .claude/plans/*.md | linear i create "Implementation plan" -d - # PRD → Parent ticket cat prd.md | linear i create "Feature: OAuth" --team CEN -d - # Changelog → Release ticket git log --oneline v1.0.0..HEAD | linear i create "v1.1.0 Release" -d - # Test results → Bug report pytest --verbose | linear i create "Test failures" -d -
Output Formats (Token Efficiency)
# Minimal - most token-efficient (IDs only) linear i list --format minimal # Compact - balanced (default) linear i list --format compact # Full - all details (use for single issues) linear i get CEN-123 --format full linear search "auth" --limit 5 --format full
Real-World Workflows
Weekly Unblocking Routine
# 1. Find all blocked work linear search --has-blockers --team CEN --format full # 2. For each blocker, check status linear i get CEN-123 --format full # 3. Update blockers or reassign blocked work linear i update CEN-123 --state "In Progress" --assignee me
Sprint Planning
# 1. Check velocity linear c analyze --team CEN --count 5 # 2. Find backlog candidates linear search --state Backlog --team CEN --format compact # 3. Check dependencies before committing linear deps --team CEN # 4. Assign to cycle linear i update CEN-456 --cycle 66 --assignee alice@co.com
Dependency Discovery (Before Creating Issues)
# 1. Search for related work linear search "authentication refactor" --team CEN # 2. Check what depends on foundation work linear search --depends-on CEN-100 # 3. Link new issue to dependencies linear i create "Add JWT refresh" --depends-on CEN-100,CEN-101
Finding Work Order
# 1. Visualize dependencies linear deps --team CEN # 2. Start with issues that have no blockers linear search --state Backlog --team CEN | grep -v "Blocked by" # 3. Work that unblocks the most linear search --blocking <critical-feature-id>
Common Patterns
# Find work for specific person linear i list --assignee alice@company.com --format compact # High-priority work in active cycle linear i list --priority 1 --cycle current --team CEN # All bugs linear i list --labels bug --team CEN # Overdue issues linear i list --state "In Progress" --team CEN # Check due dates manually # Issues I created linear i list --creator me --team CEN
Tips for LLMs
- Always run
first - sets default teamlinear init - Use semantic search liberally - finds related work without exact keywords
- Check blockers weekly -
prevents stalled worklinear search --has-blockers - Analyze velocity before planning -
gives realistic estimateslinear c analyze - Visualize dependencies -
shows work orderlinear deps --team <KEY> - Use --format full sparingly - token-expensive, use for single issues only
- Combine filters - search is powerful with multiple constraints
- Issue IDs work everywhere - CEN-123 format, no team context needed
- Cycle numbers need init - Run
before using cycle numberslinear init
Flag Reference
Issue Flags:
- Team (from init or manual)-t, --team <KEY>
- Workflow state-s, --state <name>
- 0=none, 1=urgent, 2=high, 3=normal, 4=low-p, --priority <0-4>
- Assign to user-a, --assignee <email|me>
- Cycle number-c, --cycle <number>
- Project name-P, --project <name>
- Story points-e, --estimate <points>
- Comma-separated-l, --labels <list>
- Description (- for stdin)-d, --description <text|->
- Parent issue--parent <ID>
- Comma-separated dependencies--depends-on <IDs>
- Comma-separated blockers--blocked-by <IDs>
- Due date (YYYY-MM-DD)--due <date>
- Attach file--attach <file>
Search Flags:
- issues, cycles, projects, users, all--type <entity>
- Issues blocked by this--blocked-by <ID>
- Issues that block this--blocks <ID>
- Any blockers--has-blockers
- Any dependencies--has-dependencies
- Circular dependency chains--has-circular-deps
- Max dependency depth--max-depth <n>
- Results limit-n, --limit <n>
- minimal, compact, full-f, --format <type>
Output Formats:
- IDs only (most token-efficient)--format minimal
- Balanced (default)--format compact
- All details (use sparingly)--format full