From mini-caveman
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. Trigger: /caveman-compress FILEPATH or "compress memory file"
How this skill is triggered — by the user, by Claude, or both
Slash command
/mini-caveman:caveman-compressThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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`.
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.
/caveman-compress <filepath> or when user asks to compress a memory file.
Locate compress.js in the scripts/ directory adjacent to this SKILL.md.
Run the compression script as a single Bash command (agent does not read the file):
node /absolute/path/to/skills/caveman-compress/scripts/compress.js <absolute_filepath>
Where /absolute/path/to/skills/caveman-compress/ is the directory containing this SKILL.md.
The <absolute_filepath> must be the full path to the file to compress.
The script handles everything in isolation:
claude --print session to compress (the main agent never reads the file)Report the script's summary to the user. The summary looks like:
Compressed CLAUDE.md: 706 → 285 bytes (-59.6%). Backup: CLAUDE.original.md
Do NOT read the file contents yourself. The script handles the entire operation and prints a summary.
The rewrite happens in an isolated headless session spawned by the script — not in the current session. This means:
CAVEMAN_DEFAULT_MODE=off so it won't caveman-ify its own output/caveman-compress slash commandbacktick content)/src/components/..., ./config.yaml)npm install, git commit, docker build)$HOME, NODE_ENV)CRITICAL RULE:
Anything inside ... must be copied EXACTLY.
Do not:
Inline code (...) must be preserved EXACTLY.
Do not modify anything inside backticks.
If file contains code blocks:
Original:
You should always make sure to run the test suite before pushing any changes to the main branch. This is important because it helps catch bugs early and prevents broken builds from being deployed to production.
Compressed:
Run tests before push to main. Catch bugs early, prevent broken prod deploys.
Original:
The application uses a microservices architecture with the following components. The API gateway handles all incoming requests and routes them to the appropriate service. The authentication service is responsible for managing user sessions and JWT tokens.
Compressed:
Microservices architecture. API gateway route all requests to services. Auth service manage user sessions + JWT tokens.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub glitchwerks/mini-caveman --plugin mini-caveman