caveman-compress

Compress natural language memory files to reduce input tokens.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/fableindigo-gif/animated-system --skill caveman-compress-fableindigo-gif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/fableindigo-gif/animated-system/tree/main/omnianalytix-mirror/.agents/skills/caveman-compress
Command: npx skills add https://github.com/fableindigo-gif/animated-system --skill caveman-compress-fableindigo-gif

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compress natural language memory files to reduce token usage during Claude sessions, while preserving readability of backups and structure.

Core Features & Use Cases

  • Compress CLAUDE.md, todos, and preferences into caveman format to minimize loaded tokens per session.
  • Preserve code blocks, URLs, file paths, headings, and tables; automatically back up the original as .original.md.
  • Works with local files, retries up to 2 times on validation errors to ensure correctness.

Quick Start

Run caveman:compress on a memory file to generate a compressed CLAUDE.md and a backup named filename.original.md.

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 for Claude markdown memory files?

Markdown memory files like CLAUDE.md are compressed into a caveman format to reduce loaded input tokens during Claude sessions. The process preserves code blocks, URLs, and file structure while backing up the original file.

How do I compress CLAUDE.md while preserving code blocks and URLs?

Compressing CLAUDE.md while preserving code blocks and URLs requires a deterministic workflow that detects file type, validates output, and retries up to 2 times. The original file is automatically backed up as filename.original.md before compression.

Does markdown compression work with local memory files and todos?

Markdown compression works with local memory files, todos, and preferences across projects. It is applied when opening Claude sessions to lower token costs by converting natural language into a minimized caveman format.

What is the best way to back up markdown files before token compression?

Using an automated workflow that saves the original as filename.original.md is the best way to back up markdown files before token compression. This ensures the readable backup is preserved alongside the compressed version.

Are there limitations when compressing markdown file structure for token savings?

Validation errors during markdown file structure compression for token savings may occur, but the workflow retries up to 2 times. The tool enforces a deterministic process to ensure code blocks, headings, and tables are preserved.