git-worktree-manager

git-worktree-manager is a skill for Claude Code, Codex from seaworld008/Commonly-used-high-value-skills. It costs 30 tokens per session (1,254 once invoked), scanned A, original, MIT.

A Git worktree manager for keeping several working copies of one repository separate. A worktree is an additional checkout connected to the same Git history.

In plain words
What is it for?
It helps create, switch, configure, list, and safely remove worktrees for separate features or tasks.
Why use it?
It prevents parallel coding sessions from overwriting each other and reduces clashes between local servers, settings, and secrets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../project-feature-auth -b feature/auth.

Good fit It helps create, switch, configure, list, and safely remove worktrees for separate features or tasks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills
agentmods
npx agentmods add skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-worktree-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager/github.svg)](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager)
Your own site
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-worktree-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/git-worktree-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 30
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 64
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 65
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 111
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01254
Opus 5.5 $0.00012 $0.00502
Sonnet 5.5 $0.00006 $0.00251
Haiku 4.5 $0.00003 $0.00125

Measured 11d ago against content hash 45cb9f144569, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-worktree-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

openclaw-skills/git-worktree-manager/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Worktree Manager

Tier: POWERFUL
Category: Engineering
Domain: Parallel Development & Branch Isolation

Overview

Use these manual templates to isolate branches, runtime configuration and local services across worktrees.

Core Capabilities

  • Worktree lifecycle — create, list, switch and clean up worktrees
  • Port allocation — select unused ports for the services each worktree runs
  • Environment setup — use project examples or managed test configuration
  • Docker Compose overrides — adapt the port mapping for each stack
  • Conflict Prevention — detect and warn about shared resources, database names, and API endpoints
  • Cleanup & Pruning — safe removal with stale branch detection and uncommitted work warnings

When to Use This Skill

  • Running multiple Claude Code sessions on different features simultaneously
  • Working on a hotfix while a feature branch has uncommitted work
  • Reviewing a PR while continuing development on your branch
  • Parallel CI/testing against multiple branches
  • Monorepo development with isolated package changes

Worktree Creation Workflow

Step 1: Create Worktree

# Create worktree for a new feature branch
git worktree add ../project-feature-auth -b feature/auth

# Create worktree from an existing remote branch
git worktree add ../project-fix-123 origin/fix/issue-123

# Create worktree with tracking
git worktree add --track -b feature/new-api ../project-new-api origin/main

Step 2: Environment Setup

Prepare runtime configuration only for a task that needs it.

  1. Use the project's example configuration or inject scoped test credentials through its existing mechanism. Copy real credentials only when the user explicitly authorizes the files and destination.

  2. If execution needs dependencies, use the project's package manager and locked install command within the worktree.

  3. For local services, check availability and allocate distinct ports. Example assignments:

    Main worktree:     localhost:3000 (dev), :5432 (db), :6379 (redis)
    Worktree 1:        localhost:3010 (dev), :5442 (db), :6389 (redis)
    Worktree 2:        localhost:3020 (dev), :5452 (db), :6399 (redis)
    

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed 45cb9f144569
  2. 12d ago Changed · -11 lines 18bc86ccc542
  3. 2mo ago Changed · -28 tokens per session a7659ca434d8
  4. 2mo ago First seen · 173 lines · 58 tokens per session scan A 4e9cf18ab41a

Subscribe to this mod's changes

git-worktree-manager is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (75 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,254 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

git-worktree-manager compared with skills from other repositories

git-worktree-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktree-managerseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA30Claude Code, Codex
upgrading-core-dependenciesJetBrains/thinkrailSkill8.5kyesterdayApache-2.0A59Claude Code, Codex
shipping-a-prJetBrains/thinkrailSkill8.5kyesterdayApache-2.0A49Claude Code, Codex
reviewing-a-prJetBrains/thinkrailSkill8.5kyesterdayApache-2.0A56Claude Code, Codex
omh-github-issue-intakerlaope/oh-my-hermesSkill6.2ktodayMITA25Claude Code
omh-commit-pr-authoringrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
omh-git-workflowrlaope/oh-my-hermesSkill6.2ktodayMITA23Claude Code