Cleanup Docs — Security skill for Claude Code
Audit and clean up a repo's Claude documentation — measure the always-on tier first (CLAUDE.md + nested + .claude/rules/ + the auto-memory index), then merge redundancy, cut derivable and model-obsole.
How to install Cleanup Docs
Installs to ~/.claude/skills/tillmeier-claude-code-guardrails-cleanup-docs/SKILL.md
mkdir -p ~/.claude/skills/tillmeier-claude-code-guardrails-cleanup-docs && curl -fsSL https://raw.githubusercontent.com/tillmeier/claude-code-guardrails/HEAD/commands/cleanup-docs.md -o ~/.claude/skills/tillmeier-claude-code-guardrails-cleanup-docs/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Cleanup Docs does
name: cleanup-docs description: Audit and clean up a repo's Claude documentation — measure the always-on tier first (CLAUDE.md + nested + .claude/rules/ + the auto-memory index), then merge redundancy, cut derivable and model-obsolete content, demote misplaced tiers, fix cross-refs. Verifies every fact survives before cutting; asks before destructive operations; reports byte deltas.
Cleanup and Optimize Claude Documentation
Audit the Claude documentation in this repo and leave it sma
Alternatives in Security
- Tier 3 Code Refinement Report — Date: 2026-03-20 Status: ALL 54 FINDINGS IMPLEMENTED Scope: Full codebase (18 plugins, 888 files, ~266K lines) 222 ★
- Migration Agent — Plans a token migration (format, tool, naming or tier): chains token-audit and naming-audit, builds the transf 194 ★
- Audit Docs — Scan documentation for staleness — broken links, outdated counts, stale version references, and inconsistencie 95 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Skill Detail
Shared model-rubric detail + plan-doc update pattern for gate-a~e, audit, doc-cleanup. Load on demand (not aut
Audit Design
Audit an existing codebase against its original docs/specs, auto-update stale docs, clean up dangling/duplicat
Claude Minificator
Audit & optimize your Claude Code config. Cut your token bill by 50-70%. Score /100 + auto-fix.
Memory Compress
Audit and compress this project's persistent memory (MEMORY.md + memory/.md) — merge duplicates, prune stale o
Knowledge Audit
Audit CLAUDE.md, .claude/rules and knowledge/ against the 3-tier budget; propose moves to keep always-loaded c
Claude Clean Context
Keep Claude Code's always-loaded context lean: deterministic memory guard-rail distiller + skills audit. Never
Related Agents
Example PR Manager
Own an authorized PR branch lifecycle: early draft, current-head checks/reviews, bounded fix requests, merge v
Pan Optimizer
Circular optimization analyst. Reads execution trace data, identifies error/gap/redundancy patterns, and produ
Thread Janitor
Auto-clean stale cortex threads. Finds threads with no updates in 7+ days, resolves completed work, merges dup