caveman-compress

Compress natural language markdown files into a concise format while preserving code blocks and paths.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/achmf/KostaHub --skill caveman-compress-achmf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/achmf/KostaHub/tree/main/.agents/skills/caveman-compress
Command: npx skills add https://github.com/achmf/KostaHub --skill caveman-compress-achmf

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill reduces the token overhead of project memory files like CLAUDE.md by compressing them into a concise, caveman-style format that retains all technical substance while significantly lowering input costs.

Core Features & Use Cases

  • Token Optimization: Automatically compresses natural language documentation and project notes by an average of 46 percent.
  • Safety-First Processing: Preserves all code blocks, file paths, URLs, and technical instructions exactly as written, ensuring no loss of functional accuracy.
  • Use Case: If your project has a large CLAUDE.md file that consumes excessive tokens every time you start a session, use this skill to shrink the file while keeping your instructions intact.

Quick Start

Run the caveman compress skill on your project memory file by typing the command /caveman:compress CLAUDE.md in your terminal.

Frequently Asked Questions about caveman-compress

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

FAQPage Schema
How do I reduce the token consumption of my project memory markdown files?

To reduce token consumption of markdown project memory files, compress natural language documentation into a concise format that preserves code blocks and technical specifications while lowering LLM input costs.

Can I compress a CLAUDE.md file without losing file paths and code blocks?

Yes, compressing a CLAUDE.md file preserves all code blocks, file paths, URLs, and technical instructions exactly as written, ensuring functional accuracy is maintained alongside token optimization.

What is the best way to optimize markdown documentation for LLM input costs?

The best way to optimize markdown documentation for LLM input costs is to use Python-based validation and Claude-driven summarization to compress natural language text while strictly maintaining structural integrity.

Does compressing markdown documentation affect the accuracy of technical instructions?

Compressing markdown documentation does not affect technical accuracy because the process strictly preserves all code blocks, file paths, URLs, and technical specifications exactly as originally written.

How do I start compressing project notes to save tokens every session?

To start compressing project notes to save tokens every session, run the compress command on your markdown memory file in the terminal to trigger the Python-based validation and summarization process.

When should I not use markdown compression for my project documentation?

Markdown compression targets natural language documentation and project notes, so it should not be used when uncompressed conversational context or verbose explanations are explicitly required for LLM reasoning.