ticket-status-sync
Synchronizes Linear ticket status with git workflow events.
What this skill does
# Ticket Status Sync Skill
Synchronizes Linear ticket status with git workflow events, keeping tickets up-to-date with development progress.
## Purpose
Automatically update Linear tickets when:
- Branch is created -> "In Progress"
- PR is created -> "In Review"
- PR is merged -> "Done"
- PR is closed without merge -> Back to "Todo"
**Important:** Always ask user permission before updating Linear.
## Status Mapping
```
Git Event -> Linear Status
-----------------------------------------
Branch created -> In Progress
PR created -> In Review
PR merged -> Done
PR closed (no merge) -> Todo
PR draft -> In Progress
```
## Workflow
### 1. Detect Git Event
**Branch Creation:**
```bash
# After creating branch
# Example: feature/PROJ-123-add-oauth-support
```
**PR Creation:**
```bash
gh pr view [number] --json number,state,isDraft,headRefName
```
**PR Status Change:**
```bash
gh pr view [number] --json state,merged,mergedAt,closedAt
```
### 2. Extract Ticket ID
**From branch name:**
```bash
git branch --show-current
# Pattern: {type}/{ticket-id}-{description}
# Extract: PROJ-123
```
**From PR:**
```bash
gh pr view [number] --json headRefName
```
### 3. Verify Ticket Exists
```bash
mcp__linear__get_issue --id PROJ-123
```
If ticket not found:
```
Warning: Ticket PROJ-123 not found in Linear.
Skip status update? (yes/no)
```
### 4. Ask User Permission
**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)
```
### 5. Update Ticket Status
```bash
mcp__linear__update_issue \
--id PROJ-123 \
--state "In Review"
```
### 6. Add Comment to Ticket
**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
```
### 7. Confirm Success
```
Linear ticket updated
Ticket: PROJ-123
Status: Todo -> In Review
Comment: Added PR link #456
URL: https://linear.app/team/issue/PROJ-123
```
## Error Handling
**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)
```
## Integration
This skill is invoked by:
- `/ticket-start` - When creating branch
- `/push` - When creating PR
- Merge hooks (if configured)
Used by agents:
- `linear-ticket-planner` - Updates status when starting work
- `git-pr-manager` - Updates status when creating PR
## Safe Defaults
- Branch created: Always ask
- PR created: Auto-update (common operation)
- PR merged: Auto-update
- PR closed: Always ask (reason needed)
## Special Cases
**Multiple 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
```
## Quality Checks
Before updating ticket:
- [ ] Ticket ID is valid
- [ ] Ticket exists in Linear
- [ ] User has permission to update
- [ ] Status transition is valid
- [ ] User confirmed update
- [ ] Comment added with context
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.