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.
npx agentmods add skills/vanillagreencom/kendex/worktreenpx skills add vanillagreencom/kendex --skill worktreegit clone --depth 1 https://github.com/vanillagreencom/kendexWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00020 | $0.01612 |
| Opus 5 | $0.00010 | $0.00806 |
| Sonnet 5 | $0.00004 | $0.00322 |
| Haiku 4.5 | $0.00002 | $0.00161 |
Grade A, and why
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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Worktree Management
Problem with this skill? Run
kendex report— it files to the owning repo automatically. Do not hand-file.
.agents/skills/worktree/scripts/worktree <command> [options]
Worktrees live at <parent-of-checkout>/.worktrees/<checkout-name>/{id}, outside the repo root. Every command's contract — flags, exit codes, failure semantics, recovery — is its --help; 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 |
path / exists |
Print / check the worktree path for an issue ID |
check |
Pre-create git state check (JSON: uncommitted, unpushed) |
push |
Push worktree branch with auto-rebase and pinned --force-with-lease; the rebase-map: contract for remapping pre-rebase SHAs is in 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 |
Policy-blocked rebase (cherry-pick replay fallback)
When an execution policy rejects top-level git rebase porcelain, never retry the porcelain and never substitute a raw --force push — add --replay to the guarded restack (create --help); the controls stay restack continue|skip|abort <ID>.
What ships with it
27 files 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.
- kendex.settings.toml.example 1.8 KB
- README.md 6.3 KB
- references/hooks.md 1.8 KB
- references/session-guard.md 1.7 KB
- scripts/lib/kendex-env.sh 8.8 KB runs code
- scripts/worktree 204 KB
- scripts/worktree-session-guard 17 KB
- tests/worktree_atomic_symlink_swap.sh 6.1 KB runs code
- tests/worktree_autorepair_hooks.sh 18 KB runs code
- tests/worktree_base_dir.sh 16 KB runs code
- tests/worktree_cleanup_merged_pr.sh 28 KB runs code
- tests/worktree_create_active_guard.sh 28 KB runs code
- tests/worktree_create_restack.sh 29 KB runs code
- tests/worktree_create_secondary_remote.sh 5.8 KB runs code
- tests/worktree_exclude_tracked_paths.sh 7.3 KB runs code
- tests/worktree_fix_links_unrestored.sh 8.6 KB runs code
- tests/worktree_for_branch.sh 2.7 KB runs code
- tests/worktree_help_dispatch.sh 5.2 KB runs code
- tests/worktree_materialized_links.sh 5.8 KB runs code
- tests/worktree_no_worktree_installs.sh 12 KB runs code
- tests/worktree_path_safety.sh 15 KB runs code
- tests/worktree_push_rebase.sh 19 KB runs code
- tests/worktree_remove.sh 37 KB runs code
- tests/worktree_restack_replay.sh 24 KB runs code
- tests/worktree_reuse_shadowed_tracked.sh 5.7 KB runs code
- tests/worktree_session_guard_lifecycle.sh 25 KB runs code
- tests/worktree_symlink_shadows_tracked.sh 18 KB runs code
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.
- today Changed 5edcf3d169d9
- 2d ago First seen · 72 lines · 20 tokens per session scan A 077c34ea4c6e
worktree is a skill published in the GitHub repository vanillagreencom/kendex (65 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,612 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-30.
Other skills, from other repositories
surf
Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.
prose-review
Review prose written for others -- user-facing docs, prompts for other LLMs, inline comments, docstrings, and other-facing messages -- for local jargon leakage, orphaned references, missing grounding, and audience or genre misfit.
text-search
Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.
repoprompt-tool-guidance-refresh
Refresh RepoPrompt tool guidance when the CLI/MCP surface changes. Tracks RepoPrompt CE (rpce-cli, the maintained target) across versions, and can diff the frozen Classic CLI (rp-cli) against CE. Uses /.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh to capture/diff --help and -l (tool…
xcodebuildmcp
Build/test Xcode projects via the XcodeBuildMCP MCP server using a local CLI wrapper for pi (no MCP support). Use when the user mentions Xcode, xcodebuild, iOS builds/tests, or XcodeBuildMCP.
agent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.