R-cleanup

R-cleanup is a skill for Claude Code from Roxabi/roxabi-plugins. It costs 0 tokens per session (4,786 once invoked), scanned C, original, AGPL-3.0.

A cleanup process for Git branches, worktrees, and remote references after checking whether changes have been merged. A worktree is a separate local directory connected to the same Git repository.

In plain words
What is it for?
Use it after merges to clean old branches and worktrees, and to find stuck pipeline labels or abandoned CI runs.
Why use it?
It removes leftover development references without cleaning up work that is still in progress.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dev-core plugin — 31 skills, 10 agents, 2 hooks shipped together

Good fit Use it after merges to clean old branches and worktrees, and to find stuck pipeline labels or abandoned CI runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roxabi/roxabi-plugins/cleanup
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 Roxabi/roxabi-plugins --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/Roxabi/roxabi-plugins

Made for: Claude Code.

Or install dev-core, the plugin that ships this one along with the rest of its 31 skills, 10 agents, 2 hooks.

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 R-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/roxabi/roxabi-plugins/cleanup/github.svg)](https://agentmods.dev/skills/roxabi/roxabi-plugins/cleanup)
Your own site
<a href="https://agentmods.dev/skills/roxabi/roxabi-plugins/cleanup"><img src="https://agentmods.dev/badge/skills/roxabi/roxabi-plugins/cleanup/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 R-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/roxabi/roxabi-plugins/cleanup"><img src="https://agentmods.dev/badge/skills/roxabi/roxabi-plugins/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,786 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 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.1 $0.00000 $0.04786
Opus 5.5 $0.00000 $0.01914
Sonnet 5.5 $0.00000 $0.00957
Haiku 4.5 $0.00000 $0.00479

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

Security

Grade C, and why

R-cleanup 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 2mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (__tests__/analyze-branches.integration.test.ts, __tests__/analyze-branches.test.sh, analyze-branches.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

| `empty_parent` | `~/.grok/worktrees/gosilex-spark/` empty | `rmdir` (or `rm -rf` if confirmed empty) |
archived/plugins/dev-core/skills/cleanup/SKILL.md · 386 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

Files

What ships with it

6 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. 2mo ago Changed eba3c1196c2b
  2. 2mo ago Changed · +2 lines 287c1872e27b
  3. 2mo ago Changed 06848c7aa449
  4. 3mo ago First seen · 384 lines · 0 tokens per session scan C bb9e2f1c7c57

Subscribe to this mod's changes

R-cleanup is a skill published in the GitHub repository Roxabi/roxabi-plugins (10 stars, last pushed yesterday), licensed AGPL-3.0. It costs nothing until one of its globs matches a file; then it loads 4,786 tokens. 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-08-31.

Related

R-cleanup compared with skills from other repositories

R-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
R-cleanupRoxabi/roxabi-pluginsSkill10yesterdayAGPL-3.0C0Claude Code
codex-oss-maintainer-toolkitIndianOldTurtledove/codex-oss-maintainer-toolkitSkill458mo agoMITA49Claude Code, Codex
orchard-releaserohitg00/ai-engineering-from-scratchSkill82kyesterdayMITA11Claude Code, Codex
orchestratehumanlayer/humanlayerSkill13ktodayApache-2.0A49Claude Code
pr-autofixAtomicBot-ai/atomic-agentSkill3.6ktodayMITA45Claude Code, Codex
debugparcadei/Continuous-Claude-v3Skill4.0k17d agoMITA14Claude Code
best-of-nkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A59Claude Code, Codex