post-merge-cleanup

post-merge-cleanup is a skill for Claude Code, Codex from arbiterForge/codeArbiter. It costs 68 tokens per session (3,118 once invoked), scanned A, original, AGPL-3.0.

A cleanup workflow for a branch that has already been merged. It checks that the changes are present in the default branch, reviews leftover files or commits, and removes the local branch.

In plain words
What is it for?
Use it after a merge to classify remaining artifacts, return to a clean default-branch checkout, and delete the merged local branch.
Why use it?
It prevents cleanup from deleting work that was not actually merged and requires confirmation before discarding leftovers.

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/arbiterforge/codearbiter/post-merge-cleanup
Any agent
npx skills add arbiterForge/codeArbiter --skill post-merge-cleanup
Clone the repo
git clone --depth 1 https://github.com/arbiterForge/codeArbiter

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 post-merge-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/arbiterforge/codearbiter/post-merge-cleanup.svg)](https://agentmods.dev/skills/arbiterforge/codearbiter/post-merge-cleanup)
Your own site
<a href="https://agentmods.dev/skills/arbiterforge/codearbiter/post-merge-cleanup"><img src="https://agentmods.dev/badge/skills/arbiterforge/codearbiter/post-merge-cleanup.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,118 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00068 $0.03118
Opus 5 $0.00034 $0.01559
Sonnet 5 $0.00014 $0.00624
Haiku 4.5 $0.00007 $0.00312

Measured yesterday against content hash 07234b6d8604, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

post-merge-cleanup 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 yesterday.

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.

core/surface/skills/post-merge-cleanup/SKILL.md · 234 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. yesterday First seen · 234 lines · 68 tokens per session scan A 07234b6d8604

Subscribe to this mod's changes

post-merge-cleanup is a skill published in the GitHub repository arbiterForge/codeArbiter (141 stars, last pushed yesterday), licensed AGPL-3.0. It adds 68 tokens to every session and 3,118 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

harness

End-to-end workflow orchestrator. Walks the 11-phase pipeline, invoking each phase skill in order inside an internal loop, yielding at consent gates (/approve-direction, /approve-swarm, /grant-commit), and exiting cleanly on yield/failure/done. Decides swarm-vs-solo at Phase 6. Auto-loops /tdd on integrate failures…

friedbotstudio/baseline · 110 tokens

triage

Triage an incoming request — pick the workflow entry phase (intake / spec / tdd / chore) and record the workflow statefile that the Track Guard reads.

friedbotstudio/baseline · 37 tokens

code-structure

MANDATORY skill for ALL code generation. Enforces top-down composition, consistent abstraction layers, and proper module hierarchy. Apply every time you write or modify code — in any language — no exceptions.

friedbotstudio/baseline · 43 tokens

memory-sync

Review the auto-extracted candidates in .claude/memory/pending.md and commit keepers to the canonical memory files (landmarks.md, libraries.md, decisions.md, landmines.md, conventions.md, pending-questions.md, backlog.md). Invoke at session start when the SessionStart hook reports pending candidates, or any time…

friedbotstudio/baseline · 99 tokens

claude-automation-recommender

Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what…

friedbotstudio/baseline · 77 tokens

code-browser

The primary tool for code-navigation questions in ANY language (frontend or backend) — walk the structural graph from an entry point (page, route, handler, command, main) down through imports to the IO boundary (network call, query, file read). Use this skill, in preference to the Explore agent or global grep…

friedbotstudio/baseline · 201 tokens