smithery.ai

gitworktree-skill

Manage Git worktrees with ga/gd helpers to create, switch, and clean isolated branches quickly.

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
short-description
Fast git worktree workflow

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,613 B
  • docs SUMMARY.md 120 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Git Worktree Quick Workflow

When to Use

Use this skill when you need isolated development for a feature, fix, or experiment and want to avoid frequent branch switching.

Commands

If ga/gd are not available, install the helper functions from scripts/worktree_helpers.sh and then use the commands below.

# Create worktree + branch and cd into it
ga <branch-name>

# Delete current worktree (requires gum for confirmation)
gd

# List all worktrees
git worktree list

Recommended Flow

  1. Pick a branch name:

- feature/<short-desc> - fix/<short-desc> - experiment/<short-desc>

  1. Create the worktree:

- ga feature/<short-desc>

  1. Do the work in the new directory.
  2. Clean up after merge or abandon:

- gd

Guardrails

  • Only run gd inside a worktree directory to avoid deleting the main repo.
  • If gd fails, install gum: brew install gum.
  • If a branch already exists, choose a new name or delete the old branch first.

Install helpers (if needed)

# From this repo root
source scripts/worktree_helpers.sh

Add the source line to your shell profile (e.g. ~/.zshrc) to make ga/gd available.

Example:

echo 'source /path/to/gitworktree-skill/scripts/worktree_helpers.sh' >> ~/.zshrc

Dependencies

  • gum is required for gd confirmation prompts.
  • mise is optional and auto-trusts new worktree directories.