Worktree Manager

🌐Community
by testacode · vlatest · Repository

Manages Git worktrees for efficient parallel development and experimentation, boosting developer productivity by isolating branches.

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 testacode-worktree-manager npx -- -y @trustedskills/testacode-worktree-manager
2

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

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

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

About This Skill

What it does

The testacode-worktree-manager skill allows AI agents to manage Git worktrees. It enables creating, switching between, and deleting worktrees, facilitating parallel development or experimentation without affecting the main repository. This is particularly useful for tasks requiring multiple active branches or isolated environments.

When to use it

  • Parallel Feature Development: An agent needs to work on two features simultaneously in separate Git worktrees.
  • Experimentation with Different Branches: The agent requires a safe space to experiment with changes without impacting the main codebase.
  • Reproducing Specific Commits: The agent needs to examine or modify code at a specific point in history, creating a worktree for that commit.
  • Testing Pull Requests: An agent can create a worktree based on a pull request branch to test and validate changes before merging.

Key capabilities

  • Create new Git worktrees.
  • Switch between existing worktrees.
  • Delete worktrees.

Example prompts

  • "Create a worktree named 'feature-x'."
  • "Switch to the 'bugfix' worktree."
  • "Delete the 'experiment' worktree."

Tips & gotchas

The agent needs access to a Git repository and appropriate permissions to create, switch, and delete worktrees. Ensure that the specified worktree names are valid and do not conflict with existing branches or files.

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
testacode
Installs
10

🌐 Community

Passed automated security scans.