caveman-compress

Compress natural-language markdown memory files into caveman format with .original.md backups.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to reduce per-session token usage. The process preserves all technical substance, code blocks, URLs, and structure. Compressed files overwrite the original, with a human-readable backup saved as FILE.original.md.

Core Features & Use Cases

  • Compress natural language markdown files adjacent to the skill into caveman format so Claude reads fewer tokens per session.
  • Preserve code blocks, URLs, file paths, and headings exactly, while producing a compressed CLAUDE.md and a backup as CLAUDE.original.md.
  • Use cases include reducing memory load for long-running projects and tasks where token efficiency is critical.

Quick Start

Run caveman:compress <filepath> to compress a natural-language markdown file and save a .original.md backup.

Frequently Asked Questions about caveman-compress

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

FAQPage Schema
How do I reduce token usage when loading markdown memory files in Claude?

Compressing markdown memory files into caveman format reduces per-session token usage when interacting with Claude. It preserves code blocks, URLs, and file paths while overwriting the original with a human-readable .original.md backup.

Does compressing CLAUDE.md preserve code blocks and file structure?

Compressing CLAUDE.md preserves code blocks, URLs, file paths, and headings exactly while applying deterministic caveman compression to natural language. The process creates a compressed file and saves a backup as FILE.original.md.

How do I compress markdown memory files to save tokens for long-running projects?

Run caveman:compress <filepath> to compress a natural-language markdown file into caveman format. This reduces memory load and token consumption for long-running projects where token efficiency is critical.

Are original files preserved when compressing markdown memory notes?

Original files are preserved by creating a human-readable backup saved as FILE.original.md before the compressed version overwrites the original. The workflow also skips sensitive filenames and validates results to ensure safety.

What happens if markdown compression fails or produces invalid results?

The compression workflow enforces safety by validating results, retrying failed compressions, and preserving the original file when necessary. Sensitive filenames are automatically skipped to prevent unintended modifications.

Can I compress todos and memory preferences or only CLAUDE.md files?

You can compress any natural-language markdown file including CLAUDE.md, todos, and memory notes. The process targets adjacent markdown files and applies caveman compression while maintaining technical substance and structure.