What problem does it solve?
Quickly finding which git branch corresponds to a Linear ticket ID and determining whether that branch has an attached worktree can be time-consuming when branches exist locally and remotely or follow varied naming conventions. This Skill consolidates branch discovery, deduplication, worktree resolution, and last-commit reporting into a single, actionable result so developers can resume work without manual git plumbing.
Core Features & Use Cases
- Search local and remote refs for branches that include a given Linear ticket ID following patterns like type/ticket-description.
- Resolve worktree attachments by parsing the git worktree list and reporting attached paths when present.
- Deduplicate and report status (local, remote, or both) and show the last commit for each candidate branch to help choose the correct branch.
- Use Case: When picking up work on STU-15, locate the existing branch, confirm if a worktree exists, and get the latest commit to avoid duplicating effort.
Quick Start
Use the git-find-ticket-branch skill to locate the branch for ticket STU-15, report whether it exists locally or on origin, and show any attached worktree path and last commit.