R-cleanup-context

R-cleanup-context is a skill for Claude Code from Roxabi/roxabi-plugins. It costs 93 tokens per session (1,130 once invoked), scanned A, original, AGPL-3.0.

An audit and cleanup process for project instructions, saved notes, skills, and rules used by the coding agent.

In plain words
What is it for?
Use it to review agent memory and documentation, move useful rules, remove obsolete material, and track recurring findings.
Why use it?
It finds duplicated, misplaced, outdated, or growing context and resolves each finding.

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 to review agent memory and documentation, move useful rules, remove obsolete material, and track recurring findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roxabi/roxabi-plugins/cleanup-context
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-context
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-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/roxabi/roxabi-plugins/cleanup-context"><img src="https://agentmods.dev/badge/skills/roxabi/roxabi-plugins/cleanup-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00093 $0.01130
Opus 5.5 $0.00037 $0.00452
Sonnet 5.5 $0.00019 $0.00226
Haiku 4.5 $0.00009 $0.00113

Measured 26d ago against content hash 0318d9d17d9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

R-cleanup-context 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 26d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__tests__/memory-sweeps.integration.test.ts, memory-store.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.

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.

archived/plugins/dev-core/skills/cleanup-context/SKILL.md · 85 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. 26d ago Changed · +6 lines 0318d9d17d9e
  2. 1mo ago Changed · +2 tokens per session 87b4bbc6e101
  3. 1mo ago First seen · 79 lines · 91 tokens per session scan A 18020e9934bb

Subscribe to this mod's changes

R-cleanup-context is a skill published in the GitHub repository Roxabi/roxabi-plugins (9 stars, last pushed today), licensed AGPL-3.0. It adds 93 tokens to every session and 1,130 once invoked, about $0.0004 per session on Opus 5.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-08-31.

Related

Other skills, from other repositories

wiki-de-conhecimento

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

juliano-ceconi/okam · 24 tokens

manutencao-de-memoria

Extrai lições aprendidas e destila no índice de conhecimento para evitar repetição de erros.

juliano-ceconi/okam · 29 tokens

agentmemory-agents

How agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are supported, or when a connect adapter writes the wrong config path.

rohitg00/agentmemory · 46 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

memory-retain

Save what was learned to Hindsight long-term memory. Use when a task finishes, when the user states a fact, decision or preference, and when you discover something a later run or another Bot would need.

vectorize-io/hindsight · 46 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens