clio-kit-worktree-merge

clio-kit-worktree-merge is a skill for Claude Code from iowarp/clio-kit. It costs 87 tokens per session (1,828 once invoked), scanned C, original, BSD-3-Clause.

A Git workflow for combining completed branches through a temporary integration branch. It tests after each merge and runs the full test suite before updating the main branch.

In plain words
What is it for?
Use it to combine several finished branches, check each merge, and roll back a failed integration.
Why use it?
It catches problems during integration and leaves the main branch unchanged when a merge or validation step fails.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clio-coder-skills plugin — 39 skills shipped together

Good fit Use it to combine several finished branches, check each merge, and roll back a failed integration.

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

Made for: Claude Code.

Or install clio-coder-skills, the plugin that ships this one along with the rest of its 39 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 clio-kit-worktree-merge

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iowarp/clio-kit/clio-kit-worktree-merge"><img src="https://agentmods.dev/badge/skills/iowarp/clio-kit/clio-kit-worktree-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,828 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00087 $0.01828
Opus 5.5 $0.00035 $0.00731
Sonnet 5.5 $0.00017 $0.00366
Haiku 4.5 $0.00009 $0.00183

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

Security

Grade C, and why

clio-kit-worktree-merge scanned grade C with 1 finding 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Remove worktrees with `git worktree remove` (never `rm -rf`).
skills/clio-coder-skills/skills/clio-kit-worktree-merge/SKILL.md · 143 lines

How it starts

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

Host compatibility

This copy is adapted from Clio Coder. Apply the procedure using the current host's available tools and the user's authorized scope. The tool names, /skill invocations, .clio-coder paths, fleets, approval gates and completion gates below describe Clio Coder; they are not installed or enforced by this skill in another host. Use the host's actual skill invocation and equivalent tools. If no equivalent exists, report the missing capability. Do not assume a tool is unavailable merely because the original headless workflow says so. A referenced agent or skill must be installed before relying on it. Scientific MCPs must be configured separately.

Adapted skills use the clio-kit- prefix to distinguish them from upstream audited skills. For a companion skill named below, select its clio-kit- copy from this collection; native agents, fleets and external programs retain their original names.

Worktree Merge

Integrate finished branches through a disposable integration branch. The target branch moves only after every branch integrates cleanly and the project's full validation suite passes; nothing reaches the main line broken.

See merge strategies for strategy mechanics (merge, squash, ff), rollback details, and protected base guards.

Arguments

Arguments are passed in the user invocation message. Interpret them structurally from the prompt:

/skill:clio-kit-worktree-merge [--into branch] [--strategy merge|squash|ff] [--cleanup ask|keep] <branch...>

Examples

  • /skill:clio-kit-worktree-merge feat-a feat-b
  • /skill:clio-kit-worktree-merge --into main --strategy squash feat/payments feat/invoicing
  • /skill:clio-kit-worktree-merge --strategy ff --cleanup keep feat/docs-update

Positional Arguments

  • <branch...>: Two or more branch names to integrate in order (or at least one when integrating into a distinct target branch).
    • Required. If fewer than the necessary branches are specified, prompt the user for the branch list; never guess.
    • Validation: Verify each ref exists via git rev-parse --verify <branch>.

Read the full file on GitHub · 143 lines

Files

What ships with it

4 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. 9d ago First seen · 143 lines · 87 tokens per session scan C e0d356df4308

Subscribe to this mod's changes

clio-kit-worktree-merge is a skill published in the GitHub repository iowarp/clio-kit (30 stars, last pushed 8d ago), licensed BSD-3-Clause. It adds 87 tokens to every session and 1,828 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.