caveman-compress: Compress memory files to cut input tokens
caveman-compress rewrites a natural language memory file, such as CLAUDE.md or a todo list, into short caveman-style text. It cuts the input tokens that the file costs each time it is loaded. The original is kept as a readable backup outside the project.
What problem this skill solves
Memory files like CLAUDE.md, todo lists and preference notes are sent to the model as input. Long prose costs tokens every time it is loaded.
With this skill, the prose is shortened: articles, filler and hedging are removed, and fragments are used. Headings, lists, tables, code blocks, inline code, URLs, file paths, commands, versions and environment variables are kept exactly as written.
Good for
- Compressing CLAUDE.md or other memory prose files
- Shortening long todo lists or preference notes
- Cases where you accept that the file text is sent to your configured model provider
Not for
- Files that hold secrets or credentials, which are refused before they are read or sent
- Code and config files such as .py, .json, .yaml and .sh, which are never modified
- Raw text pasted into the chat without a file path
Install this skill
caveman-compress only
npx skills add https://github.com/juliusbrussee/caveman --skill caveman-compressThe whole repository
npx skills add https://github.com/juliusbrussee/cavemanTrend
Growing steadily- Daily installs, last 30 days
- 1,252
- Daily installs, last 30 days vs the 30 days before
- -1.3%
How this skill works
- 1Run `python3 -m scripts <absolute_filepath>` from the directory that contains SKILL.md.
- 2The script detects the file type and checks the file for secrets before anything is sent.
- 3The file text is sent to the configured provider (claude CLI, Anthropic API, codex CLI, opencode, or an OpenAI-compatible endpoint) for compression.
- 4The output is checked, and any errors are fixed with targeted edits. The script retries up to 2 times.
- 5The compressed text replaces the original file, and a backup named `<filename>.original.md` is saved in the out-of-tree backup data directory.
- 6If compression still fails after the retries, the original file is left untouched and the error is reported.
Related skills in the same repository
| Skill | What it does | Total installs |
|---|---|---|
| caveman | > | 650,899 |
| caveman-commit | > | 449,688 |
| caveman-review | > | 445,700 |
| caveman-help | > | 435,695 |
Are you the author of this skill? Add its rank to your GitHub repo
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/juliusbrussee/caveman/caveman-compress)