git-worktree

git-worktree is a skill for Claude Code from majesticlabs-dev/majestic-marketplace. It costs 39 tokens per session (696 once invoked), scanned A, original, no licence file.

A guide for managing Git worktrees, which let developers use separate directories for multiple branches at the same time.

In plain words
What is it for?
Use it to create isolated branch environments or clean up worktrees after development is complete.
Why use it?
It avoids repeatedly switching one working directory between branches during parallel feature or bug-fix work.

Skill for Claude Code

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

Part of the majestic-engineer plugin — 54 skills, 1 command, 1 agent shipped together

Good fit Use it to create isolated branch environments or clean up worktrees after development is complete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majesticlabs-dev/majestic-marketplace/git-worktree
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 majesticlabs-dev/majestic-marketplace --skill git-worktree
Clone the repo
git clone --depth 1 https://github.com/majesticlabs-dev/majestic-marketplace

Made for: Claude Code.

Or install majestic-engineer, the plugin that ships this one along with the rest of its 54 skills, 1 command, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/majesticlabs-dev/majestic-marketplace/git-worktree"><img src="https://agentmods.dev/badge/skills/majesticlabs-dev/majestic-marketplace/git-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 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.00039 $0.00696
Opus 5 $0.00019 $0.00348
Sonnet 5 $0.00008 $0.00139
Haiku 4.5 $0.00004 $0.00070

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

Security

Grade A, and why

git-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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/worktree-manager.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/majestic-engineer/skills/git-worktree/SKILL.md · 123 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 123 lines · 39 tokens per session scan A 08f685b47b9f

Subscribe to this mod's changes

git-worktree is a skill published in the GitHub repository majesticlabs-dev/majestic-marketplace (50 stars, last pushed yesterday), with no licence file. It adds 39 tokens to every session and 696 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

python-release

Handle Python SDK release, build, bump, packaging metadata, PyPI client pin, uv.lock, nox/build workflow, and publish verification changes. Use for Python release process work or dependency pin bumps; do not use for ordinary Python feature implementation.

ComposioHQ/composio · 53 tokens

release-notes

Generate and publish concise, evidence-based notes in the body of the latest existing GitHub Release. Use only when the user explicitly invokes $release-notes or explicitly asks to update the latest existing GitHub Release body. Do not invoke for general release planning, changelog, tag, or version tasks.

kenryu42/cc-safety-net · 65 tokens

git-commit-smart

Generates meaningful, conventional commit messages automatically. Use when committing code changes. Analyzes diff to create descriptive commits following best practices.

majiayu000/spellbook · 32 tokens

review-gate

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness.…

majiayu000/spellbook · 95 tokens

release-engineering

Plan and verify software releases with versioning, changelogs, release branches, feature flags, canaries, migration gates, rollback, deployment checks, and release readiness. Use when preparing a release, shipping a risky PR, coordinating app/backend/database rollout, recovering from a bad deploy, or defining release…

majiayu000/spellbook · 69 tokens