git-find-ticket-branch

Find git branches by Linear ticket ID across local and remote refs.

5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/f4irline/bbqparty-ai --skill git-find-ticket-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-find-ticket-branch
Source: https://github.com/f4irline/bbqparty-ai/tree/main/packages/opencode/.opencode/skills/git-find-ticket-branch
Command: npx skills add https://github.com/f4irline/bbqparty-ai --skill git-find-ticket-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about git-find-ticket-branch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find a git branch using a Linear ticket ID?

To find a git branch using a Linear ticket ID, search local and remote refs for branch names matching the ticket. The skill fetches updates, parses worktree output, and deduplicates local and remote matches.

How do I check if a git branch has an attached worktree?

Checking if a git branch has an attached worktree involves parsing the git worktree list output. The skill resolves worktree attachments and reports the attached paths alongside the last commit info for each candidate branch.

Can I search both local and remote git branches for a specific ticket?

Yes, searching both local and remote git branches for a specific ticket is supported. The skill performs a git fetch, searches across all refs, and deduplicates the results to report whether the branch exists locally, remotely, or both.

What is the best way to locate ticket branches following type/ticket-description naming conventions?

The best way to locate ticket branches following type/ticket-description naming conventions is to search across git refs by ticket ID. This approach consolidates branch discovery, worktree resolution, and last-commit reporting into a single result.

Why does my git branch search show duplicate local and remote results?

Git branch searches show duplicate local and remote results when the same branch exists in both refs. The skill addresses this by deduplicating local and remote matches and reporting the status to help you choose the correct branch.