vc:merge-worktree

vc:merge-worktree is a skill for Claude Code from opencue/cuecards. It costs 44 tokens per session (295 once invoked), scanned A, original, MIT.

A workflow helper for merging a completed Git worktree branch back into the main checkout and cleaning up the finished worktree.

In plain words
What is it for?
Use it to verify the worktree, merge its branch, remove the worktree, delete the merged local branch, and prune stale worktree records.
Why use it?
It reduces mistakes when combining changes from a separate working directory and removing its branch afterward.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to verify the worktree, merge its branch, remove the worktree, delete the merged local branch, and prune stale worktree records.

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

Made for: Claude Code.

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 vc:merge-worktree

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencue/cuecards/vc-merge-worktree"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/vc-merge-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 295 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.00044 $0.00295
Opus 5.5 $0.00018 $0.00118
Sonnet 5.5 $0.00009 $0.00059
Haiku 4.5 $0.00004 $0.00030

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

Security

Grade A, and why

vc:merge-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.

.agents/skills/vc-merge-worktree/SKILL.md · 32 lines

What it actually says

Merge Worktree

Use this skill for safe worktree merge and cleanup. Skip RIPER-5 mode routing for this operational task.

Workflow

  1. Confirm the current path is a worktree, not the main checkout.
  2. Run git status --short and stop if there are uncommitted changes.
  3. Capture the current branch and worktree path.
  4. Locate the main checkout with git worktree list.
  5. Switch to the main checkout and update main if the user wants latest remote changes included.
  6. Merge the worktree branch into main.
  7. If merge succeeds, remove the worktree with git worktree remove <path>.
  8. Delete the local branch with git branch -d <branch>.
  9. Run git worktree prune.
  10. Report the merge result and whether a push is still needed.

Safety

  • Never run from main or master.
  • Never delete a branch before a successful merge.
  • Stop on conflicts and explain the exact recovery state.
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 First seen · 32 lines · 44 tokens per session scan A a8af1e8e6ff2

Subscribe to this mod's changes

vc:merge-worktree is a skill published in the GitHub repository opencue/cuecards (10 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 295 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-09-03.

Related

vc:merge-worktree compared with skills from other repositories

vc:merge-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vc:merge-worktreeopencue/cuecardsSkill10yesterdayMITA44Claude Code
atomic-git-disciplinedamusix/atomic-claudeSkill117yesterdayMITA222Claude Code, Codex
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex
memstack-security-git-guardcwinvestments/memstackSkill43318d agoMITA92Claude Code
land-and-deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A41Claude 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