compress

Compress markdown memory files to reduce token usage while preserving technical content.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/RDCrystalLab/agentic-plugins --skill compress-rdcrystallab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/RDCrystalLab/agentic-plugins/tree/main/plugins/caveman/skills/caveman-compress
Command: npx skills add https://github.com/RDCrystalLab/agentic-plugins --skill compress-rdcrystallab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill reduces input token usage by compressing natural language memory files while keeping technical substance, structure, and important references intact.

Core Features & Use Cases

  • Caveman Compression: Converts verbose markdown memory files such as CLAUDE.md, todos, and preferences into concise human-readable formats.
  • Content Preservation: Protects code blocks, inline code, URLs, commands, paths, technical terms, and document structure during compression.
  • Use Case: Reduce the size of an AI agent memory file before loading it into context while maintaining all operational information.

Quick Start

Ask the AI to compress the memory file at the provided path using the caveman compression skill.

Frequently Asked Questions about 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 without losing technical details?

You can compress markdown memory files using Claude-based caveman compression to shrink natural language text while preserving code blocks, inline code, URLs, commands, paths, technical terms, and overall document structure.

What is caveman compression for AI agent memory and how does it work?

Caveman compression is a technique that converts verbose natural language memory files into concise human-readable formats, reducing input token consumption for AI context optimization while retaining critical operational information.

Can I compress a CLAUDE.md file and still keep my code blocks and URLs intact?

Yes, the compression process explicitly protects code blocks, inline code, URLs, commands, paths, technical terms, and document structure during compression, ensuring technical content remains fully intact for operational use.

Do I need Anthropic and tiktoken dependencies to optimize markdown memory for token reduction?

Yes, optimizing markdown memory files requires the Anthropic and tiktoken dependencies to execute Claude-based compression and perform validation checks for token optimization on your markdown memory files.

Are there limitations on what markdown content can be compressed without breaking structure?

While the compression handles markdown memory files like CLAUDE.md, todos, and preferences, it specifically limits changes to natural language, deliberately leaving code blocks, inline code, URLs, commands, and paths untouched.

What is the best way to back up memory files before applying token optimization?

The provided scripts handle file backup management automatically during the compression process, ensuring your original markdown memory files are safely backed up before applying token optimization.