Caveman Compress for Claude Code: Shorten a Scratch Instruction File
Caveman Compress rewrites a natural-language instruction file in a shorter style and keeps a readable original in a separate backup directory.
中文Setup for Claude Code
Claude Code with Python 3, the pinned compression scripts, and an approved model provider. The full chosen file is sent to that provider and the input path is updated.
- Copy skills/caveman-compress into .claude/skills/caveman-compress/ and retain its scripts folder.
- Open Claude Code in a disposable project and configure one of the supported provider environments. Put only synthetic text into the input file.
- Invoke /caveman-compress with the exact scratch file path and inspect the modified file and backup location.
Example task
Create TODO.md in a disposable folder with a fake book club task, the time 18:30, and the literal command npm test. Ask the skill to compress that file and check the original backup.Expected result
The rewritten file preserves the task, time, and exact command. The original remains available in the backup path reported by the script.
Upstream documentation
Original SKILL.md on GitHub · Apache-2.0 license · Source reviewed
Frequently asked question
Where does the original go?
The backup is placed under the Caveman Compress data directory outside the original project so the backup does not become another active instruction file.