| name | context-clean-up |
| slug | context-clean-up |
| version | 1.0.7 |
| license | MIT |
| description | Use when: prompt context is bloating (slow replies, rising cost, noisy transcripts) and you want a ranked offender list + reversible plan.
Don't use when: you want automatic deletions or unattended config edits.
Output: an audit-only report (top offenders + 3-8 lowest-risk fixes + rollback notes). No changes are applied automatically.
|
| disable-model-invocation | true |
| allowed-tools | ["sessions_list","sessions_history","session_status"] |
| metadata | {"openclaw":{"emoji":"🧹","requires":{"bins":"[Truncated]"}}} |
Context Clean Up (audit-only)
This skill identifies what is bloating prompt context and turns it into a safe, reversible plan.
Contract
- Audit-only by default.
- No automatic deletions.
- No unattended config edits.
- No silent cron/session pruning.
- If you ask for changes, the skill should propose:
- exact change,
- expected impact,
- rollback plan,
- verification steps.
Safety model
- No
exec tool usage.
- No
read tool usage.
- If you want file-level analysis, run the bundled script manually and paste the JSON.
Quick start
/context-clean-up → audit + actionable plan (no changes)
Optional manual report generation:
python3 scripts/context_cleanup_audit.py --out context-cleanup-audit.json
Windows variant:
py -3 scripts/context_cleanup_audit.py --out context-cleanup-audit.json
What to measure (authoritative, not vibes)
When available, prefer fresh-session /context json receipts over subjective claims like “it feels leaner”.
High-signal fields:
eligible skills
skills.promptChars
projectContextChars
systemPrompt.chars
promptTokens
If exact receipts are unavailable, fall back to ranked offenders + change scope, but label confidence lower.
Common offender classes
-
Tool result dumps
- oversized
exec output
- large
read output
- long
web_fetch payloads
-
Automation transcript noise
- cron jobs that say “OK” every run
- heartbeat messages that are not alert-only
-
Bootstrap reinjection bloat
- overgrown
AGENTS.md / MEMORY.md / /