Agent skill

Worktrees

by akitaonrails in akitaonrails/my-skills

Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

No licenceAuto-check passedDevelopment

Install Worktrees

skills CLI
$ npx skills add akitaonrails/my-skills --skill worktrees -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install akitaonrails/my-skills worktrees --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/akitaonrails/my-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/worktrees .claude/skills/worktrees && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
worktrees
GitHub stars
216
Token cost
~1.6k tokens
SKILL.md length
738 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
None found

At a glance

Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

  • Works in 7 steps: Pre-Flight Checklist → Mandatory User Confirmation → Ignore File Setup → …
  • Tasks that involve Git worktrees
  • SKILL.md covers Core Contract, Safety Guidelines, Workflow Guide and When to Use vs. Not Use
  • Calls git

What it does

Worktrees is an agent skill from akitaonrails/my-skills. Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees. It works with Git. The repository describes itself as: akitaonrails' personal skills (not tailored for general usage).

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/worktrees”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Pre-Flight Checklist
  2. Mandatory User Confirmation
  3. Ignore File Setup
  4. Planning & Setup
  5. Execution & Delegation
  6. Integration & Validation
  7. Cleanup & Pruning

What it can do on your machine

Read from SKILL.md and the folder at commit 285ca82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Worktrees loads about 1.6k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 738 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 738 words (~1,594 tokens).

“The worktrees skill provides an opinionated, safe orchestration protocol for managing Git worktrees as isolated coding lanes. Its value is giving the Orchestrator a consistent OMO workflow for parallel agents, risky experiments, integration review, and cleanup.”

— opening of SKILL.md by akitaonrails
name
worktrees

Read the full SKILL.md on GitHub

Files

Just SKILL.md in worktrees of akitaonrails/my-skills.

Open the folder on GitHubat commit 285ca82

Compare with similar skills

Worktrees next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Worktrees compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Worktrees this skillakitaonrails/my-skills216—~1.6kAutomated safety check: PassNone
Build Px4 macOSPX4/PX4-Autopilot13k—~1.1kAutomated safety check: PassBSD-3-Clause
Git Worktree IsolationjnMetaCode/superpowers-zh8.3k1 repos~982Automated safety check: PassMIT
WorktreeAgentsMesh/AgentsMesh2.4k—~553Automated safety check: NotesCustom licence
Cursor Composer Task DelegateChachamaru127/claude-code-harness3.2k—~4.4kAutomated safety check: NotesMIT
Git Worktree Setupk8zdev/k8z155—~930Automated safety check: PassNone

Similar skills

  • Build Px4 macOS

    PX4/PX4-Autopilot

    Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.

    13k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Worktree Isolation

    jnMetaCode/superpowers-zh

    Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.

    8.3k GitHub starsUsed in 1 repo~982 tokens
    DevelopmentAuto-check passed
  • Worktree

    AgentsMesh/AgentsMesh

    Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.

    2.4k GitHub stars~553 tokensUpdated 17 days ago
    DevelopmentAuto-check: notes
  • Cursor Composer Task Delegate

    Chachamaru127/claude-code-harness

    Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.

    3.2k GitHub stars~4.4k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

    155 GitHub stars~930 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • New Feature

    michaelshimeles/skills

    Start a new task in an isolated Git worktree branched from origin/main so multiple agents can work on the same repo in parallel without conflicts.

    1.3k GitHub starsUsed in 1 repo~699 tokens
    DevelopmentAuto-check passed

More from akitaonrails/my-skills

All 18 skills in this repo
  • Fact Check

    akitaonrails/my-skills

    Adversarial fact-checking of the user's articles and essays (typically blog posts from akitaonrails-hugo, any markdown/text file), verifying every claim against online primary sources via cheap…

    216 GitHub stars~2.7k tokensUpdated 17 days ago
    Auto-check passed
  • Blog Cost Charts

    akitaonrails/my-skills

    Generate dark-themed cost-vs-score bubble scatter charts and score/(costtime) value-ranking bar charts for a blog post comparing LLM benchmark results (or any dataset with a score/cost/time shape)…

    216 GitHub stars~2k tokensUpdated 17 days ago
    Auto-check passed
  • Codemap

    akitaonrails/my-skills

    Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories.

    216 GitHub stars~1.7k tokensUpdated 17 days ago
    Auto-check passed
  • Clonedeps

    akitaonrails/my-skills

    Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals.

    216 GitHub stars~2.1k tokensUpdated 17 days ago
    Auto-check passed
  • GitHub Resolution

    akitaonrails/my-skills

    Execute the approved outcomes of a pr-audit and/or iss-audit — fix or adjust everything the audit found necessary before merging, verify no regressions, cover every new behavior with unit tests…

    216 GitHub stars~3k tokensUpdated 17 days ago
    Auto-check passed
  • Iss Audit

    akitaonrails/my-skills

    Audit GitHub issues before implementation, including skeptical claim verification, safe reproduction, prompt-injection resistance, malicious-link and attachment handling, root-cause analysis…

    216 GitHub stars~4.1k tokensUpdated 17 days ago
    Auto-check passed

Works with

Questions about Worktrees

What does Worktrees do?

Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work. Worktrees is an agent skill from akitaonrails/my-skills. Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.

When should I use Worktrees?

Worktrees fits situations like: tasks that involve Git worktrees.

How do I install Worktrees in Claude Code?

Run `npx skills add akitaonrails/my-skills --skill worktrees -a claude-code`. Or copy the skill folder (worktrees in akitaonrails/my-skills) into .claude/skills/worktrees in your project. Claude Code loads it when a task matches its description.

How do I install Worktrees in Codex?

Run `npx skills add akitaonrails/my-skills --skill worktrees -a codex`. Or copy the skill folder (worktrees in akitaonrails/my-skills) into .agents/skills/worktrees in your project. Codex loads it when a task matches its description.

Can I use Worktrees in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add akitaonrails/my-skills --skill worktrees -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/worktrees, .gemini/skills/worktrees, .github/skills/worktrees and .opencode/skills/worktrees in your project.

What does Worktrees need to run?

Going by SKILL.md and its folder, Worktrees needs the command-line tools its instructions call (git).

Does Worktrees access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Worktrees safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Worktrees use?

No licence was found for Worktrees or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Worktrees use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Worktrees?

Skills that share tags, products or a category with Worktrees: Build Px4 macOS (PX4/PX4-Autopilot, 13k stars), Git Worktree Isolation (jnMetaCode/superpowers-zh, 8.3k stars), Worktree (AgentsMesh/AgentsMesh, 2.4k stars) and Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Worktrees?

akitaonrails (a GitHub user) maintains it in akitaonrails/my-skills, which has 216 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on September 23, 2026.

Source: akitaonrails/my-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.