cleanup-context

Audit AI context files and resolve contradictions, staleness, redundancy, and bloat.

9|1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Roxabi/roxabi-plugins --skill cleanup-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-context
Source: https://github.com/Roxabi/roxabi-plugins/tree/main/plugins/dev-core/skills/cleanup-context
Command: npx skills add https://github.com/Roxabi/roxabi-plugins --skill cleanup-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the accumulation of stale, contradictory, or redundant information within AI's context files (like CLAUDE.md, memory files, and skill definitions), which can degrade performance and lead to errors.

Core Features & Use Cases

  • Comprehensive Audit: Scans CLAUDE.md, memory files, and skill definitions for contradictions, staleness, redundancy, and bloat.
  • Automated Resolution: Proposes and executes fixes, promotions to permanent documentation, relocations to narrower scopes, or deletions of problematic entries.
  • Use Case: After a refactor, run this Skill to ensure all AI knowledge bases are up-to-date, removing outdated references and consolidating important insights into permanent documentation, preventing the AI from acting on stale information.

Quick Start

Run the cleanup-context skill to audit and resolve all context findings.

Frequently Asked Questions about cleanup-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit AI context files for contradictions and stale information?

To audit AI context files, run a systematic scan of CLAUDE.md, memory files, and skill definitions to identify contradictions, staleness, redundancy, and bloat, then log all findings for review and resolution.

What causes AI context bloat and degraded prompt engineering performance?

AI context bloat and degraded performance stem from the accumulation of stale, contradictory, or redundant information within context files like CLAUDE.md and memory, which causes errors and inefficiencies during inference.

How do I clean up memory files and skill definitions after a code refactor?

Clean up memory files after a code refactor by scanning knowledge bases for outdated references, resolving contradictions, promoting important insights to permanent documentation, and deleting obsolete entries to prevent acting on stale information.

Can I automate the resolution of redundant context entries in my knowledge base?

Yes, you can automate context resolution by proposing and executing fixes, promoting entries to permanent documentation, relocating to narrower scopes, or deleting problematic entries found during the knowledge base audit.

What is the best way to maintain AI accuracy when managing a large knowledge base?

The best way to maintain AI accuracy is systematically auditing context files to resolve contradictions and bloat, then logging all maintenance actions to ensure the knowledge base remains up-to-date and free of redundant data.