trove-worktree

trove-worktree is a skill for Claude Code from bravew/trove. It costs 28 tokens per session (438 once invoked), scanned A, original, MIT.

A Git worktree workflow for doing spikes, risky experiments, and broad refactors in a separate checkout. A worktree is another working folder linked to the same Git repository.

In plain words
What is it for?
It helps decide when to create a separate worktree, choose its path and branch name, preserve changes, and summarize what to keep or discard.
Why use it?
It keeps experimental edits and generated files away from the branch the user is currently working on. It also prevents cleanup from deleting user changes without confirmation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Part of the trove-workflow plugin — 24 skills shipped together

Good fit It helps decide when to create a separate worktree, choose its path and branch name, preserve changes, and summarize what to keep or discard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bravew/trove/trove-worktree
View source ↗ bravew/trove
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 bravew/trove --skill trove-worktree
Clone the repo
git clone --depth 1 https://github.com/bravew/trove

Made for: Claude Code.

Or install trove-workflow, the plugin that ships this one along with the rest of its 24 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bravew/trove/trove-worktree"><img src="https://agentmods.dev/badge/skills/bravew/trove/trove-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 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 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.00028 $0.00438
Opus 5.5 $0.00011 $0.00175
Sonnet 5.5 $0.00006 $0.00088
Haiku 4.5 $0.00003 $0.00044

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

Security

Grade A, and why

trove-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 20d 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.

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/trove-workflow/.agents/skills/trove-worktree/SKILL.md · 50 lines

What it actually says

Session Init

This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.

If a sibling skill in this plugin matches the request more directly, defer to it. See AGENTS.md (or docs/routing.md in the marketplace) for the per-plugin routing index.

trove-worktree

Spike or risky work goes in a worktree, never on the user's branch.

Workflow

  1. Check the current branch and worktree status.
  2. Propose a worktree path and branch name.
  3. Create the worktree before edits when the user approves or when the request already asked for a spike.
  4. Keep generated or experimental churn inside the worktree.
  5. When done, summarize what to keep and what to discard.

Decision Gate: worktree needed

Context: Experiments can dirty unrelated files or block the user's branch. Question: Should this work happen in a separate git worktree? Options:

  • A. Yes - create the worktree first.
  • B. No - continue in the current checkout.
  • C. Ask the user because the branch state is unclear. Default: A for spikes and risky cross-system refactors.

Cleanup

Do not remove a worktree without explicit confirmation. Preserve user changes.

Branch Naming

For a branch-only request, generate a local branch name from the user's request: feat/, fix/, chore/, docs/, refactor/, test/, or perf/ plus a short kebab-case description. Check whether it already exists and append -v2, -v3, and so on until unique. Create it locally only; push later through the ship workflow.

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. 20d ago Changed · +3 lines c7f01588d6c2
  2. 2mo ago First seen · 47 lines · 28 tokens per session scan A 44c6acadf8b1

Subscribe to this mod's changes

trove-worktree is a skill published in the GitHub repository bravew/trove (11 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 438 once invoked, about $0.0001 per session on Opus 5.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-11.

Related

trove-worktree compared with skills from other repositories

trove-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trove-worktreebravew/troveSkill11todayMITA28Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k3d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1kyesterdayMITA51Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex