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.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/project.

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

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Roxabi/roxabi-plugins
Claude Code
/plugin install dev-core

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 18d 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 18d 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. 18d ago Changed eba3c1196c2b
  2. 1mo ago Changed · +2 lines 287c1872e27b
  3. 1mo ago Changed 06848c7aa449
  4. 1mo 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 (9 stars, last pushed today), 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

Other skills, from other repositories

release

Cut and maintain Observal release branches, prepare alpha, beta, RC, stable, and patch releases, backport merged main PRs, inspect release status, verify published artifacts, and recover failed release operations. Use for Observal maintainer release tasks and release-process changes, not for installing or upgrading an…

Observal/Observal · 71 tokens

codex-oss-maintainer-toolkit

Build Codex-native workflows for open-source maintenance. Use when creating AGENTS.md guidance, maintainer skills, issue triage flows, PR review prompts, release-note routines, or repository verification scripts.

IndianOldTurtledove/codex-oss-maintainer-toolkit · 49 tokens

agent-framework-py-release

Use when cutting a Python release for the microsoft/agent-framework monorepo. Triggers on "bump py versions", "cut a python release", "prepare release PR for python", "release py packages", "bump python to X.Y.Z", or similar requests to bump Python package versions and prepare a release PR. Handles all four lifecycle…

microsoft/agent-framework · 103 tokens

orchard-release

Check deployment evidence and recovery conditions.

rohitg00/ai-engineering-from-scratch · 11 tokens

resolve-handoff

Emit the complete Resolve handoff with exact modes, outcomes, test evidence, and publication state.

omnigent-ai/omnigent · 23 tokens

fork-fleet

Fork divergence monitor - tracks where the fleet's active forks diverge in CODE (unique commits, new/modified skills) and CONFIG (enable/var/model/schedule vs upstream), gated on real change.

aeonfun/aeon · 45 tokens