worktree-setup

worktree-setup is a skill for Claude Code from LeeJuOh/claude-code-zero. It costs 97 tokens per session (2,962 once invoked), scanned C, original, MIT.

A setup skill for worktree-plus, a tool for managing separate working folders for Git branches.

In plain words
What is it for?
It is for viewing or changing worktree settings and creating the files that control copied or linked ignored files.
Why use it?
It helps keep branch settings consistent and decides which ignored files should be copied or linked into each working folder.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the worktree-plus plugin — 1 skill shipped together

Good fit It is for viewing or changing worktree settings and creating the files that control copied or linked ignored files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leejuoh/claude-code-zero/worktree-setup
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 LeeJuOh/claude-code-zero --skill worktree-setup
Clone the repo
git clone --depth 1 https://github.com/LeeJuOh/claude-code-zero

Made for: Claude Code.

Or install worktree-plus, the plugin that ships this one along with the rest of its 1 skill.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/worktree-setup/github.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/worktree-setup)
Your own site
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/worktree-setup"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/worktree-setup/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 worktree-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/worktree-setup"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/worktree-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,962 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.
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.00097 $0.02962
Opus 5.5 $0.00039 $0.01185
Sonnet 5.5 $0.00019 $0.00592
Haiku 4.5 $0.00010 $0.00296

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

Security

Grade C, and why

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

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

When the user wants to link a per-branch dependency directory (`node_modules/`, `.venv/`, `target/`), don't refuse — explain and let them choose. A symlink makes every worktree share one directory, so an install on a bra
plugins/worktree-plus/skills/worktree-setup/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

worktree-plus Setup

Two jobs live here, and a user usually wants one of them:

  • Settings — git config under the worktreeplus.* namespace (plugin-custom) plus one worktree.guessRemote (git-native). No env vars. Start at Settings.
  • Which gitignored files follow a worktree — the .worktreeinclude (copy) and .worktreelink (symlink) files at the repo root. Start at Set up .worktreeinclude / .worktreelink.

If the user's ask is vague ("set up worktree-plus"), show the current settings first — it's cheap and orients both of you — then offer the include/link scan.

Settings

Key Default Scope guidance
worktreeplus.baseBranch HEAD Per-repo typical (different repos have different default branches)
worktreeplus.branchPrefix worktree- Global typical (personal naming convention); per-repo for team rules
worktreeplus.dirBase .claude/worktrees Per-repo for a relative path; global works for an absolute one
worktree.guessRemote true (plugin override; git default is false) Global typical

View current settings

Always start by showing what's active. Run:

git config --get-regexp '^worktreeplus\.|^worktree\.guessRemote'

If nothing prints, the user is on defaults. State that explicitly — don't leave them guessing.

For layered view (local vs global vs system):

git config --local  --get-regexp worktreeplus
git config --global --get-regexp worktreeplus

Change a setting

Ask scope before writing. "Just this repo" (--local, default) vs "all repos for me" (--global).

git config [--local|--global] worktreeplus.baseBranch develop
git config [--local|--global] worktreeplus.branchPrefix "feat-"
git config [--local|--global] worktreeplus.dirBase ".worktrees"
git config [--local|--global] worktree.guessRemote false

Writes take effect on the next EnterWorktree / claude -w. Existing worktrees are not affected.

Read the full file on GitHub · 191 lines

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 Changed · -3 lines 1db034ca2ec1
  2. 2mo ago Changed 006d45b4af06
  3. 2mo ago First seen · 194 lines · 97 tokens per session scan C 253361b531d6

Subscribe to this mod's changes

worktree-setup is a skill published in the GitHub repository LeeJuOh/claude-code-zero (52 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 2,962 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

worktree-setup compared with skills from other repositories

worktree-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
worktree-setupLeeJuOh/claude-code-zeroSkill52yesterdayMITC97Claude Code
deployment-patternsaffaan-m/ECCSkill314kyesterdayMITA41Claude Code, Kiro
publish-siteNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
codexNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
ecc-contribution-reviewaffaan-m/ECCSkill314kyesterdayMITA45Claude Code, Codex
caveman-commitJuliusBrussee/cavemanSkill124kyesterdayApache-2.0A38Claude Code
agent-merge-conflict-arbiterNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex