Skip to content
juliusbrussee avatar

Caveman Compress

Compresses CLAUDE.md and todo-style memory files into caveman format while keeping code and paths intact.

CCM score
77 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
448.1K
GitHub stars
123.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers natural language memory files such as CLAUDE.md, todo lists, and preference notes, with .md, .txt, .typ, .tex, and extensionless files supported
  • Preserves code blocks, inline code, URLs, file paths, commands, version numbers, and headings exactly while trimming filler and articles
  • Enforces refusal of secret-looking filenames and of files containing credentials, and sends file text to the configured model provider
  • Designed for trimming input tokens from memory files, with the original saved to an out-of-tree backup before the overwrite

Install

$ npx -y skills add juliusbrussee/caveman --skill caveman-compress -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Caveman Compress

Purpose

Data leaves the machine. Compression sends the file's full text to the model provider that scripts/compress.py is configured for: the claude CLI, the Anthropic API, or an OpenAI-compatible endpoint. Files whose names look like secrets (.env, credentials, secrets, .netrc, …) are refused before they are read, and a file whose text holds a credential (a private key block, or a cloud, Git host or model API token) is refused before anything is sent. Don't compress a file the provider shouldn't see.

Compress natural language files (CLAUDE.md, todos, preferences) into caveman-speak to reduce input tokens. Compressed version overwrites original. Human-readable backup saved as <filename>.original.md, but NOT beside the source file — it lives in an out-of-tree data dir ($XDG_DATA_HOME/caveman-compress/backups/<parent-dir-name>/, or %LOCALAPPDATA%\caveman-compress\backups\<parent-dir-name>\ on Windows) so skill auto-loaders don't re-ingest it as a live file.

Trigger

/caveman-compress <filepath> or when user asks to compress a memory file.

Details

Repository
github.com/juliusbrussee/caveman
Categories
Memory & Context, Writing & Content
First seen
Apr 16, 2026

Questions

What does the caveman-compress skill do?

It compresses memory files such as CLAUDE.md or todo lists into caveman-style prose to reduce input tokens. The compressed version overwrites the original file, and a readable backup is saved as FILE.original.md in an out-of-tree data directory.

How do I install caveman-compress?

Run npx -y skills add juliusbrussee/caveman --skill caveman-compress -y in your project. Once installed, you can run /caveman-compress FILEPATH to compress a named memory file.

Does caveman-compress keep code and URLs intact?

Yes, code blocks, inline code, URLs, file paths, commands, version numbers and environment variables are preserved exactly. Only the surrounding natural language text is shortened.

Is my file sent anywhere when I compress it?

Yes, the file's full text is sent to the model provider the script is configured for, such as the claude CLI, the Anthropic API, codex or an OpenAI-compatible endpoint. Files named like secrets are refused, and files containing credentials are refused before anything is sent.

Where does caveman-compress rank in its category?

It sits in the Memory & Context category and ranks in the top 3 on that category page. Other skills in the category include handoff, caveman-stats, caveman-learn, caveman-optimize and context-engineering.

More from juliusbrussee/caveman

All 25

Similar to Caveman Compress

More Memory & Context