Agent skill

Git Worktree

by nwiizo in nwiizo/ccswarm

Parallel development workflow using git worktrees. An agent skill from nwiizo/ccswarm.

MITAuto-check passedDevelopment

Install Git Worktree

skills CLI
$ npx skills add nwiizo/ccswarm --skill git-worktree -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nwiizo/ccswarm git-worktree --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nwiizo/ccswarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-worktree .claude/skills/git-worktree && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-worktree
GitHub stars
153
Token cost
~311 tokens
SKILL.md length
48 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Parallel development workflow using git worktrees. An agent skill from nwiizo/ccswarm.

  • Works in 4 steps: One worktree per feature/bug → Naming: ccswarm-- → Clean up after merging → …
  • Tasks that involve Git worktrees
  • SKILL.md covers Create Worktree, Agent Team Integration, Management and Best Practices
  • Calls git

What it does

Git Worktree is an agent skill from nwiizo/ccswarm. Parallel development workflow using git worktrees. Each agent gets an isolated worktree for safe concurrent work.

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees. It works with Git. The repository describes itself as: Multi-agent orchestration system using Claude Code with Git worktree isolation and specialized AI agents for collaborative development. The licence is MIT.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/git-worktree”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. One worktree per feature/bug
  2. Naming: ccswarm--
  3. Clean up after merging
  4. Run git worktree prune periodically

What it can do on your machine

Read from SKILL.md and the folder at commit 1cec7fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Worktree loads about 311 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 48 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~311

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nwiizo/ccswarm at commit 1cec7fe, republished under its MIT licence (© nwiizo). 48 words, ~311 tokens.

Download SKILL.mdSave it as .claude/skills/git-worktree/SKILL.md (or your agent's skills folder).
name
git-worktree
description
Parallel development workflow using git worktrees. Each agent gets an isolated worktree for safe concurrent work.
user-invocable
true
argument-hint
[feature-name]

Multi-step workflow for parallel development using git worktrees.

Create Worktree

bash
# Feature worktree
git worktree add ../ccswarm-feature-$ARGUMENTS feature/$ARGUMENTS

# Bug fix worktree
git worktree add ../ccswarm-bugfix-$ARGUMENTS hotfix/$ARGUMENTS

Agent Team Integration

With Agent Teams, each agent automatically gets isolation: worktree. For manual worktree setup:

bash
git worktree add ../ccswarm-frontend feature/ui-redesign    # Frontend agent
git worktree add ../ccswarm-backend feature/api-enhancement  # Backend agent
git worktree add ../ccswarm-devops feature/ci-cd-improvement # DevOps agent

Management

bash
git worktree list                              # List all worktrees
git worktree remove ../ccswarm-feature-$ARGUMENTS  # Remove after merge
git worktree prune                             # Clean stale entries

Best Practices

  1. One worktree per feature/bug
  2. Naming: ccswarm-<type>-<description>
  3. Clean up after merging
  4. Run git worktree prune periodically

© nwiizo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/git-worktree of nwiizo/ccswarm.

Open the folder on GitHubat commit 1cec7fe

Compare with similar skills

Git Worktree next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Worktree compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Worktree this skillnwiizo/ccswarm153—~311Automated safety check: PassMIT
Git Worktree IsolationjnMetaCode/superpowers-zh8.3k1 repos~982Automated safety check: PassMIT
WorktreeAgentsMesh/AgentsMesh2.4k—~553Automated safety check: NotesCustom licence
Cursor Composer Task DelegateChachamaru127/claude-code-harness3.2k—~4.4kAutomated safety check: NotesMIT
Git Worktree Setupk8zdev/k8z155—~930Automated safety check: PassNone
New Featuremichaelshimeles/skills1.3k1 repos~699Automated safety check: PassNone

Similar skills

  • Git Worktree Isolation

    jnMetaCode/superpowers-zh

    Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.

    8.3k GitHub starsUsed in 1 repo~982 tokens
    DevelopmentAuto-check passed
  • Worktree

    AgentsMesh/AgentsMesh

    Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.

    2.4k GitHub stars~553 tokensUpdated 14 days ago
    DevelopmentAuto-check: notes
  • Cursor Composer Task Delegate

    Chachamaru127/claude-code-harness

    Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.

    3.2k GitHub stars~4.4k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

    155 GitHub stars~930 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • New Feature

    michaelshimeles/skills

    Start a new task in an isolated Git worktree branched from origin/main so multiple agents can work on the same repo in parallel without conflicts.

    1.3k GitHub starsUsed in 1 repo~699 tokens
    DevelopmentAuto-check passed
  • Use Mori CLI to enable agent-to-agent communication and coordination across Mori-managed panes.

    303 GitHub stars~1.7k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed

More from nwiizo/ccswarm

All 12 skills in this repo
  • Deploy Workflow

    nwiizo/ccswarm

    Release deployment process for ccswarm. An agent skill from nwiizo/ccswarm.

    153 GitHub stars~582 tokensUpdated 23 days ago
    Auto-check passed
  • Review Fix

    nwiizo/ccswarm

    Review uncommitted changes, fix actionable correctness issues, and verify the result.

    153 GitHub stars~596 tokensUpdated 23 days ago
    Auto-check passed
  • Review Fix

    nwiizo/ccswarm

    Code review with automatic fix. An agent skill from nwiizo/ccswarm.

    153 GitHub stars~640 tokensUpdated 23 days ago
    Auto-check passed
  • Review Fix

    nwiizo/ccswarm

    Code review with automatic fix. An agent skill from nwiizo/ccswarm.

    153 GitHub stars~576 tokensUpdated 23 days ago
    Auto-check passed
  • Benchmark Runner

    nwiizo/ccswarm

    Run performance benchmarks with criterion. An agent skill from nwiizo/ccswarm.

    153 GitHub stars~199 tokensUpdated 23 days ago
    Auto-check passed
  • Hitl Approval

    nwiizo/ccswarm

    Human-in-the-loop approval workflow for high-risk agent operations (file deletions, deployments, config changes).

    153 GitHub stars~290 tokensUpdated 23 days ago
    Auto-check passed

Works with

Questions about Git Worktree

What does Git Worktree do?

Parallel development workflow using git worktrees. An agent skill from nwiizo/ccswarm. Git Worktree is an agent skill from nwiizo/ccswarm. Parallel development workflow using git worktrees.

When should I use Git Worktree?

Git Worktree fits situations like: tasks that involve Git worktrees.

How do I install Git Worktree in Claude Code?

Run `npx skills add nwiizo/ccswarm --skill git-worktree -a claude-code`. Or copy the skill folder (.agents/skills/git-worktree in nwiizo/ccswarm) into .claude/skills/git-worktree in your project. Claude Code loads it when a task matches its description.

How do I install Git Worktree in Codex?

Run `npx skills add nwiizo/ccswarm --skill git-worktree -a codex`. Or copy the skill folder (.agents/skills/git-worktree in nwiizo/ccswarm) into .agents/skills/git-worktree in your project. Codex loads it when a task matches its description.

Can I use Git Worktree in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nwiizo/ccswarm --skill git-worktree -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-worktree, .gemini/skills/git-worktree, .github/skills/git-worktree and .opencode/skills/git-worktree in your project.

What does Git Worktree need to run?

Going by SKILL.md and its folder, Git Worktree needs the command-line tools its instructions call (git).

Does Git Worktree access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Worktree safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Worktree use?

Git Worktree is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Worktree use?

About 311 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Worktree?

Skills that share tags, products or a category with Git Worktree: Git Worktree Isolation (jnMetaCode/superpowers-zh, 8.3k stars), Worktree (AgentsMesh/AgentsMesh, 2.4k stars), Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k stars) and Git Worktree Setup (k8zdev/k8z, 155 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Worktree?

nwiizo (a GitHub user) maintains it in nwiizo/ccswarm, which has 153 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 14, 2026.

Source: nwiizo/ccswarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.