operations-worktree

operations-worktree is a skill for Claude Code, Codex from vincentkoc/dotskills. It costs 29 tokens per session (356 once invoked), scanned A, original, MIT.

A safe workflow for creating and managing Git worktrees, which are additional working directories linked to one Git repository. It starts new task branches from the current remote default branch when possible.

In plain words
What is it for?
Use it when creating a task branch in a separate worktree or managing several concurrent worktrees, including OpenClaw pull-request reviews.
Why use it?
It helps avoid building new work on an outdated local branch and keeps multiple tasks separated. It also provides cleanup and branch-base conventions for repository work.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/vincentkoc/dotskills/operations-worktree
Any agent
npx skills add vincentkoc/dotskills --skill operations-worktree
Clone the repo
git clone --depth 1 https://github.com/vincentkoc/dotskills

Made for: Claude Code, 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 operations-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/vincentkoc/dotskills/operations-worktree.svg)](https://agentmods.dev/skills/vincentkoc/dotskills/operations-worktree)
Your own site
<a href="https://agentmods.dev/skills/vincentkoc/dotskills/operations-worktree"><img src="https://agentmods.dev/badge/skills/vincentkoc/dotskills/operations-worktree.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00029 $0.00356
Opus 5 $0.00015 $0.00178
Sonnet 5 $0.00006 $0.00071
Haiku 4.5 $0.00003 $0.00036

Measured 4d ago against content hash 919bb7f3657f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

operations-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 4d 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/operations-worktree/SKILL.md · 39 lines

What it actually says

Operations Worktree

Purpose

Create and manage worktrees safely and consistently across projects while avoiding stale branch bases.

When to use

  • You need a new task branch in a new worktree.
  • You are juggling many concurrent worktrees.
  • You need to avoid branching from stale local main or local HEAD.

Workflow

  1. Ensure you are inside the target repository (main checkout or any linked worktree).
  2. Create a new worktree with the shell wrapper:
    • gwt new <branch>
    • Optional explicit base: gwt new <branch> <start-point>
  3. If shell wrappers are unavailable, use raw git safely:
    • default=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null || echo origin/main)
    • base=${default#origin/}
    • git fetch origin "$base" --prune
    • git worktree add -b <branch> <path> "origin/$base"
  4. For OpenClaw PR review worktrees, prefer that repository's native PR review-init helper instead of hand-assembling refs.

Inputs

  • Branch name (required)
  • Optional start-point (branch/tag/commit)
  • Optional destination path (for raw git mode)

Outputs

  • New linked worktree checked out on the target branch.
  • Default base anchored to a fetched remote default branch unless explicitly overridden.
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. 4d ago First seen · 39 lines · 29 tokens per session scan A 919bb7f3657f

Subscribe to this mod's changes

operations-worktree is a skill published in the GitHub repository vincentkoc/dotskills (102 stars, last pushed 13d ago), licensed MIT. It adds 29 tokens to every session and 356 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

p5js

Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems…

moltis-org/moltis · 152 tokens

opencode

Delegate coding tasks to OpenCode CLI agent for feature implementation, refactoring, PR review, and long-running autonomous sessions. Requires the opencode CLI installed and authenticated.

moltis-org/moltis · 36 tokens

architecture-diagram

Generate dark-themed SVG diagrams of software systems and cloud infrastructure as standalone HTML files with inline SVG graphics. Semantic component colors (cyan=frontend, emerald=backend, violet=database, amber=cloud/AWS, rose=security, orange=message bus), JetBrains Mono font, grid background. Best suited for…

moltis-org/moltis · 163 tokens

ideation

Generate project ideas through creative constraints. Use when the user says 'I want to build something', 'give me a project idea', 'I'm bored', 'what should I make', 'inspire me', or any variant of 'I have tools but no direction'. Works for code, art, hardware, writing, tools, and anything that can be made.

moltis-org/moltis · 75 tokens

mcp-servers

Add, remove, configure, and troubleshoot MCP (Model Context Protocol) servers. Use when the user wants to connect external tools, manage MCP server lifecycle, or debug MCP connectivity issues.

moltis-org/moltis · 42 tokens

discrawl

Archive and search Discord guild messages, threads, and members via the discrawl CLI. Supports bot API sync, local cache import, full-text and semantic search, and Git-backed NDJSON snapshots.

moltis-org/moltis · 42 tokens