Cmux And Worktrees
Cmxu And Worktrees facilitates seamless Git workflows by automating branch creation & merging, boosting developer productivity.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add cmux-and-worktrees npx -- -y @trustedskills/cmux-and-worktrees
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"cmux-and-worktrees": {
"command": "npx",
"args": [
"-y",
"@trustedskills/cmux-and-worktrees"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows the AI agent to manage multiple terminal sessions and Git worktrees concurrently. It enables efficient switching between different projects or environments without needing separate terminals, improving workflow speed and organization. The agent can create, list, switch, and delete worktrees as needed for various tasks.
When to use it
- Project Context Switching: Quickly jump between multiple coding projects that each require a distinct Git repository.
- Environment Management: Easily manage different development or testing environments (e.g., staging, production) using separate worktrees.
- Parallel Development: Work on feature branches in parallel within the same repository by creating and switching between worktrees.
- Clean Workspace: Keep your main workspace clean by isolating experimental changes into dedicated worktrees.
Key capabilities
- Create new Git worktrees.
- List existing worktrees.
- Switch between active Git worktrees.
- Delete Git worktrees.
Example prompts
- "Create a worktree named 'feature-branch' from the main branch."
- "List all available worktrees."
- "Switch to the worktree called 'staging'."
- “Remove the ‘experimental’ worktree.”
Tips & gotchas
- Requires Git to be installed and accessible in the agent's environment.
- Worktree names should be descriptive and avoid special characters for optimal usability.
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.