caveman-compress
Compress a markdown/text file into caveman format to save tokens
Install
Copy this folder into your Claude Code project (needs Node.js):
curl -fsSL --create-dirs -o .claude/commands/caveman-compress.md https://raw.githubusercontent.com/JuliusBrussee/caveman/HEAD/src/plugins/opencode/commands/caveman-compress.mdOr install it for every project:
curl -fsSL --create-dirs -o ~/.claude/commands/caveman-compress.md https://raw.githubusercontent.com/JuliusBrussee/caveman/HEAD/src/plugins/opencode/commands/caveman-compress.mdFile content
Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗
--- description: Compress a markdown/text file into caveman format to save tokens --- Compress the file at: $ARGUMENTS Run the `caveman-compress` skill against the given filepath. The skill rewrites prose into terse caveman style — drops articles, filler, hedging — while preserving code blocks, inline code, URLs, file paths, commands, and markdown structure exactly. Original is backed up as `<file>.original.md` before overwrite. Only compress natural-language files (`.md`, `.txt`, `.typ`, `.tex`, extensionless). Refuse source/config files (`.py`, `.js`, `.ts`, `.json`, `.yaml`, `.toml`, `.sh`, etc.). Never compress an existing `*.original.md` backup.