worktree-setup

worktree-setup is a skill for Claude Code, Codex from dinglebear-ai/dendrite. It costs 231 tokens per session (3,528 once invoked), scanned D, original, AGPL-3.0.

A Git worktree setup workflow for creating an isolated working directory before implementing a coding plan.

In plain words
What is it for?
Use it before creating a worktree or starting a plan-driven implementation process.
Why use it?
It helps keep planned changes separated from the current checkout and applies a consistent project workflow before coding begins.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present.

Part of the vibin plugin — 40 skills, 1 command shipped together

Good fit Use it before creating a worktree or starting a plan-driven implementation process.

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

Made for: Claude Code, Codex.

Or install vibin, the plugin that ships this one along with the rest of its 40 skills, 1 command.

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/dinglebear-ai/dendrite/worktree-setup.svg)](https://agentmods.dev/skills/dinglebear-ai/dendrite/worktree-setup)
Your own site
<a href="https://agentmods.dev/skills/dinglebear-ai/dendrite/worktree-setup"><img src="https://agentmods.dev/badge/skills/dinglebear-ai/dendrite/worktree-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 231 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00231 $0.03528
Opus 5 $0.00115 $0.01764
Sonnet 5 $0.00046 $0.00706
Haiku 4.5 $0.00023 $0.00353

Measured 3d ago against content hash a734bddf5ed4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade D, and why

worktree-setup scanned grade D with 2 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 3d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (references/minimal-worktree-setup.sh, scripts/worktree-new.sh, scripts/worktree-rm.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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Note: `~/.claude/settings.local.json` is in `$HOME`, already shared by all

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`rm -rf` a worktree (that bypasses git's bookkeeping) and never destructive-clean
plugins/vibin/skills/worktree-setup/SKILL.md · 247 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

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. 3d ago First seen · 247 lines · 231 tokens per session scan D a734bddf5ed4

Subscribe to this mod's changes

worktree-setup is a skill published in the GitHub repository dinglebear-ai/dendrite (1 stars, last pushed 10d ago), licensed AGPL-3.0. It adds 231 tokens to every session and 3,528 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). 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

spec-kitty-git-workflow

Understand how Spec Kitty manages git: what git operations Python handles automatically, what agents must do manually, worktree lifecycle, auto-commit behavior, merge execution, and the safe-commit pattern. Triggers: "how does spec-kitty use git", "worktree management", "auto-commit", "who commits what", "git…

Priivacy-ai/spec-kitty · 125 tokens

ccmanager-config

Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global /.config/ccmanager/config.json. Use when someone wants ccmanager to launch a different agent CLI (codex, gemini, cursor-agent, copilot…), add command presets, run a command on session state changes or worktree…

kbwo/ccmanager · 123 tokens

create-pr

This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or explicitly invokes "create-pr".

fcakyon/claude-codex-settings · 49 tokens

spk-admin-git-workflow

Operate Spec Kitty git workflows, worktrees, safe commits, merge preflights, stale state checks, and recovery.

Priivacy-ai/spec-kitty · 32 tokens

spk-gate-merge

Merge an accepted Spec Kitty mission safely, preserving git invariants, mission state, and post-merge follow-through.

Priivacy-ai/spec-kitty · 30 tokens

commit-staged

This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".

fcakyon/claude-codex-settings · 46 tokens