kendex: Skill for Claude Code

.agents/skills/worktree/SKILL.md

worktree is a skill for Claude Code from vanillagreencom/kendex. It costs 20 tokens per session (2,463 once invoked), scanned C, original, MIT.

A tool for managing Git worktrees, which are separate working folders connected to the same repository. It can create, inspect, list, repair, restack, and remove these folders and their branches.

In plain words
What is it for?
Use it to create a work folder for an issue, check whether one exists, list worktrees, recover paused work, remove finished work, and clean up branches that have been merged.
Why use it?
It keeps separate coding tasks isolated so changes for one issue do not interfere with another.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is vanillagreencom/kendex's own configuration. It tells Claude Code how to work on kendex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kendex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vanillagreencom/kendex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vanillagreencom/kendex/main/.agents/skills/worktree/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vanillagreencom/kendex

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vanillagreencom/kendex/worktree"><img src="https://agentmods.dev/badge/skills/vanillagreencom/kendex/worktree.svg" alt="Reviewed on agentmods" width="80" 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 2,463 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.00020 $0.02463
Opus 5.5 $0.00008 $0.00985
Sonnet 5.5 $0.00004 $0.00493
Haiku 4.5 $0.00002 $0.00246

Measured 5d ago against content hash 4ca5dafe3cff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

worktree 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 5d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/lib/base-reading.sh, scripts/lib/help.sh, scripts/lib/kendex-env.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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- kendex:project-instructions:start -->
.agents/skills/worktree/SKILL.md · 100 lines

How it starts

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

Project Instructions

Problems with a kendex-owned skill go through kendex report; check ownership in the file first.

Worktree Management

.agents/skills/worktree/scripts/worktree <command> [options]

Worktrees live at <parent-of-checkout>/.worktrees/<checkout-name>/{id}, outside the repo root. A hosted lane's worktree lives at one path beside its clone instead, so a compile cache keyed by absolute source path hits across lanes: create --help, --hosted. Every command's contract is its --help: flags, exit codes, failure semantics, recovery. The top-level worktree --help carries the command index, path and issue-ID rules, configuration variables, and setup-path hardening.

Commands

Command Description
create Claim a new issue worktree, a new-work claim, not a discovery command: existing ownership exits 75, and owned work is inspected or monitored, never given a second implementer. Reuse and conflict recovery: create --help
restack Guardedly continue, skip, or abort a tool-created paused restack
list List all worktrees
remove Remove worktree, clean symlinks, prune branches
cleanup Remove worktrees whose branches are merged; --targets-only prunes build output instead, keeping every worktree and branch
path / exists Print / check the worktree path for an issue ID; path --hosted prints the hosted lane path
merged Print the commit the issue tree's pull request merged as, asking about the branch that tree has checked out; exit 1 when none did, 2 when the lookup could not answer, a detached tree included (merged --help)
check Pre-create git state check (JSON: uncommitted, unpushed)
push Push worktree branch to remote. Publication, rebase, force-with-lease and rebase-map: contracts: push --help
fix-links / repair-links Restore configured symlinks; repair-links is the git-hook-driven variant that never destroys untracked data
codex-setup / codex-branch / codex-cleanup, claude-setup / claude-cleanup App-created worktree hooks. Installation wiring: references/hooks.md

Read the full file on GitHub · 100 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. 5d ago Changed · +8 lines 4ca5dafe3cff
  2. 20d ago Changed e7624ba2458e
  3. 21d ago Changed · -1 lines b10c11b66fdc
  4. 22d ago Changed 759c35f91c4f
  5. 23d ago Changed · +2 lines 31a1da11b585
  6. 29d ago Changed · +2 lines b595f6f8402d
  7. 1mo ago Changed 8c5afad58df0
  8. 1mo ago Changed 36306aece3df
  9. 1mo ago Changed fd6f7f4ff7fc
  10. 1mo ago First seen · 89 lines · 20 tokens per session scan C d07ce937f79a

Subscribe to this mod's changes

worktree is a skill published in the GitHub repository vanillagreencom/kendex (87 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 2,463 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories