← ClaudeAtlas

cleanup-contextlisted

Audit and clean CLAUDE.md, memory, skills, and rules — resolve every finding (fix/promote/relocate/delete), track recurrences, target bloat=0. Triggers: "cleanup context" | "context audit" | "clean memory" | "drain memory" | "prune memory" | "audit memory" | "consolidate rules" | "spa day" | "memory audit".
Roxabi/roxabi-plugins · ★ 9 · AI & Automation · score 75
Install: claude install-skill Roxabi/roxabi-plugins
# Context Cleanup **Goal: every ε resolved.** Context files = inbox — stale rules, contradictions, memory entries → permanent home ∨ deleted. Addresses "rule accumulation decay": rules↑ → performance↑ → too many → contradictions → performance↓ silently. Let: ε := finding (contradiction, stale ref, redundancy, bloat, memory entry) μ := MEMORY.md (first κ lines injected every session) τ := memory/*.md (topic files, loaded on demand) α := .claude/agent-memory/*/MEMORY.md (per-agent) κ := 200 (MEMORY.md line cap) λ := .claude/context-audit-log.md (append-only audit log) Π := placement targets (auto-detected per project) ``` /cleanup-context Audit all context areas /cleanup-context --scope claude-md Only audit CLAUDE.md files /cleanup-context --scope skills Only audit skill files /cleanup-context --scope memory Only audit auto-memory (μ + τ + α) /cleanup-context --dry-run Show findings without proposing fixes ``` ## Resolutions ∀ ε → exactly one resolution: | Resolution | When | Action | |-----------|------|--------| | **Fix** | Root cause = bug/wrong config/design flaw | Fix code/config/workflow, delete ε | | **Promote** | Durable insight needed by multiple agents | Move to permanent target (see Π), delete ε | | **Relocate** | Domain/agent-specific knowledge in wrong scope | Move to narrower target, delete ε | | **Delete** | Ephemeral, stale, already covered, resolved | Delete ε | ## Dispatch Phase 1 — Discovery → Read `