caveman-compress

Compress natural language memory files into caveman format with backups.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/NihaalManaf/LDR-Island --skill caveman-compress-nihaalmanaf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/NihaalManaf/LDR-Island/tree/main/.agents/skills/caveman-compress
Command: npx skills add https://github.com/NihaalManaf/LDR-Island --skill caveman-compress-nihaalmanaf

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 reduce input tokens while preserving content and structure.

Core Features & Use Cases

  • Overwrites the original file with a caveman-compressed version and saves a human-readable backup as FILE.original.md
  • Validates results and retries with targeted fixes to preserve content fidelity
  • Enforces a 500KB size limit and only compresses natural language prose (skips code/config)

Quick Start

Run caveman-compress <filepath> to compress a memory file and save a 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 input tokens in markdown memory files without losing critical structure?

To reduce input tokens in markdown memory files, you can compress natural language prose into a caveman format. This process preserves code blocks, URLs, and headings while overwriting the original file and saving a human-readable backup.

What is caveman compression for CLAUDE.md and other memory files?

Caveman compression is an automated token reduction technique for memory files like CLAUDE.md and todos. It compresses natural language prose while skipping code and configuration sections, validating results and retrying to ensure content fidelity.

How do I compress a memory file using the caveman-compress CLI?

To compress a memory file, run the command caveman-compress <filepath> in your CLI. The script enforces a 500KB size limit, compresses the prose, saves a backup as FILE.original.md, and overwrites the original file.

Does memory file compression preserve code blocks and URLs?

Yes, memory file compression preserves code blocks, URLs, headings, and other critical structural elements. It specifically targets natural language prose for compression and skips code or configuration files to maintain technical integrity.

Are there file size limits or backup requirements for compressing markdown memory files?

When compressing markdown memory files, the CLI enforces a strict 500KB size limit. A human-readable backup is automatically generated as FILE.original.md before the original file is overwritten with the compressed version.