Worktree Manager

🌐Community
by scientiacapital · vlatest · Repository

Manages multiple Git branches (worktrees) for efficient development workflows, boosting productivity and reducing merge conflicts.

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

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

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

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

About This Skill

What it does

The worktree-manager skill allows an AI agent to manage Git worktrees. It can create, list, and switch between different worktrees within a single repository, enabling parallel development or experimentation without affecting the main codebase. This facilitates tasks like testing branches in isolation or working on multiple features simultaneously.

When to use it

  • Parallel Feature Development: When an agent needs to work on several distinct features concurrently within a Git repository.
  • Isolated Testing: To create and manage separate worktrees for testing different versions of code or experimental changes.
  • Branch Exploration: To quickly switch between and explore various branches without constantly checking out and back.
  • Clean Workspace: To maintain a clean primary working directory while experimenting with modifications in isolated worktrees.

Key capabilities

  • Create new Git worktrees.
  • List existing worktrees within a repository.
  • Switch between active Git worktrees.

Example prompts

  • "Create a worktree named 'experiment-branch' from the 'develop' branch."
  • "List all available worktrees in this repository."
  • "Switch to the worktree called 'feature-x'."

Tips & gotchas

The agent needs access to a Git repository and appropriate permissions to create and manage worktrees. Ensure the specified worktree names are valid and don't conflict with existing files or directories.

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
scientiacapital
Installs
21

🌐 Community

Passed automated security scans.