Linear Worktree Skill
Find a matching Linear issue based on conversation context.
Your Issues
Unstarted:
!linear issue list -s unstarted -a self --limit 10 --no-color 2>/dev/null || echo "LINEAR_UNAVAILABLE"
In Progress:
!linear issue list -s started -a self --limit 5 --no-color 2>/dev/null || echo ""
Output
Return ONE line:
- •Issue matches:
USE: <type> VAL-xxx-slug - •No match:
NEW_ISSUE_NEEDED - •Linear unavailable:
LINEAR_UNAVAILABLE
Type (infer from issue title/labels):
- •
feat- new feature, enhancement, "add X" - •
fix- bug, error, "fix X", "broken" - •
refactor- cleanup, improve, restructure - •
chore- maintenance, deps, config - •
docs- documentation
Slug: issue title → lowercase, spaces to hyphens, remove special chars, max 50 chars
Examples
code
USE: feat VAL-45-add-user-authentication
code
USE: fix ENG-123-broken-login
code
NEW_ISSUE_NEEDED
code
LINEAR_UNAVAILABLE
For Main Agent
- •
USE: <type> <ISSUE-ID-slug>→${CLAUDE_PLUGIN_ROOT}/bin/new-worktree <type> <ISSUE-ID-slug> - •
NEW_ISSUE_NEEDED→ Ask user, create issue withlinear issue create -t "Title" -a self --start, then${CLAUDE_PLUGIN_ROOT}/bin/new-worktree - •
LINEAR_UNAVAILABLE→${CLAUDE_PLUGIN_ROOT}/bin/new-worktree <type> <topic>