clio-kit-branch-closeout

clio-kit-branch-closeout is a skill for Claude Code from iowarp/clio-kit. It costs 82 tokens per session (1,620 once invoked), scanned C, original, BSD-3-Clause.

A Git cleanup procedure for work that has already been merged. A worktree is a second working directory connected to the same Git repository; this procedure checks it before removing it and deleting related local branches.

In plain words
What is it for?
Use it to prove a branch landed, remove its worktrees, delete local branches safely, and inspect remaining Git references.
Why use it?
It reduces the risk of deleting unmerged work, dirty files, or useful repository references during cleanup.

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 prove a branch landed, remove its worktrees, delete local branches safely, and inspect remaining Git references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iowarp/clio-kit/clio-kit-branch-closeout
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-branch-closeout
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-branch-closeout

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iowarp/clio-kit/clio-kit-branch-closeout"><img src="https://agentmods.dev/badge/skills/iowarp/clio-kit/clio-kit-branch-closeout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 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.00082 $0.01620
Opus 5.5 $0.00033 $0.00648
Sonnet 5.5 $0.00016 $0.00324
Haiku 4.5 $0.00008 $0.00162

Measured 9d ago against content hash 91d936544912, 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-branch-closeout 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.

- Never use `rm -rf`.
skills/clio-coder-skills/skills/clio-kit-branch-closeout/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 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.

Branch Closeout

Safely tear down local scaffolding after work has merged. Closeout proves landing evidence before removing any ref or worktree, distinguishes canonical and fork remotes, protects dirty or ignored worktree state, and audits surviving repository references.

See the closeout checklist for detailed commands and edge cases.

Arguments

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

/skill:clio-kit-branch-closeout [--canonical remote] [--base branch] [--delete-fork-branch] <branch...>

Examples

  • /skill:clio-kit-branch-closeout feat/worker-profiles
  • /skill:clio-kit-branch-closeout --base main --canonical upstream fix/session-leak
  • /skill:clio-kit-branch-closeout --delete-fork-branch feat/issue-99

Positional Arguments

  • <branch...>: One or more local branch names to close out.
    • Required. If missing, prompt the user for the branch name; never guess.
    • Must be valid ref names (git check-ref-format --branch <branch>).

Options

  • --canonical <remote>: Remote name of the canonical upstream repository.
    • Default: detected canonical remote from repository URLs or upstream / origin.
  • --base <branch>: Base branch on which the changes landed.
    • Default: detected canonical default branch (e.g. main or master).
  • --delete-fork-branch: Delete the corresponding branch on the contributor's fork remote after local closeout.
    • Default: false.
    • Refusal Guard: If the fork remote resolves to the canonical repository, this option is strictly refused.

Read the full file on GitHub · 128 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 · 128 lines · 82 tokens per session scan C 91d936544912

Subscribe to this mod's changes

clio-kit-branch-closeout is a skill published in the GitHub repository iowarp/clio-kit (30 stars, last pushed 8d ago), licensed BSD-3-Clause. It adds 82 tokens to every session and 1,620 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.