meta-worktree

meta-worktree is a skill for Claude Code from gitkb/meta. It costs 61 tokens per session (5,018 once invoked), scanned A, original, MIT.

Instructions for creating and managing isolated Git worktrees across multiple repositories. A worktree is a separate working copy that lets changes be tested without disturbing another checkout.

In plain words
What is it for?
It helps prepare separate workspaces for code changes, pull-request work, and testing a specific version.
Why use it?
Isolation helps continue a pull request or test a tag or commit without mixing changes into the main working copy.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../...

Part of the meta plugin — 6 skills, 1 MCP server shipped together

Good fit It helps prepare separate workspaces for code changes, pull-request work, and testing a specific version.

Compare 6 skills from other repositories ↓
View source ↗ gitkb/meta
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/gitkb/meta
agentmods
npx agentmods add skills/gitkb/meta/meta-worktree

Made for: Claude Code.

Or install meta, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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 meta-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/gitkb/meta/meta-worktree/github.svg)](https://agentmods.dev/skills/gitkb/meta/meta-worktree)
Your own site
<a href="https://agentmods.dev/skills/gitkb/meta/meta-worktree"><img src="https://agentmods.dev/badge/skills/gitkb/meta/meta-worktree/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 meta-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/gitkb/meta/meta-worktree"><img src="https://agentmods.dev/badge/skills/gitkb/meta/meta-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,018 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.
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.00061 $0.05018
Opus 5.5 $0.00024 $0.02007
Sonnet 5.5 $0.00012 $0.01004
Haiku 4.5 $0.00006 $0.00502

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

Security

Grade A, and why

meta-worktree 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 12d 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.

claude-plugin/skills/meta-worktree/SKILL.md · 392 lines

How it starts

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

Meta Worktree Skill

A worktree set is a named group of git worktrees, one per repo, on one branch by default. It lets a change span several repos without touching the primary checkout, and lets several tasks run side by side.

The repo names below (backend, frontend, api) are examples; <repo>, <branch> and <tag> stand for a repo, branch and tag of yours. meta -A --json project list lists your repos and their tags. A repo of a nested meta repo needs -r (its path from the nearest .meta.yaml) or -A (its path from the workspace root).

.worktrees/
  auth-fix/           # set name; also the default branch name
    backend/          # git worktree of the primary checkout's backend/
    frontend/

When to Use Worktrees

Every change gets its own worktree set, even a one-line fix in one repo. The primary checkout is pull-only: it stays on the default branch and only meta -r git pull --ff-only (which fast-forwards every repo) and meta -r git update (which clones the missing ones) change it, after a PR lands or at the start of a task. Never commit, switch branches or leave edits there.

Read-only work (reading code, searching, answering questions) may stay in the primary checkout.

Create one set per task, with only the repos it touches, and give each set its own build output (for Cargo, a CARGO_TARGET_DIR of its own or the set's own target/): builds shared between sets silently reuse each other's results. Remove a set once the work is pushed; before a session ends, remove every set it created. Inside a set, meta git worktree commands find sets where the checkout the set was made from keeps them, so running them there acts on the workspace's sets.

Creating Worktrees

Run these from the workspace root. Use -r when a repo you name, or one it depends on, is nested in a meta repo, and -A when the target is at another nesting level than the folder you are in: without them a set holds only this level's repos. -r follows a dependency written as a repo's path from the workspace root, across nesting levels too, and one written as a path or a capability (provides) of the dependent's own .meta.yaml. It doesn't resolve a capability or a name from another nesting level (unless that name is also the repo's path from the root), or a project name whose path: differs from it. Started inside a nested meta repo, -r reaches only that repo's tree. Each dependency the set won't hold that meta can name (one repo is or provides it) is named in a warning that ends with the --repo that adds it, spelled as it works from the folder you ran in (a repo of that folder's tree by its path from there, any other with -A and its path from the root), and says to add -r or -A where that is what it takes: follow it as written (with --strict the warning is an error, and nothing is made). A dependency nothing or several repos provide keeps its own warning. --no-deps leaves dependencies out without a word.

Read the full file on GitHub · 392 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. 12d ago Changed · +13 tokens per session 411da1f4bf8d
  2. 15d ago First seen · 392 lines · 48 tokens per session scan A 219cd6276dc2

Subscribe to this mod's changes

meta-worktree is a skill published in the GitHub repository gitkb/meta (20 stars, last pushed 8d ago), licensed MIT. It adds 61 tokens to every session and 5,018 once invoked, about $0.0002 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-11-15.

Related

meta-worktree compared with skills from other repositories

meta-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
meta-worktreegitkb/metaSkill208d agoMITA61Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k3d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k11d agoMITA39Codex