Create Worktree

🌐Community
by glennguilloux · vlatest · Repository

Creates a clean Git work tree based on specified branch, isolating development without affecting 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 glennguilloux-create-worktree npx -- -y @trustedskills/glennguilloux-create-worktree
2

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

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

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 a new Git worktree. A worktree is essentially a separate, independent checkout of the same repository, allowing you to have multiple working copies of different branches or commits simultaneously. This is useful for experimenting with changes without affecting your main working directory.

When to use it

  • You need to test a feature branch without disrupting your current development workflow.
  • You want to examine an older commit or tag without switching your primary branch.
  • Multiple developers on a team require isolated environments for different tasks within the same repository.
  • You're debugging a specific issue that requires a clean working directory based on a particular revision.

Key capabilities

  • Creates a new Git worktree.
  • Specifies the branch or commit to checkout in the new worktree.
  • Allows for multiple, independent working copies of a repository.

Example prompts

  • "Create a worktree named 'experiment' from the 'develop' branch."
  • "Make a worktree called 'bugfix' based on commit abc123def456."
  • "Can you create a new worktree for testing the feature X?"

Tips & gotchas

  • Requires Git to be installed and accessible in the environment where the AI agent is running.
  • Worktrees are relative to the main repository, so ensure the agent has access to the root of that repository.

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
glennguilloux
Installs
3

🌐 Community

Passed automated security scans.