compress

Compress natural language memory files into caveman format with backups.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/roberttmadsen13-del/TOURney --skill compress-roberttmadsen13-del
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/roberttmadsen13-del/TOURney/tree/main/SKILLS/caveman-main/skills/compress
Command: npx skills add https://github.com/roberttmadsen13-del/TOURney --skill compress-roberttmadsen13-del

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anthropic, and includes scripts (resource) components.

What problem does it solve?

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens while preserving all technical substance, code, URLs, and structure. Compressed version overwrites the original file. A human-readable backup is saved as <filename>.original.md.

Core Features & Use Cases

  • Deterministic caveman compression of natural language memories (CLAUDE.md, todos, preferences) using Claude with a CLI fallback.
  • Backups the original content as a human-readable file named based on the original filename with .original.md extension.
  • Enforces safety boundaries: maximum file size (500KB), sensitive-path checks, and validates output with retries if needed.
  • Triggered via the caveman CLI or the /caveman:compress prompt.

Quick Start

Run caveman compression on a natural language file, e.g., caveman /path/to/CLAUDE.md

Frequently Asked Questions about compress

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress CLAUDE.md memory files to save input tokens?

Compress CLAUDE.md memory files to save input tokens by converting natural language into caveman format while preserving technical substance, code, and URLs. The compressed version overwrites the original file, and a human-readable backup is saved as <filename>.original.md.

What is caveman format compression for markdown memory files?

Caveman format compression for markdown memory files is a deterministic token-optimization process that strips natural language verbosity while retaining all technical substance, code, and structure. It targets files like CLAUDE.md, todos, and preferences to reduce input token consumption.

Does the compress Skill keep a backup of original markdown files?

The compress Skill keeps a backup of original markdown files by saving the human-readable content as <filename>.original.md before overwriting the original file with the compressed caveman format version, ensuring you retain full readability.

What is the maximum file size limit for compressing memory files?

The maximum file size limit for compressing memory files is 500KB. The compression process enforces this safety boundary along with sensitive-path checks to prevent processing restricted files, validating output with up to two retries if needed.

Can I use the caveman CLI to compress todos and preferences files?

You can use the caveman CLI to compress todos and preferences files by running the command with the file path. It applies deterministic caveman compression to natural language content, preserving technical substance while saving input tokens.

Why does token optimization for memory files matter when using Claude?

Token optimization for memory files matters because reducing input tokens in files like CLAUDE.md lowers processing overhead and cost when using Claude. Compressing natural language into caveman format preserves technical substance while shrinking token count.