Agent skill · AI & Agents

caveman-compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.

JuliusBrusseegithub.com/JuliusBrusseeGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add JuliusBrussee/caveman --skill caveman-compress --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 10
SKILL.md size: 5 KB
Bundled scripts: yes
Path: skills/caveman-compress/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 95,714 · +1,832 this week
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Caveman Compress ## Purpose 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. ## Process 1. The compression scripts live in `scripts/` (adjacent to this SKILL.md). If the path is not immediately available, search for `scripts/__main__.py` next to this SKILL.md. 2. From the directory containing this SKILL.md, run: python3 -m scripts <absolute_filepath> 3. The CLI will: - detect file type (no tokens) - call Claude to compress - validate output (no tokens) - if errors: cherry-pick fix with Claude (targeted fixes only, no recompression) - retry up to 2 times - if still failing after 2 retries: report error to user, leave original file untouched 4. Return result to user ## Compression Rul

What's inside
Steps it walks through
  1. Purpose
  2. Trigger
  3. Process
  4. Compression Rules
  5. Remove
  6. Preserve EXACTLY (never modify)
  7. Pattern
  8. Boundaries
Ships with 9 files
  • README.md
  • SECURITY.md
  • scripts/__init__.py
  • scripts/__main__.py
  • scripts/benchmark.py
  • scripts/cli.py
  • scripts/compress.py
  • scripts/detect.py
  • scripts/validate.py
More from caveman
All skills →
About this skill
What does the caveman-compress skill do?

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.

How do I install it?

Run `npx skills add JuliusBrussee/caveman --skill caveman-compress --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From JuliusBrussee/caveman, a repository with 95,714 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going