From aai-pm-linear
Synchronizes Linear ticket status with git workflow events: branch created to In Progress, PR created to In Review, merged to Done, closed to Todo. Asks user permission before updates.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aai-pm-linear:ticket-status-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Synchronizes Linear ticket status with git workflow events, keeping tickets up-to-date with development progress.
Synchronizes Linear ticket status with git workflow events, keeping tickets up-to-date with development progress.
Automatically update Linear tickets when:
Important: Always ask user permission before updating Linear.
Git Event -> Linear Status
-----------------------------------------
Branch created -> In Progress
PR created -> In Review
PR merged -> Done
PR closed (no merge) -> Todo
PR draft -> In Progress
Branch Creation:
# After creating branch
# Example: feature/PROJ-123-add-oauth-support
PR Creation:
gh pr view [number] --json number,state,isDraft,headRefName
PR Status Change:
gh pr view [number] --json state,merged,mergedAt,closedAt
From branch name:
git branch --show-current
# Pattern: {type}/{ticket-id}-{description}
# Extract: PROJ-123
From PR:
gh pr view [number] --json headRefName
mcp__linear__get_issue --id PROJ-123
If ticket not found:
Warning: Ticket PROJ-123 not found in Linear.
Skip status update? (yes/no)
Format:
Linear Ticket Update
Ticket: PROJ-123 - Add OAuth2 support
Current Status: In Progress
Proposed Status: In Review
Reason: PR #456 created
Update ticket? (yes/no/never)
mcp__linear__update_issue \
--id PROJ-123 \
--state "In Review"
Branch created:
Started work in branch: `feature/PROJ-123-add-oauth-support`
Base: main
PR created:
Pull request created: [#456](PR_URL)
Branch: `feature/PROJ-123-add-oauth-support`
Target: main
PR merged:
Pull request merged: [#456](PR_URL)
Merged to: main
Linear ticket updated
Ticket: PROJ-123
Status: Todo -> In Review
Comment: Added PR link #456
URL: https://linear.app/team/issue/PROJ-123
Linear API error:
Error: Failed to update Linear ticket
Details: {error}
Actions:
[1] Retry
[2] Skip for now
[3] Update manually: {ticket_url}
Invalid state transition:
Error: Cannot transition from "Done" to "In Progress"
Skip update? (yes/no)
This skill is invoked by:
/ticket-start - When creating branch/push - When creating PRUsed by agents:
linear-ticket-planner - Updates status when starting workgit-pr-manager - Updates status when creating PRMultiple PRs for one ticket:
Notice: Multiple PRs found for PROJ-123
PRs:
- #456 (open, in review)
- #789 (merged)
Which PR triggered this update?
Ticket already Done:
Notice: Ticket PROJ-123 is already marked Done
Actions:
[1] Keep ticket as Done
[2] Reopen ticket (-> In Progress)
[3] Create new follow-up ticket
Draft PR:
Notice: PR #456 is in draft mode
Status: In Progress (not In Review)
Mark as In Review when PR is ready:
gh pr ready
Before updating ticket:
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub bradtaylorsf/alphaagent-team