team-worktree

team-worktree is a skill for Claude Code, Codex from bostonaholic/team. It costs 25 tokens per session (334 once invoked), scanned A, original, MIT.

A git workflow for creating an isolated worktree and branch for each repository involved in a task. A worktree is a separate working directory connected to the same git repository.

In plain words
What is it for?
Use it to prepare isolated directories and branches before implementing a planned feature, including multi-repository work.
Why use it?
It keeps feature changes separate from the main working directory and supports tasks that touch more than one repository.

Skill for Claude CodeCodex

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

Part of the team plugin — 16 skills, 13 agents, 2 hooks shipped together

Good fit Use it to prepare isolated directories and branches before implementing a planned feature, including multi-repository work.

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

Made for: Claude Code, Codex.

Or install team, the plugin that ships this one along with the rest of its 16 skills, 13 agents, 2 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bostonaholic/team/team-worktree"><img src="https://agentmods.dev/badge/skills/bostonaholic/team/team-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 334 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.00025 $0.00334
Opus 5.5 $0.00010 $0.00134
Sonnet 5.5 $0.00005 $0.00067
Haiku 4.5 $0.00003 $0.00033

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

Security

Grade A, and why

team-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 8d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/add-worktree.sh, scripts/detect-worktree.sh, scripts/run-teardown.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.

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.

skills/team-worktree/SKILL.md · 30 lines

What it actually says

Team Worktree

Before finalizing prose you author, read the writing standards.

Create one isolated git worktree per involved repo, all on branch <id>, without touching any main working tree: the home repo in single-repo mode (default), or every repo in docs/plans/<id>/4-repos.md when it exists.

Core contracts

  • Detect a linked checkout with git rev-parse --git-dir and git rev-parse --git-common-dir.
  • Non-default branch in an existing linked checkout → skip worktree creation for this repo.
  • Default branch → report and stop.
  • Single-repo: git worktree add .claude/worktrees/<branch>. Each 4-repos.md entry: git -C <repo> worktree add .claude/worktrees/<branch>.
  • Record every created path under ## Worktrees in 4-repos.md.

Procedure references

Read each reference completely when reaching it, in order; later stages depend on earlier state and gates.

  1. Input
  2. Detect mode
  3. Detect existing worktree
  4. Execution
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. 8d ago Changed · -4 lines 53b515f09f2c
  2. 1mo ago Changed · -1 lines 5fb0086c9167
  3. 1mo ago Changed · -18 tokens per session 9345aa78e601
  4. 1mo ago Changed · -1 lines 4db27f4dcbbe
  5. 1mo ago Changed · +3 lines 427342a0c6f5
  6. 1mo ago Changed · -228 lines · -56 tokens per session 2c9996a0130b
  7. 1mo ago First seen · 261 lines · 99 tokens per session scan A df1974454eae

Subscribe to this mod's changes

team-worktree is a skill published in the GitHub repository bostonaholic/team (11 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 334 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-03.