caveman-compress

Convert natural language markdown into caveman format to reduce token usage.

Updated May 2, 2026
One-click install
npx skills add https://github.com/artgaurav16420-oss/Mega-Skills --skill caveman-compress-artgaurav16420-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/artgaurav16420-oss/Mega-Skills/tree/main/distribution/harnesses/tabnine/agent/skills/caveman-compress
Command: npx skills add https://github.com/artgaurav16420-oss/Mega-Skills --skill caveman-compress-artgaurav16420-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compress memory files by converting natural language markdown into caveman format to cut token usage.

Core Features & Use Cases

  • Preserve URLs, headings, and code blocks while reducing size
  • Create a backup of the original file as <filename>.original.md
  • CLI and programmatic usage with safety checks (size limits, sensitive-path refusals)

Quick Start

Run the caveman-compress CLI on a Markdown file to compact memory content while preserving structure.

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

You can reduce token usage in markdown memory files by compressing natural language text into caveman format. This process shrinks file size while preserving URLs, code blocks, headings, and file paths.

What is caveman compression for markdown tokens?

Caveman compression for markdown tokens is a technique that converts natural language memory files into a compact caveman format. It safely backs up original files while enforcing a 500KB size limit and refusing sensitive paths.

Can I compress CLAUDE.md size without losing code blocks and URLs?

Yes, you can compress CLAUDE.md size without losing code blocks and URLs by using caveman compression. It specifically preserves file paths, headings, code blocks, and URLs while compacting the surrounding natural language text.

Does markdown compression work with sensitive filenames or paths?

Markdown compression refuses to process sensitive filenames or paths to ensure safety. It enforces a 500KB limit, validates output with retries, and creates a backup of the original file before compressing.

How do I safely compact long project notes for memory storage?

To safely compact long project notes for memory storage, run the caveman-compress CLI on your markdown files. It creates a backup as <filename>.original.md and validates the compressed output with retries.