LaunchKit · 2026
Back to Skills

context-clean-up

Use when: you suspect OpenClaw prompt context is bloating (slow replies, high cost, repeated transcript noise)

5
1.7k downloads
by @phenomenoner

Setup & Installation

openclaw skills install @phenomenoner/context-clean-up

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install context-clean-up

Version History

v1.0.7Mar 8, 2026 - Version note by skill developer:

Add trim ladder, /context json verification metrics, rollback-first guidance, and new-session caveat.

What This Skill Does

Audits prompt context to identify what is consuming the most space, then produces a ranked list of offenders and a reversible fix plan. No changes are applied automatically. Designed for situations where slow replies, rising costs, or noisy transcripts suggest context has grown too large.

Gives a prioritized, rollback-ready fix plan based on measured context metrics rather than guesswork.

When to use it

  • Diagnosing slow AI replies caused by context bloat
  • Finding oversized tool output clogging session transcripts
  • Identifying cron automation noise accumulating across sessions
  • Spotting bloated bootstrap files like AGENTS.md or SKILL.md
  • Getting a safe trim plan before modifying any config files

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: /context-clean-up

AGENT
  1. 1Determine workspace directory and OpenClaw state directory
  2. 2Run the audit script to collect context size metrics across sessions
  3. 3Rank offenders by category: tool output dumps, automation noise, bootstrap bloat, ambient skill surface
  4. 4Generate a phased fix plan with expected impact and rollback steps for each change
OUTPUT

Audit report listing top context offenders, lowest-risk fixes ordered by phase, and verification steps to confirm improvement after changes