Git Worktree

🌐Community
by skinnyandbald · vlatest · Repository

Creates Git worktrees from a specified branch, streamlining parallel development workflows efficiently.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add skinnyandbald-git-worktree npx -- -y @trustedskills/skinnyandbald-git-worktree
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "skinnyandbald-git-worktree": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/skinnyandbald-git-worktree"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows an AI agent to utilize Git worktrees, enabling parallel development on multiple branches within a single repository without needing to clone the entire repository multiple times. It facilitates switching between different feature branches or experimental changes quickly and efficiently. This is achieved by creating lightweight workspaces linked to the main repository.

When to use it

  • Experimenting with new features: Create a worktree for testing out a radical change without affecting your primary development branch.
  • Working on multiple bug fixes simultaneously: Maintain separate worktrees for different bug reports, allowing parallel resolution.
  • Code review workflows: Spin up a dedicated worktree to easily pull and test changes from a specific branch during code review.
  • Developing plugins or extensions: Isolate development of new functionality in a worktree without impacting the core project.

Key capabilities

  • Creating new Git worktrees.
  • Switching between existing worktrees.
  • Listing available worktrees.
  • Deleting unwanted worktrees.

Example prompts

  • "Create a worktree named 'feature/new-login'"
  • "Switch to the worktree called 'bugfix/issue-123'"
  • "List all my Git worktrees."

Tips & gotchas

The AI agent needs access to a valid Git repository. Worktrees are tied to the main repository, so deleting the main repository will invalidate any existing worktrees.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
skinnyandbald
Installs
9

🌐 Community

Passed automated security scans.