Skills Prompts Hues

Popular categories

Agent skill · Caveman

/caveman-compress Shrink CLAUDE.md and memory files without breaking code

This skill runs a bundled Python tool that rewrites the prose of a memory or notes file in terse form, so the agent loads fewer tokens each session. Code blocks, inline code, URLs, paths and version numbers are treated as read-only, the output is validated with up to two targeted retries, and a readable backup is stored outside the project.

Works with

  • All detected agents
  • Skills only
  • Claude Code
  • Gemini CLI
  • Every agent via script

When to use it

  • Your CLAUDE.md or AGENTS.md has grown long and loads into every session.
  • You keep a todo or preferences file the agent reads often.
  • You want shorter memory files but cannot risk a changed command or path.

How it works

  1. 1
    Require a file path

    The skill only works on a named file and asks for a path rather than compressing pasted text inline.

  2. 2
    Run the script

    From the skill folder the agent runs the scripts module on the absolute path, which detects the file type and calls the model to compress it.

  3. 3
    Protect the payload

    Fenced and inline code, links, paths, commands, headings, list structure and frontmatter are kept as they are.

  4. 4
    Validate and back up

    Output is checked, failures get targeted fixes, and the original is saved in a backup folder under the user data directory.

What it steers the agent away from

  • Editing source, config or lock files such as .py, .json or .yaml.
  • Sending files that look like secrets or contain credentials to the provider.
  • Leaving the original file damaged when compression keeps failing.

Install this skill

It installs with the Caveman pack.

All detected agents (Caveman CLI)Detects your agents and logins, shows the changes and installs the full set including the proxy.
npx @caveman-ai/cli@latest
Skills only (npx skills)Installs just the skills without the proxy; remove them later with npx skills remove.
npx skills add JuliusBrussee/caveman -g
Claude Code (plugin)Run in a terminal; the plugin starts caveman in every interactive session.
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman
Claude Code (inside a session)The same plugin, typed as slash commands in the Claude Code prompt.
/plugin marketplace add JuliusBrussee/caveman
/plugin install caveman@caveman
Gemini CLIInstalls caveman as a Gemini CLI extension.
gemini extensions install https://github.com/JuliusBrussee/caveman
Every agent via script (macOS, Linux)Pinned to v4.1.0; also adds a Claude Code statusline badge and needs Node.js 22.13 or later.
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.sh | bash
Every agent via script (Windows)PowerShell 5.1 or later.
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.ps1 | iex

Commands come from the author’s README; check it for changes before you run them.

Questions

Where does the backup go?

To a caveman-compress backups folder under XDG_DATA_HOME, or LOCALAPPDATA on Windows, so skill loaders do not pick it up as a live file.

Which provider does it use?

Whichever one the bundled script is set up to call: the claude CLI, Anthropic's API, or an endpoint compatible with OpenAI's API.

More guides from Caveman

Also in this pack

All 21 skills →

Summary by trendhub. The skill itself lives in JuliusBrussee/caveman/skills/caveman-compress by Julius Brussee (Apache-2.0); read the full, current text there.