git-worktrees

git-worktrees is a skill for Claude Code from vikisingh23/neuraforge-ai. It costs 0 tokens per session (446 once invoked), scanned A, original, Apache-2.0.

A Git workflow that puts each feature in its own isolated working folder and branch. Git is a tool for tracking code changes, and a worktree lets several branches use the same project files separately.

In plain words
What is it for?
It helps developers create feature branches, install dependencies, run existing tests, prepare changes for a pull request, and remove the temporary worktree after merging.
Why use it?
It keeps unfinished changes away from the main branch and makes it easier to verify that work starts from a clean, passing project.

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 git worktree add ../feature-${feature_name} -b feature/${feature_name}.

Part of the neuraforge-ai plugin — 39 skills, 22 MCP servers shipped together

Good fit It helps developers create feature branches, install dependencies, run existing tests, prepare changes for a pull request, and remove the temporary worktree after merging.

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/vikisingh23/neuraforge-ai
agentmods
npx agentmods add skills/vikisingh23/neuraforge-ai/git-worktrees

Made for: Claude Code.

Or install neuraforge-ai, the plugin that ships this one along with the rest of its 39 skills, 22 MCP servers.

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/vikisingh23/neuraforge-ai/git-worktrees/github.svg)](https://agentmods.dev/skills/vikisingh23/neuraforge-ai/git-worktrees)
Your own site
<a href="https://agentmods.dev/skills/vikisingh23/neuraforge-ai/git-worktrees"><img src="https://agentmods.dev/badge/skills/vikisingh23/neuraforge-ai/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/vikisingh23/neuraforge-ai/git-worktrees"><img src="https://agentmods.dev/badge/skills/vikisingh23/neuraforge-ai/git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 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.00000 $0.00446
Opus 5.5 $0.00000 $0.00178
Sonnet 5.5 $0.00000 $0.00089
Haiku 4.5 $0.00000 $0.00045

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

Security

Grade A, and why

git-worktrees 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 2mo 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.

skills/git-worktrees/SKILL.md · 69 lines

What it actually says

Git Worktrees — Isolated Feature Development

When This Activates

Before starting any feature implementation (after architecture approval), create an isolated worktree so the main branch stays clean.

Workflow

# 1. Create worktree on a new branch
git worktree add ../feature-${feature_name} -b feature/${feature_name}

# 2. Move into it
cd ../feature-${feature_name}

# 3. Install dependencies (verify clean baseline)
npm install  # or dotnet restore, etc.

# 4. Run existing tests (must pass before any changes)
npm test     # or dotnet test

# 5. Develop in isolation — main branch untouched
# ... all changes happen here ...

# 6. When done — merge or create PR
git push -u origin feature/${feature_name}
# Create MR/PR from this branch

# 7. Clean up worktree
cd ..
git worktree remove feature-${feature_name}

Rules

  1. Never develop on main/master — always create a worktree
  2. Verify clean baseline — tests must pass BEFORE you write any code
  3. One feature per worktree — don't mix concerns
  4. Clean up after merge — remove worktree once PR is merged

When to Skip

  • Single-file hotfix (< 10 lines)
  • Documentation-only changes
  • Config changes that don't affect code

For Agents

When forge, react-forge, or fullstack-orchestrator starts implementation:

# Check if we're on main
CURRENT=$(git branch --show-current)
if [ "$CURRENT" = "main" ] || [ "$CURRENT" = "master" ]; then
  git worktree add "../wt-${FEATURE}" -b "feature/${FEATURE}"
  cd "../wt-${FEATURE}"
  echo "Working in isolated worktree: $(pwd)"
fi

After completion:

git add -A
git commit -m "feat: ${FEATURE_DESCRIPTION}"
git push -u origin "feature/${FEATURE}"
# Return to original directory
cd -
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. 2mo ago First seen · 69 lines · 0 tokens per session scan A f0f34c48b73c

Subscribe to this mod's changes

git-worktrees is a skill published in the GitHub repository vikisingh23/neuraforge-ai (4 stars, last pushed 16d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 446 tokens. 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-worktrees compared with skills from other repositories

git-worktrees next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktreesvikisingh23/neuraforge-aiSkill416d agoApache-2.0A0Claude Code
address-reviewfpindej/netrockSkill2354d agoMITA14Claude Code
releaseAterDev/Perigon.CLISkill543d agoApache-2.0A34Claude Code, Codex
git-workflowmodelcontextprotocol/csharp-sdkSkill4.6kyesterdaynoneA19Claude Code, Codex
cratis-commits-and-pull-requestsCratis/AISkill4yesterdayMITA46Claude Code, Codex
cratis-orchestration-merge-gatesCratis/AISkill4yesterdayMITA46Claude Code, Codex
maintain-discatsharpAiko-IT-Systems/DisCatSharpSkill140yesterdaynoneA69Codex