Create Worktree Skill

🌐Community
by disler · vlatest · Repository

Creates isolated Git worktrees for experimentation without affecting the main repository.

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

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

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

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 create Git worktrees. Worktrees provide a way to check out multiple versions of a repository simultaneously, enabling parallel development or experimentation without interfering with the main working copy. The skill handles the creation and management of these isolated workspaces within a single Git repository.

When to use it

  • Branching experiments: Quickly create a worktree for testing a new feature branch without affecting your primary codebase.
  • Parallel development: Maintain separate worktrees for different developers working on distinct parts of the same project.
  • Reproducing builds: Create a clean worktree to reproduce specific build environments or historical commits.
  • Code reviews: Set up a dedicated worktree for reviewing changes without modifying your main working copy.

Key capabilities

  • Creates new Git worktrees.
  • Manages existing worktrees (e.g., switching between them).
  • Handles cleanup of worktrees when they are no longer needed.

Example prompts

  • "Create a worktree named 'feature-x' based on the 'develop' branch."
  • "Switch to the worktree called 'bugfix-123'."
  • "Delete the worktree 'experimental-branch'."

Tips & gotchas

  • Requires Git to be installed and accessible in the environment.
  • Worktrees share history with the main repository, so large repositories can consume significant disk space when multiple worktrees are active.

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
disler
Installs
7

🌐 Community

Passed automated security scans.