worktree

worktree is a skill for Codex from murray17/rovai-ai. It costs 55 tokens per session (807 once invoked), scanned A, original, MIT.

A Git feature for creating separate working folders linked to different branches of the same repository. Each folder can hold an independent piece of development work.

In plain words
What is it for?
Use it to create, inspect, reuse, hand over, or clean up an isolated development folder for a specific task.
Why use it?
It lets developers work on separate changes without repeatedly switching branches or mixing unfinished edits. Existing worktrees and branches can also be found and reused.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create, inspect, reuse, hand over, or clean up an isolated development folder for a specific task.

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

Made for: Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/murray17/rovai-ai/worktree"><img src="https://agentmods.dev/badge/skills/murray17/rovai-ai/worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.00807
Opus 5.5 $0.00022 $0.00323
Sonnet 5.5 $0.00011 $0.00161
Haiku 4.5 $0.00006 $0.00081

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

Security

Grade A, and why

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 2mo 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.

skills/worktree/SKILL.md · 63 lines

How it starts

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

Git Worktree

Use one reusable branch and worktree per logical change. Follow repository and user rules. Run later commands and edits in the selected worktree. Respond in the user's language.

Do not silently stash, move uncommitted work, overwrite directories, or force-delete branches or worktrees.

Inspect and reuse

git rev-parse --show-toplevel
git status --short --branch
git worktree list --porcelain
git branch --list

Read relevant repository instructions. Determine whether the current worktree fits the task, the target branch is checked out elsewhere, an existing branch/directory can be reused, uncommitted work is required, or governance documents must precede coding.

If uncommitted changes must move, ask the user to choose committing, making a patch, or staying in the current worktree. Do not transport them silently.

Conditional governance baseline

Only when repository or user rules require governance documents to enter the mainline before coding:

  1. Identify the actual mainline; do not assume main.
  2. Use its existing clean checkout and synchronize according to repository rules without overwriting other work.
  3. Change only required governance documents, run documentation gates, and commit them separately on the mainline.
  4. Record the immutable commit SHA as the coding baseline.
  5. Bring an empty coding worktree to that baseline. If it already contains code, integrate by the repository's merge rules without rewriting history.

If permissions or dirty state prevent this safely, report the obstacle before coding.

Select branch, base, and directory

Prefer user-specified names and repository conventions; otherwise use a short task slug with feat/, fix/, docs/, chore/, or work/ as appropriate.

Choose the base in this order: required governance commit, explicit user choice, repository rule, related branch, then current HEAD. Clarify a choice that materially changes the work. Fetch only when requested for freshness or required by repository rules; disclose an offline baseline.

Read the full file on GitHub · 63 lines

Files

What ships with it

2 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. 2mo ago Changed · -119 lines · -11 tokens per session 2f9b586f08b5
  2. 3mo ago First seen · 182 lines · 66 tokens per session scan A 46f70637dd64

Subscribe to this mod's changes

worktree is a skill published in the GitHub repository murray17/rovai-ai (293 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 807 once invoked, about $0.0002 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-30.

Related

worktree compared with skills from other repositories

worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
worktreemurray17/rovai-aiSkill293todayMITA55Codex
git-commit-messageArdurAI/ardur-agentSkill2yesterdayApache-2.0A17Claude Code, Codex
factory-updatesquidbay/factorySkill53mo agoMITA70Claude Code, Codex
codex-pr-bodyopeninterpreter/openinterpreterSkill69kyesterdayApache-2.0A17Codex
update-v8-versionopeninterpreter/openinterpreterSkill69kyesterdayApache-2.0A86Codex
githubOrkas-AI/OrkasSkill7.7ktodayMITA1Claude Code, Codex
eng-deliverycompozy/compozySkill2.9kyesterdayMITA55Claude Code, Codex