git-jira-branch
git-jira-branch
Quick start
Given a ticket like TICKET-1234:
# 1. Look for an existing branch
git branch --list "TICKET-1234-*"
# 2a. Branch found — switch to it
git checkout TICKET-1234-my-feature
# 2b. No branch found — delegate to the helper script
jiraSwitchToBranch TICKET-1234
Workflow
- Extract the ticket number from the user's message (e.g.
PROJ-42,ABC-1234). - Search local branches for a branch whose name starts with
<TICKET>-:git branch --list "<TICKET>-*" - If exactly one match → check it out:
git checkout <matched-branch> - If multiple matches → list them and ask the user which one to use.
- If no match → run the helper:
The script handles branch creation and checkout automatically; report its output to the user.jiraSwitchToBranch <TICKET>
Notes
- Always search local branches first (
git branch --list), not remote. - The ticket prefix match is case-sensitive; use the ticket number exactly as provided.
- Do not create branches manually —
jiraSwitchToBranchis the authoritative tool for that. jiraSwitchToBranchis not loaded in you environment, so runsh ~/.config/helpers/switchToJiraBranch.sh
More from miguelez11/skills
atlassian-cli
Interact with Jira and Confluence from the terminal using the Atlassian CLI (acli). Covers CRUD, listing, searching, commenting, and status transitions on Jira work items, plus Confluence space browsing. Use when the user mentions Jira tickets, ADRs, Confluence spaces, sprint boards, or wants to manage Atlassian work items without leaving the terminal.
13jira-ticket-writer
Write well-structured Jira tickets or improve existing ones. Enforces a consistent template with clear context, problem/request definition, acceptance criteria, and definition of done. Use when user asks to write, create, draft, or improve a Jira ticket, story, bug report, or task — or when a ticket lacks structure or clarity.
8write-a-skill
Add a new agent skill to the MIGUELez11/skills personal GitHub repo. Use when the user wants to create a new workflow, process, or reusable capability and publish it to their skills collection.
6jira-cli
Interact with Jira from the terminal using ankitpokhrel/jira-cli (the `jira` command). Covers issue CRUD, search, sprint management, status transitions, and linking. Use when the user mentions `jira` CLI, wants to create or view Jira issues, list sprints, move tickets, or manage Jira from the terminal without the Atlassian CLI (acli).
5obsidian-prd
Guides the user through a structured PRD creation process via interview, then writes the PRD to an Obsidian vault. Use when user asks to "create a PRD", "add a PRD", "write requirements", "write a spec", or "plan a feature".
3obsidian-tasks
Manages tasks and PRDs in an Obsidian vault via direct file creation. Use when creating task notes, PRD documents, linking tasks to PRDs, or managing blocked-by relationships in an Obsidian Kanban workflow. Triggered by phrases like "create a task", "add a PRD", "link this to a PRD", "mark as blocked by", or "add to kanban".
3