caveman-compress: Compress memory files to cut input tokens

By juliusbrussee/cavemanjuliusbrussee/cavemanskills.sh

caveman-compress rewrites a natural language memory file, such as CLAUDE.md or a todo list, into short caveman-style text. It cuts the input tokens that the file costs each time it is loaded. The original is kept as a readable backup outside the project.

Developmentskills.sh
Total installs
451.3K
skills.sh
Last 7 days
9.1K
▼ 2.9% vs the week before
Best 100 rank
—
Not in Best 100
GitHub stars
123.1K
Pushed 2026-11-26

What problem this skill solves

Memory files like CLAUDE.md, todo lists and preference notes are sent to the model as input. Long prose costs tokens every time it is loaded.

With this skill, the prose is shortened: articles, filler and hedging are removed, and fragments are used. Headings, lists, tables, code blocks, inline code, URLs, file paths, commands, versions and environment variables are kept exactly as written.

Good for

  • Compressing CLAUDE.md or other memory prose files
  • Shortening long todo lists or preference notes
  • Cases where you accept that the file text is sent to your configured model provider

Not for

  • Files that hold secrets or credentials, which are refused before they are read or sent
  • Code and config files such as .py, .json, .yaml and .sh, which are never modified
  • Raw text pasted into the chat without a file path

Install this skill

caveman-compress only

npx skills add https://github.com/juliusbrussee/caveman --skill caveman-compress

The whole repository

npx skills add https://github.com/juliusbrussee/caveman

Trend

Growing steadily
05K10K15K9.1K08/2809/2510/3011/27
Daily installs, last 30 days
1,252
Daily installs, last 30 days vs the 30 days before
-1.3%

How this skill works

  1. 1Run `python3 -m scripts <absolute_filepath>` from the directory that contains SKILL.md.
  2. 2The script detects the file type and checks the file for secrets before anything is sent.
  3. 3The file text is sent to the configured provider (claude CLI, Anthropic API, codex CLI, opencode, or an OpenAI-compatible endpoint) for compression.
  4. 4The output is checked, and any errors are fixed with targeted edits. The script retries up to 2 times.
  5. 5The compressed text replaces the original file, and a backup named `<filename>.original.md` is saved in the out-of-tree backup data directory.
  6. 6If compression still fails after the retries, the original file is left untouched and the error is reported.

Related skills in the same repository

SkillWhat it doesTotal installs
caveman>650,899
caveman-commit>449,688
caveman-review>445,700
caveman-help>435,695

Are you the author of this skill? Add its rank to your GitHub repo

Best Skills

The badge updates every day and links back to this page.

[![Best Skills](https://linkly.ai/skills/badge/juliusbrussee/caveman/caveman-compress.svg)](https://linkly.ai/skills/s/juliusbrussee/caveman/caveman-compress)
Linkly AI

Maintained by Linkly AI

Linkly AI is the knowledge brain for AI agents. It automatically parses the notes, study materials, bookmarks, knowledge bases, voice memos, meetings, videos and ideas on your computer, so your agent can search and read everything you have.

Download Linkly AI
Or send this line to your agent and it will help you install and connect.

Set up https://linkly.ai/docs/en/agent-setup.md