git-branch

Emit git branch and worktree management commands without executing them.

Updated May 14, 2026
One-click install
npx skills add https://github.com/jaqg/daimon --skill git-branch-jaqg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch
Source: https://github.com/jaqg/daimon/tree/main/git/skills/git-branch
Command: npx skills add https://github.com/jaqg/daimon --skill git-branch-jaqg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps developers manage the full lifecycle of git branches and worktrees by printing the commands it would run and executing them only when explicitly requested via --execute.

Core Features & Use Cases

  • Show current status and tracking information for all branches with optional linked worktrees, age, and merged status
  • Create a new branch with an associated worktree in a sibling directory
  • List branches with status, age, tracking, and worktree paths
  • Prepare and perform merges with selectable strategies and optional worktree removal
  • Clean up merged branches and orphaned worktrees safely, with safeguards
  • Execute printed commands directly when --execute is provided and user confirms destructive steps

Quick Start

Run the default status to see the current branch state, then pick a subcommand like --list or --merge to proceed.

Frequently Asked Questions about git-branch

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

FAQPage Schema
How do I safely delete git branches and worktrees without losing uncommitted changes?

To safely delete git branches and worktrees, this skill prints the exact commands it would run and only executes them when you pass the --execute flag. It computes merge-base relationships to identify merged branches and orphaned worktrees for safe cleanup.

What is the best way to track git worktree status and branch mappings across a local repository?

Tracking git worktree status is done by a Python script that reads local git state and computes worktree mappings. It outputs structured data showing branch tracking information, age, merged status, and linked worktree paths.

How do I create a new git branch with a linked worktree in a sibling directory?

To create a git branch with a linked worktree, use the creation workflow to set up a new branch and its associated worktree in a sibling directory. The skill emits the required commands and performs the setup when confirmed with --execute.

Can I prepare and perform git merges with automatic worktree removal?

Yes, you can prepare and perform git merges using selectable strategies with optional worktree removal. The skill generates the merge commands and includes safeguards to execute the merge and cleanup only when explicitly requested.

Does this git branch management tool execute destructive commands automatically?

No, this git branch management tool does not execute destructive commands automatically. It prints the commands for review and requires the --execute flag along with user confirmation before performing any destructive actions like merges or cleanups.

How do I list all local git branches with their age and merge status?

To list local git branches with age and merge status, use the list subcommand. It reads the git state and outputs structured data including branch tracking details, age, merged status, and any linked worktree paths.