Git Worktree Manager
Automates Git worktree creation, switching, and cleanup for streamlined development workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add git-worktree-manager npx -- -y @trustedskills/git-worktree-manager
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"git-worktree-manager": {
"command": "npx",
"args": [
"-y",
"@trustedskills/git-worktree-manager"
]
}
}
}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 manage Git worktrees, enabling parallel development on different branches or repositories within the same parent repository. It facilitates switching between worktrees, creating new ones, and deleting existing ones, all through natural language commands. This is particularly useful for complex projects requiring multiple active feature branches or experimentation with different configurations.
When to use it
- Feature Branch Isolation: Create a separate worktree for each feature branch to avoid conflicts when working on multiple features concurrently.
- Experimentation: Spin up a new worktree to test out experimental changes without affecting the main development environment.
- Multiple Repositories: Manage different repositories that share a common parent repository, allowing seamless switching between them.
- Clean Development Environments: Quickly create and discard temporary environments for specific tasks or debugging scenarios.
Key capabilities
- Creating new worktrees.
- Switching between existing worktrees.
- Deleting worktrees.
- Listing available worktrees.
Example prompts
- "Create a worktree named 'feature/new-login'"
- "Switch to the worktree called 'experimental-branch'"
- "List all my git worktrees."
- “Delete the worktree ‘old-experiment’."
Tips & gotchas
The agent needs access to a Git repository to use this skill. Ensure the environment has Git installed and is properly configured for authentication before attempting to manage 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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.