Create Worktree

🌐Community
by shikajiro · vlatest · Repository

Creates isolated Git worktrees for experimentation without affecting your main repository's history.

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

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

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

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

About This Skill

What it does

The create-worktree skill allows an AI agent to create a new Git worktree. This is useful for switching between branches or working on multiple features simultaneously without affecting the main codebase. It essentially creates a separate, independent copy of your repository's working directory.

When to use it

  • You need to test a feature branch while continuing development on another branch.
  • You want to work on bug fixes in one branch while keeping your primary development environment clean.
  • A developer requests you create a new workspace for them based on a specific commit or branch.
  • You're debugging an issue and need to reproduce it in a separate working directory.

Key capabilities

  • Creates a new Git worktree.
  • Allows switching between branches within the new worktree.
  • Provides isolation from the main codebase.

Example prompts

  • "Create a new worktree named 'feature-x'."
  • "Make a worktree based on the release/1.0 branch."
  • "Can you create a worktree and checkout commit a1b2c3d4?"

Tips & gotchas

  • Requires Git to be installed and accessible in the environment where the AI agent is running.
  • Worktrees can consume significant disk space, especially for large repositories.

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
shikajiro
Installs
4

🌐 Community

Passed automated security scans.