git-worktrees

git-worktrees is a skill for Claude Code, Codex from NeoLabHQ/context-engineering-kit. It costs 50 tokens per session (10,084 once invoked), scanned C, original, GPL-3.0.

A Git worktree guide for keeping multiple branches in separate working folders. A worktree is another directory connected to the same Git repository.

In plain words
What is it for?
Working on several branches at once, reviewing pull requests alongside development, testing changes in isolation, and comparing branch implementations.
Why use it?
It lets you switch contexts, review changes, test branches, or compare implementations without repeatedly stashing work.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Working on several branches at once, reviewing pull requests alongside development, testing changes in isolation, and comparing branch implementations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neolabhq/context-engineering-kit/git-worktrees
About the project

Context Engineering Kit is a collection of skills, agents, hooks, instructions, commands, and plugins that shape how coding agents use context and carry out development work. It is for developers using Claude Code and other supported coding agents who want more predictable results. The catalogue entries are components from this collection.

NeoLabHQ/context-engineering-kit · 1,866 stars · on GitHub · neolab.gitbook.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NeoLabHQ/context-engineering-kit --skill git-worktrees
Clone the repo
git clone --depth 1 https://github.com/NeoLabHQ/context-engineering-kit

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-worktrees

README.md
[![agentmods](https://agentmods.dev/badge/skills/neolabhq/context-engineering-kit/git-worktrees/github.svg)](https://agentmods.dev/skills/neolabhq/context-engineering-kit/git-worktrees)
Your own site
<a href="https://agentmods.dev/skills/neolabhq/context-engineering-kit/git-worktrees"><img src="https://agentmods.dev/badge/skills/neolabhq/context-engineering-kit/git-worktrees/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-worktrees

Your own site · 80×15
<a href="https://agentmods.dev/skills/neolabhq/context-engineering-kit/git-worktrees"><img src="https://agentmods.dev/badge/skills/neolabhq/context-engineering-kit/git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin unknown 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.00050 $0.10084
Opus 5.5 $0.00020 $0.04034
Sonnet 5.5 $0.00010 $0.02017
Haiku 4.5 $0.00005 $0.01008

Measured 3mo ago against content hash 483019f2a6d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git-worktrees scanned grade C with 1 finding 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 3mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| Using `rm -rf` to delete worktree | Always use `git worktree remove`, then `git worktree prune` if needed |
antigravity/skills/git-worktrees/SKILL.md · 1,363 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 3mo ago First seen · 1,363 lines · 50 tokens per session scan C 483019f2a6d2

Subscribe to this mod's changes

git-worktrees is a skill published in the GitHub repository NeoLabHQ/context-engineering-kit (1,866 stars, last pushed 3mo ago), licensed GPL-3.0. It adds 50 tokens to every session and 10,084 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

git-worktrees compared with skills from other repositories

git-worktrees next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktreesNeoLabHQ/context-engineering-kitSkill1.9k3mo agoGPL-3.0C50Claude Code, Codex
skills-updatelouisbrulenaudet/monorepo-templateSkill197d agoApache-2.0A75Claude Code, Codex
changesetlouisbrulenaudet/monorepo-templateSkill197d agoApache-2.0A87Claude Code, Codex
chinese-git-workflowLeodorareluctant259/superpowers-zhSkill51mo agoMITA33Claude Code
chinese-commit-conventionsLeodorareluctant259/superpowers-zhSkill51mo agoMITA28Claude Code
ainb-fleet:ainb-spawnstevengonsalvez/agents-in-a-boxSkill275d agoMITC107Claude Code
roo-conflict-resolutionzgsm-ai/costrictSkill4.5k2mo agoApache-2.0A56Claude Code, Codex