aio-worktree

aio-worktree is a skill for Claude Code from aiocean/claude-plugins. It costs 21 tokens per session (1,839 once invoked), scanned A, original, MIT.

A workflow for managing Git worktrees, which are separate working directories linked to one repository. It supports parallel development, syncing, and previewing a selected worktree.

In plain words
What is it for?
Use it to create and synchronize worktrees for separate tasks or branches. It also helps choose a worktree for a preview.
Why use it?
It helps keep parallel changes isolated without repeatedly switching or copying the same repository.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aio-devops plugin — 3 skills shipped together

Good fit Use it to create and synchronize worktrees for separate tasks or branches. It also helps choose a worktree for a preview.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aiocean/claude-plugins
Claude Code
/plugin install aio-devops

Made for: Claude Code.

Or install aio-devops, the plugin that ships this one along with the rest of its 3 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 aio-worktree

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-worktree"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,839 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.00021 $0.01839
Opus 5.5 $0.00008 $0.00736
Sonnet 5.5 $0.00004 $0.00368
Haiku 4.5 $0.00002 $0.00184

Measured 3mo ago against content hash 27a09d526b08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aio-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 3mo ago.

The scan reads SKILL.md. This mod also ships 8 executable files (worktree-cleanup.sh, worktree-create.sh, worktree-list.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.

plugins/aio-devops/skills/aio-worktree/SKILL.md · 236 lines

How it starts

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

Git Worktree Management

Manages git worktrees for parallel development workflows.

Environment

  • git: !which git 2>/dev/null || echo "NOT INSTALLED"
  • Scripts: !echo "${CLAUDE_PLUGIN_ROOT}/skills/aio-worktree"

Scripts Path

WT="${CLAUDE_PLUGIN_ROOT}/skills/aio-worktree"

Set this in every shell block that calls a script. Then reference scripts as $WT/script-name.

Available Scripts

Script Purpose
worktree-create.sh Create new worktree with branch
worktree-list.sh List all worktrees and their status
worktree-sync.sh Sync worktree ↔ main (rebase + ff)
worktree-spotlight.sh Live file sync for hot reload
worktree-spotlight-status.sh Check if spotlight is running
worktree-merge.sh Merge worktree branch to/from parent
worktree-remove.sh Remove worktree and delete branch
worktree-cleanup.sh Emergency cleanup after crash

Workflow

1. Create Worktree

WT="${CLAUDE_PLUGIN_ROOT}/skills/aio-worktree"
$WT/worktree-create.sh <name> [source_ref]

# Examples:
$WT/worktree-create.sh feature-login          # from HEAD
$WT/worktree-create.sh hotfix-bug main        # from main branch
$WT/worktree-create.sh experiment abc123      # from specific commit

# Creates:
#   Folder: {repo}--wtr-{name}  (e.g., myrepo--wtr-feature-login)
#   Branch: wtr-{name}          (e.g., wtr-feature-login)

2. Sync (Rebase + Fast-Forward)

Sync worktree with parent branch. Both end up at the same commit with same hash.

# From within worktree directory
$WT/worktree-sync.sh

How it works:

  1. Rebase worktree onto parent (get latest from main, put your commits on top)
  2. Fast-forward parent to worktree (now both identical)

Result: Both branches at same commit, same hash. No duplicates.

Read the full file on GitHub · 236 lines

Files

What ships with it

8 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.

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. 3mo ago First seen · 236 lines · 21 tokens per session scan A 27a09d526b08

Subscribe to this mod's changes

aio-worktree is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 4d ago), licensed MIT. It adds 21 tokens to every session and 1,839 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-08-31.

Related

aio-worktree compared with skills from other repositories

aio-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aio-worktreeaiocean/claude-pluginsSkill44d agoMITA21Claude Code
pr-triageFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A73Claude Code
land-and-deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A41Claude Code
review-prFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A45Claude Code
git-worktree-cleanFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A19Claude Code
release-notes-generatorFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A59Claude Code
release-notesFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A13Claude Code