🌿
DevOpsGo

Worktree

by AgentsMesh

Worktree is a DevOps skill for Claude Code, published by AgentsMesh in AgentsMesh.

2.3K stars238 forkson AgentsMesh/AgentsMeshAdded 2026/08/18+1% in starsRepository updated 2026/08/03
agent-orchestrationagentsmeshai-agentai-agent-workforce-platformai-codingaiderclaude-codecodex-cligemini-climulti-agentself-hosted
Install in seconds
Install Worktree
Copy Worktree into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/AgentsMesh/AgentsMesh/tree/main/agents/skills/worktree ~/.claude/skills/worktree

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/AgentsMesh/AgentsMesh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
agents/skills/worktree/SKILL.md in AgentsMesh/AgentsMesh
Installs to
~/.claude/skills/worktree
Collection
One of 5 skills cataloged from this repository
Category
DevOps798 skills

What Worktree does

Worktree creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment. Use when the user asks for a new worktree or isolated work for a feature, fix, investigation, or review.

Worktree is cataloged under DevOps on DirSkills. Worktree comes from a repository tagged agent-orchestration, agentsmesh, ai-agent, ai-agent-workforce-platform and ai-coding.

Documentation

README

AgentsMesh Worktree

Create worktrees next to the main checkout under AgentsMesh-Worktrees.

Workflow

  1. Determine the requested branch name, base branch (default main), and whether the task actually needs a running development stack.

  2. Inspect repository state and identify the base remote from the user's request, the base branch upstream, or its URL:

    git status --short --branch
    git remote -v
    git worktree list
    

    Preserve all existing changes. Do not stash, reset, commit, or clean the main checkout as a side effect of worktree creation.

  3. Fetch the selected base:

    git fetch <base-remote> <base-branch>
    

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Worktree

  • What else does AgentsMesh publish alongside Worktree?

    Worktree is one of 5 skills that DirSkills catalogs from AgentsMesh/AgentsMesh, the repository it ships in. Its siblings there include Arch Check, E2E Testing and GitLab Mirror Sync. Each one is a separate skill with its own page in this directory, installs the same way Worktree does, and is maintained by AgentsMesh in that same repository. The rest of the collection is listed on the AgentsMesh/AgentsMesh page.

  • How does Worktree compare to other DevOps skills?

    Worktree ranks #263 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Worktree against them. Open each page to compare what they document and how they install.