shrink memory file. save token every session.
--- A Claude Code skill that compresses your project memory files (`CLAUDE.md`, todos, preferences) into caveman format — so every session loads fewer tokens automatically. Claude read `CLAUDE.md` on every session start. If file big, cost big. Caveman make file small. Cost go down forever. ## What It Do ``` /caveman:compress CLAUDE.md ``` ``` CLAUDE.md ← compressed (Claude reads this — fewer tokens every session) CLAUDE.original.md ← human-readable backup (you edit this) ``` Original never lost. You can read and edit `.original.md`. Run skill again to re-compress after edits. ## Benchmarks Real results on real project files: | File | Original | Compressed | Saved | |------|----------:|----------:|------:| | `claude-md-preferences.md` | 706 | 285 | **59.6%** | | `project-notes.md` | 1145 | 535 | **53.3%** | | `claude-md-project.md` | 1122 | 636 | **43.3%** | | `todo-list.md` | 627 | 388 | **38.1%** | | `mixed-with-code.md` | 888 | 560 | **36.9%** | | **Average** | **898** | **481** | **46%** | All validations passed ✅ — headings, code blocks, URLs, file paths preserved exactly. ## Before / After| ### 📄 Original (706 tokens) > "I strongly prefer TypeScript with strict mode enabled for all new code. Please don't use `any` type unless there's genuinely no way around it, and if you do, leave a comment explaining the reasoning. I find that taking the time to properly type things catches a lot of bugs before they ever make it to runtime." | ### 🪨 Caveman (285 tokens) > "Prefer TypeScript strict mode always. No `any` unless unavoidable — comment why if used. Proper types catch bugs early." |