caveman-compress

Compress natural language in markdown files while preserving code blocks and URLs.

1|Updated Aug 16, 2023
One-click install
npx skills add https://github.com/monlor/dotfiles --skill caveman-compress-monlor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caveman-compress
Source: https://github.com/monlor/dotfiles/tree/main/config/ai/agents/skills/caveman-compress
Command: npx skills add https://github.com/monlor/dotfiles --skill caveman-compress-monlor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill reduces the number of input tokens Claude uses for memory files by compressing them into a smaller caveman format.

Core Features & Use Cases

  • Memory File Compression: Compresses natural language memory files (like CLAUDE.md, todos, preferences) to save tokens.
  • Preservation of Technical Content: Preserves all technical details, code, URLs, and file paths while compressing prose.
  • Backup and Restore: Generates a human-readable backup of the original file for editing and version control.

Quick Start

Run the caveman-compress skill with the file path you want to compress, e.g., /caveman-compress CLAUDE.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 Claude input tokens for memory files?

To reduce Claude input tokens, compress natural language memory files like CLAUDE.md into a smaller caveman format. This decreases computational costs by lowering the token count Claude needs to process memory files.

Does token compression preserve code blocks and URLs in markdown files?

Token compression preserves code blocks, URLs, technical details, and file paths in markdown files. It selectively compresses prose and natural language text while leaving all structural and technical content untouched.

How do I compress CLAUDE.md to save context window space?

Compress CLAUDE.md to save context window space by running the caveman-compress skill with the file path. The skill processes the markdown file and outputs a compressed version with reduced token size.

Can I restore or edit memory files after token compression?

You can restore or edit memory files after token compression because the skill generates a human-readable backup of the original file. This backup ensures you retain access to the uncompressed text for editing and version control.

What is caveman format compression for markdown text?

Caveman format compression is a token reduction technique that condenses natural language prose in markdown files. It transforms memory file text into a smaller format while retaining all technical details and code syntax.