Audit Turn-1 context bloat and prompt cache reads across Claude Code, Codex, and Antigravity, safely archive unused globals, and install non-blocking boundary guards with 1-command rollback.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/epoko77-ai-skill-context-hygiene)
---
name: context-hygiene
description: Audit Turn-1 context bloat and prompt cache reads across Claude Code, Codex, and Antigravity, safely archive unused globals, and install non-blocking boundary guards with 1-command rollback.
version: 0.2.1
---
# context-hygiene
Zero-LLM CLI + non-blocking hook that reduces prompt cache reads without model downgrades or lossy auto-compaction.
## Workflow
1. **One-command scan (read-only)**:
```bash
context-hygiene scan --days 30
```
(Or `python3 -m context_hygiene scan --days 30` from the repo; use `xray` for full per-plugin details.)
2. **Preview before any mutation**:
```bash
context-hygiene apply --dry-run
```
Show the user: Turn-1 bloat sources, zero-call skills/agents/MCPs (externally symlinked skills are always protected), and the suggested `--disable-plugin` / `--keep-plugin-in` flags.
3. **Apply only after confirmation**:
```bash
context-hygiene apply --lang en # or --lang ko
```
4. **Rollback or restore anytime**:
```bash
context-hygiene rollback latest
context-hygiene restore --skill <name>
context-hygiene status
```