Using Git Worktrees

Using Git Worktrees is a skill for Claude Code, Codex from ankur-gaurav161418/omniforge. It costs 20 tokens per session (72 once invoked), scanned A, original, MIT.

A workflow for creating temporary, separate copies of a Git project for feature work. A Git worktree lets multiple branches use different folders at the same time.

In plain words
What is it for?
Use it to isolate feature development or run parallel work without changing the main project folder.
Why use it?
It keeps experimental or parallel changes separate from the main workspace state.

Skill for Claude CodeCodex

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

Good fit Use it to isolate feature development or run parallel work without changing the main project folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ankur-gaurav161418/omniforge/using-git-worktrees
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 ankur-gaurav161418/omniforge --skill using-git-worktrees
Clone the repo
git clone --depth 1 https://github.com/ankur-gaurav161418/omniforge

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 Using Git Worktrees

README.md
[![agentmods](https://agentmods.dev/badge/skills/ankur-gaurav161418/omniforge/using-git-worktrees.svg)](https://agentmods.dev/skills/ankur-gaurav161418/omniforge/using-git-worktrees)
Your own site
<a href="https://agentmods.dev/skills/ankur-gaurav161418/omniforge/using-git-worktrees"><img src="https://agentmods.dev/badge/skills/ankur-gaurav161418/omniforge/using-git-worktrees.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 72 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.00020 $0.00072
Opus 5 $0.00010 $0.00036
Sonnet 5 $0.00004 $0.00014
Haiku 4.5 $0.00002 $0.00007

Measured 7d ago against content hash 2ae96ae979b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Using 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 7d 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/using-git-worktrees/SKILL.md · 10 lines

What it actually says

Using Git Worktrees Skill

Leverage Git worktrees to create isolated parallel environments for subagent execution and feature branches.

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. 7d ago First seen · 10 lines · 20 tokens per session scan A 2ae96ae979b5

Subscribe to this mod's changes

Using Git Worktrees is a skill published in the GitHub repository ankur-gaurav161418/omniforge (0 stars, last pushed 3d ago), licensed MIT. It adds 20 tokens to every session and 72 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

work

Dispatch a tracker ticket into an isolated worktree and drive it autonomously to an open pull request, then stop for review. Pass interactive to brainstorm the ticket with a human before planning it, or a sentence of editorial direction as a rider. Use when asked to work a ticket end-to-end.

mikestankavich/claude-ship-workflow · 0 tokens

batch

Dispatch a night's batch of Todo tickets — one worktree and one pull request each — and leave a morning summary. Run explicitly; never inferred.

mikestankavich/claude-ship-workflow · 31 tokens

cleanup

Clean up after a merged pull request — return to the base branch, remove the worktree, delete the branch, sweep other stale branches and worktrees, and report tracker state. Use after a merge or whenever asked what is left over.

mikestankavich/claude-ship-workflow · 0 tokens

merge

Merge the reviewed pull request for the current branch, then hand straight off to cleanup. A sentence of editorial direction alongside the green light is read as a rider. Use when a human green-lights an open PR.

mikestankavich/claude-ship-workflow · 0 tokens

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens