Agent skill

Worktree Manager

by Wirasm in Wirasm/worktree-manager-skill

Create, manage, and cleanup git worktrees with Claude Code agents across all projects.

No licenceAuto-check: notesDevelopment

Install Worktree Manager

skills CLI
$ npx skills add Wirasm/worktree-manager-skill --skill worktree-manager -a claude-code

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

GitHub CLI
$ gh skill install Wirasm/worktree-manager-skill worktree-manager --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/Wirasm/worktree-manager-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills .claude/skills/worktree-manager && 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
worktree-manager
GitHub stars
139
Token cost
~5.6k tokens
SKILL.md length
1,068 words
Files
10 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Create, manage, and cleanup git worktrees with Claude Code agents across all projects.

  • Works in 6 steps: Create Multiple Worktrees with Agents → Check Status → Launch Agent Manually → …
  • User says create worktree
  • SKILL.md covers When This Skill Activates, File Locations, Core Concepts and Global Registry, plus 9 more sections
  • Runs Shell scripts from its folder; calls jq, git and uv

What it does

Worktree Manager is an agent skill from Wirasm/worktree-manager-skill. Create, manage, and cleanup git worktrees with Claude Code agents across all projects. USE THIS SKILL when user says "create worktree", "spin up worktrees", "new worktree for X", "worktree status", "cleanup worktrees", "sync worktrees", or wants parallel development branches. Also use when creating PRs from a worktree branch (to update registry with PR number). Handles worktree creation, dependency installation, validation, agent launching in Ghostty, and global registry management.

Its SKILL.md is about 5.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts (for example `config.json`, `scripts/allocate-ports.sh` and `scripts/cleanup.sh`).

It sits in Development, covering Git worktrees. The repository describes itself as: a claude code skill for effortless worktree management.

When your agent uses it

  • User says create worktree
  • Spin up worktrees
  • New worktree for X
  • Worktree status

Example prompts

  • “create worktree”
  • “spin up worktrees”
  • “new worktree for X”
  • “/worktree-manager”

Requirements

  • Node.js
  • A Bash shell

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Create Multiple Worktrees with Agents
  2. Check Status
  3. Launch Agent Manually
  4. Cleanup Worktree
  5. Create PR from Worktree
  6. Sync Registry

What it can do on your machine

Read from SKILL.md and the folder at commit 9279462. 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

    Ships 7 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • jq
    • git
    • uv
    • go
    • osascript
    • gh
    • bun
    • pnpm
    • yarn
    • npm
    • pip
    • cargo

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

  • Network

    No URLs in SKILL.md. Its commands use git, uv, gh, pnpm, yarn, npm and pip, 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

Worktree Manager loads about 5.6k tokens when it runs. Until then it costs about 126 tokens; SKILL.md has 1,068 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:298
    cp .env.example $WORKTREE_PATH/.env 2>/dev/null || true

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); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,068 words (~5,604 tokens).

“Manage parallel development across ALL projects using git worktrees with Claude Code agents. Each worktree is an isolated copy of the repo on a different branch, stored centrally at ~/tmp/worktrees/.”

— opening of SKILL.md by Wirasm
name
worktree-manager

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files (scripts) in .claude/skills of Wirasm/worktree-manager-skill.

  • SKILL.md
  • config.json
  • scripts/allocate-ports.sh
  • scripts/cleanup.sh
  • scripts/launch-agent.sh
  • scripts/register.sh
  • scripts/release-ports.sh
  • scripts/status.sh
  • scripts/sync.sh
  • templates/worktree.json

Open the folder on GitHubat commit 9279462

Compare with similar skills

Worktree Manager 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.

Worktree Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Worktree Manager this skillWirasm/worktree-manager-skill139—~5.6kAutomated safety check: NotesNone
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

Categories

Questions about Worktree Manager

What does Worktree Manager do?

Create, manage, and cleanup git worktrees with Claude Code agents across all projects. Worktree Manager is an agent skill from Wirasm/worktree-manager-skill. Create, manage, and cleanup git worktrees with Claude Code agents across all projects.

When should I use Worktree Manager?

Worktree Manager fits situations like: user says create worktree; spin up worktrees; new worktree for X; worktree status.

How do I install Worktree Manager in Claude Code?

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

How do I install Worktree Manager in Codex?

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

Can I use Worktree Manager 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 Wirasm/worktree-manager-skill --skill worktree-manager -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/worktree-manager, .gemini/skills/worktree-manager, .github/skills/worktree-manager and .opencode/skills/worktree-manager in your project.

What does Worktree Manager need to run?

Going by SKILL.md and its folder, Worktree Manager needs a shell for the scripts in its folder and the command-line tools its instructions call (jq, git, uv, go, osascript and gh). Our summary lists: Node.js; A Bash shell.

Does Worktree Manager access the network?

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

Is Worktree Manager safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Worktree Manager use?

No licence was found for Worktree Manager or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Worktree Manager use?

About 5.6k tokens (SKILL.md is roughly 22k 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 Worktree Manager?

Skills that share tags, products or a category with Worktree Manager: Finishing a Development Branch (obra/superpowers, 296k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Worktree Manager?

Wirasm (a GitHub user) maintains it in Wirasm/worktree-manager-skill, which has 139 GitHub stars. The repository was last updated on January 7, 2026.

Source: Wirasm/worktree-manager-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.