using-git-worktrees

using-git-worktrees is a skill for Claude Code, Codex from trinhhaox/ag-kit. It costs 35 tokens per session (1,344 once invoked), scanned A, original, no licence file.

A workflow for using Git worktrees, which let you check out multiple branches in separate folders from one repository.

In plain words
What is it for?
Use it before feature work or implementation plans that need a separate working directory.
Why use it?
It keeps feature work isolated from the current working files and reduces branch-switching conflicts.

Skill for Claude CodeCodex

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

Good fit Use it before feature work or implementation plans that need a separate working directory.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trinhhaox/ag-kit/using-git-worktrees"><img src="https://agentmods.dev/badge/skills/trinhhaox/ag-kit/using-git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,344 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 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.00035 $0.01344
Opus 5.5 $0.00014 $0.00538
Sonnet 5.5 $0.00007 $0.00269
Haiku 4.5 $0.00003 $0.00134

Measured 1mo ago against content hash de9dcde34840, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 219 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

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. 1mo ago First seen · 219 lines · 35 tokens per session scan A de9dcde34840

Subscribe to this mod's changes

using-git-worktrees is a skill published in the GitHub repository trinhhaox/ag-kit (1 stars, last pushed 1mo ago), with no licence file. It adds 35 tokens to every session and 1,344 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

Other skills, from other repositories

resolve-pr-comments

This skill should be used when user asks to "address PR comments", "resolve PR feedback", "handle review comments", "fix PR issues", "respond to PR review", or explicitly invokes "resolve-pr-comments".

fcakyon/claude-codex-settings · 47 tokens

review-pr

This skill should be used when user asks to "review a PR", "review pull request", "review this pr", "code review this PR", "check PR.

fcakyon/claude-codex-settings · 36 tokens

gitlab-create-mr

Create GitLab merge requests from a local branch using a reviewable workflow for branch checks, GitLab host detection, diff analysis, title and description writing, and glab mr create. Use when opening a GitLab merge request, drafting or improving merge request copy, preparing a branch for review, or working across…

flc1125/skills · 79 tokens

code-review

Request or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding.

flc1125/skills · 49 tokens

pr-review-fix-pipeline

Reviews a PR and applies fixes for the non-controversial findings: review, fix, test, and commit in one pass. Writes code, so use it only on feature branches where automatic edits are fine. Trigger on: "review and fix PR", "auto-fix the PR", "review PR #X and fix issues", "run the review pipeline".

jerseycheese/agent-skills · 81 tokens

pre-pr-review

Review the current branch before creating a pull request. Use this skill whenever the user says 'review my changes', 'review this branch', 'pre-PR review', 'check before I merge', 'is this ready to merge', 'review before PR', or 'code review'. Also triggers on 'check my work' or 'anything I missed?' when there are…

telus-labs/stagecraft · 124 tokens