caveman-compress

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

1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/Tyler-R-Kendrick/slm-training --skill caveman-compress-tyler-r-kendrick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/Tyler-R-Kendrick/slm-training/tree/main/.agents/skills/caveman-compress
Command: npx skills add https://github.com/Tyler-R-Kendrick/slm-training --skill caveman-compress-tyler-r-kendrick

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 natural language into a concise, caveman-style format without losing technical substance.

Core Features & Use Cases

  • Token Efficiency: Automatically compresses prose while preserving code blocks, URLs, and file paths, resulting in significant token savings per session.
  • Safety & Integrity: Validates output to ensure headings, code, and technical instructions remain intact, with an automatic backup system that creates .original.md files.
  • Use Case: If your project memory file is large and consumes excessive tokens every time you start a session, use this skill to shrink it by an average of 46% while keeping all instructions functional.

Quick Start

Run the caveman-compress skill on your CLAUDE.md file to reduce its token footprint.

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

Compressing markdown project memory files minimizes input token consumption during AI sessions. This skill shrinks natural language prose into a concise format, reducing file size by an average of 46% while preserving code blocks and technical paths.

Does compressing markdown documentation affect code blocks and file paths?

Compressing markdown documentation leaves code blocks, URLs, and file paths intact. The process strictly preserves technical instructions and structural integrity through a multi-stage validation and retry loop to prevent data loss.

Can I recover my original markdown file after token compression?

You can recover your original markdown file because the compression process includes an automatic backup system. It creates .original.md files before modifying the active documentation to ensure your data is safely preserved.

Do I need tiktoken or anthropic dependencies to run markdown compression scripts?

You need both tiktoken and anthropic dependencies installed to run these markdown compression scripts. They provide the required environment for calculating token efficiency and executing the natural language compression process.

What is the best way to optimize CLAUDE.md files for AI session efficiency?

The best way to optimize CLAUDE.md files for AI session efficiency is to compress natural language into a concise format. This minimizes token overhead while keeping all functional instructions completely intact.