Audit a repository for token waste — find redundant context files, measure baseline, recommend optimizations
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Delete derivable content — router lists, entity tables that exist in code
Structural Changes (medium impact)
Create lazy-load skills — move operational procedures from auto-loaded files to skills/
Set up memory bank — 3 files max: project.md, active-context.md, progress-log.md
Shorten descriptions — agent/command/skill descriptions under 100 chars
Ongoing (maintenance)
Set line limits — AGENTS.md < 80, memory-bank files < 100
Re-audit after major changes — run this skill quarterly or after big features
Step 6: Apply Optimizations
If user approves, execute:
Merge redundant files
Delete historical content
Compress verbose sections (prose → tables)
Create skills for heavy operational content
Set up optimized memory bank structure
Update cross-references
Output Format
## Token Audit Report
### Baseline
- Auto-loaded: X lines (~Y tokens)
- On-demand: X lines (~Y tokens)
- Skills: N files, X lines total
- Agents: N files, X lines total
- **Total baseline: ~Y tokens per invocation**
### Redundancy
- X instances of duplicated content found
- Estimated waste: ~Y tokens per invocation
### Red Flags
- X files with historical content
- X files with derivable content (exists in code)
- X files exceeding line limits
### Recommended Actions
1. [action] — saves ~Y tokens
2. [action] — saves ~Y tokens
...
### Projected After Optimization
- Auto-loaded: X lines (~Y tokens) — **Z% reduction**