rlm-cleanup-agent
Dependencies
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).
RLM Cleanup Agent
Role
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.
Prerequisites
Profile not configured? Run rlm-init skill first: SKILL.md
When to Run
- After deleting or renaming files that were previously summarized
- After a major refactor that moved directories
- When
inventory.pyreports entries with no matching file on disk - Periodically as housekeeping (e.g. after a merge)
Execution Protocol
1. Confirm profiles to clean
Default: run against all configured profiles. Ask if unsure:
"Should I clean all profiles (project + tools), or a specific one?"
2. Dry run first -- show what will be removed
python3 .agents/skills/rlm-cleanup-agent/scripts/cleanup_cache.py \
--profile project --dry-run
python3 .agents/skills/rlm-cleanup-agent/scripts/cleanup_cache.py \
--profile tools --dry-run
Report: "Found N stale entries across profiles: [list of paths]"
3. Apply -- only after confirming with the user
python3 .agents/skills/rlm-cleanup-agent/scripts/cleanup_cache.py \
--profile project --apply
python3 .agents/skills/rlm-cleanup-agent/scripts/cleanup_cache.py \
--profile tools --apply
4. Verify
python3 .agents/skills/rlm-cleanup-agent/scripts/inventory.py --profile project
Report the new coverage percentage.
Rules
- Always dry-run first. Never apply without showing the user what will be deleted.
- Never edit
*_cache.jsondirectly. Always usecleanup_cache.py. - Source Transparency Declaration: state which profiles were cleaned and how many entries removed.
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26