cleanup

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 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/roxabi/roxabi-plugins/cleanup
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, Codex.

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,626 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00000 $0.04626
Opus 5 $0.00000 $0.02313
Sonnet 5 $0.00000 $0.00925
Haiku 4.5 $0.00000 $0.00463

Measured 2d ago against content hash bb9e2f1c7c57, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

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 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (__tests__/analyze-branches.test.sh, __tests__/analyze-branches.test.ts, 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) |
plugins/dev-core/skills/cleanup/SKILL.md · 384 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. 2d ago First seen · 384 lines · 0 tokens per session scan C bb9e2f1c7c57

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository Roxabi/roxabi-plugins (9 stars, last pushed 2d ago), licensed AGPL-3.0. It costs nothing until one of its globs matches a file; then it loads 4,626 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

kodus-install

Install and configure Kodus self-hosted using Docker Compose. Guides through .env setup, secret generation, service startup, and health verification.

kodustech/kodus-installer · 32 tokens

gestao-trilhas

Gerencia o ciclo de vida completo de trilhas de trabalho (abertura com scaffolding, transição de blocos, fechamento e arquivamento em finalizadas/, propagação de conhecimento para a Wiki e auditoria de invariantes). Use ao criar, atualizar, passar de bloco, fechar ou auditar qualquer trilha.

juliano-ceconi/okam · 73 tokens

analise-profunda

Executa o pipeline de análise profunda em um projeto para extrair sua "alma" e atualizar a governança.

juliano-ceconi/okam · 28 tokens

ebb-ai

Carbon-aware scheduling of AI tasks. Use this skill when the user asks to defer, schedule, or queue an AI task ("run this overnight", "do it when the grid is clean", "wait until off-peak"). Also use when the user explicitly asks about grid carbon intensity, AI energy cost, or wants a CO₂ receipt for a task they're…

Vitalini/ebb-ai · 134 tokens

ebb-ai

Auto-defer "do it later" / "by tomorrow" / "tonight" / "overnight" / "by EOD" / "when you have a moment" / "remind me to" / "queue this up" / "no rush" / "not urgent" tasks. Route through /ebb-ai:defer (slash command) or scheduletask (MCP tool) so the LLM dispatch fires at the cleanest electricity-grid hour inside the…

Vitalini/ebb-ai · 144 tokens

wiki-de-conhecimento

Operações de Ingest, Query e Lint para manter o sistema de conhecimento persistente.

juliano-ceconi/okam · 24 tokens