Git Worktrees

🌐Community
by bobmatnyc · vlatest · Repository

Manage multiple Git worktrees efficiently, simplifying parallel development branches and experimentation workflows.

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 git-worktrees npx -- -y @trustedskills/git-worktrees
2

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

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

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

About This Skill

What it does

This skill enables AI agents to manage multiple parallel versions of a Git repository simultaneously without modifying the main branch. It allows agents to create isolated workspaces, experiment with features or fixes, and merge changes back cleanly once validated.

When to use it

  • Testing new code changes against existing codebases before merging to main.
  • Running experiments on different branches concurrently to compare results.
  • Isolating bug fixes or feature development so they don't interfere with active work.
  • Managing multiple independent tasks within a single repository structure.

Key capabilities

  • Create and manage detached worktrees for parallel development.
  • Switch between worktrees seamlessly without affecting the primary branch.
  • Maintain isolated environments for safe experimentation and testing.
  • Merge validated changes from worktrees back into the main repository.

Example prompts

  • "Create a new worktree on the feature-auth branch to test the login flow."
  • "Switch to the existing worktree named bugfix-dashboard and run the linter."
  • "List all active worktrees and show their current commit hashes."

Tips & gotchas

Ensure your Git installation supports worktrees, as older versions may lack this functionality. Always verify changes in a worktree before merging to avoid unintended conflicts with the main branch.

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
bobmatnyc
Installs
62

🌐 Community

Passed automated security scans.