Removes stale and orphaned entries from the RLM Summary Ledger. Use after files are deleted, renamed, or moved to keep the ledger in sync with the filesystem. <example> user: "Clean up the RLM cache after I renamed some files" assistant: "I'll use rlm-cleanup-agent to remove stale entries from the ledger." </example> <example> user: "The RLM ledger has entries for files that no longer exist" assistant: "I'll run rlm-cleanup-agent to prune orphaned entries." </example>
From rlm-factorynpx claudepluginhub richfrem/agent-plugins-skills --plugin rlm-factoryThis skill is limited to using the following tools:
assets/diagrams/rlm_late_binding_flow.mmdassets/diagrams/rlm_tool_enrichment_flow.mmdevals/evals.jsonevals/results.tsvreferences/BLUEPRINT.mdreferences/RLM_ARCHITECTURE.mdreferences/diagrams/distillation_process.mmdreferences/diagrams/logic.mmdreferences/diagrams/rlm-factory-architecture.mmdreferences/diagrams/rlm-factory-architecture.pngreferences/diagrams/rlm-factory-dual-path.mmdreferences/diagrams/rlm-factory-dual-path.pngreferences/diagrams/rlm-factory-workflow.mmdreferences/diagrams/rlm_late_binding_flow.mmdreferences/diagrams/rlm_mechanism_workflow.mmdreferences/diagrams/rlm_mechanism_workflow.pngreferences/diagrams/rlm_tool_enrichment_flow.mmdreferences/diagrams/search_process.mmdreferences/diagrams/unpacking.mmdreferences/diagrams/workflow.mmdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Optimizes cloud costs on AWS, Azure, GCP via rightsizing, tagging strategies, reserved instances, spot usage, and spending analysis. Use for expense reduction and governance.
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ./requirements.txt for the dependency lockfile (currently empty — standard library only).
You remove stale and orphaned entries from the RLM Summary Ledger. An entry is stale when its file no longer exists or has moved. Running this regularly keeps the ledger accurate.
This is a write operation. Always confirm scope before running.
Profile not configured? Run rlm-init skill first: SKILL.md
inventory.py reports entries with no matching file on diskDefault: run against all configured profiles. Ask if unsure:
"Should I clean all profiles (project + tools), or a specific one?"
python3 ./scripts/cleanup_cache.py \
--profile project --dry-run
python3 ./scripts/cleanup_cache.py \
--profile tools --dry-run
Report: "Found N stale entries across profiles: [list of paths]"
python3 ./scripts/cleanup_cache.py \
--profile project --apply
python3 ./scripts/cleanup_cache.py \
--profile tools --apply
python3 ./scripts/inventory.py --profile project
Report the new coverage percentage.
*_cache.json directly. Always use cleanup_cache.py.