compress

Compress Markdown memory files into caveman format with backup.

1|Updated Feb 13, 2018
One-click install
npx skills add https://github.com/g-lok/gs-dotfiles --skill compress-g-lok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/g-lok/gs-dotfiles/tree/main/install.d/dotfiles/ai_skills/.agents/skills/compress
Command: npx skills add https://github.com/g-lok/gs-dotfiles --skill compress-g-lok

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compress natural language memory files into caveman format to save input tokens, while preserving critical content such as code blocks, URLs, and structure.

Core Features & Use Cases

  • Compress memory-like Markdown files (CLAUDE.md, todos, preferences) by overwriting the original with a compact version and saving a human-readable backup as FILE.original.md.
  • Maintains strict content integrity by preserving code blocks, URLs, file paths, and commands; triggers are invoked via /caveman:compress <filepath>.

Quick Start

Run caveman compress <filepath> to compress the target file and create a backup as FILE.original.md.

Frequently Asked Questions about compress

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

FAQPage Schema
How do I reduce the input token size of CLAUDE.md memory files?

You can compress CLAUDE.md memory files into a caveman format to save input tokens. This process overwrites the original file with a compact version while preserving critical content like code blocks, URLs, and file paths.

What is caveman format compression for markdown memory files?

Caveman format compression is a technique that converts natural language markdown memory files into a compact representation. It reduces token usage while maintaining strict content integrity for code blocks, file paths, and commands.

How do I compress markdown memory files without losing code blocks and URLs?

To compress markdown memory files without losing content, use a Claude-based compressor that validates output and retries up to two times. The process saves a human-readable backup as FILE.original.md before overwriting the original.

Does compressing markdown memory files with Claude keep a backup of the original content?

Yes, compressing markdown memory files creates a human-readable backup saved as FILE.original.md. The compressor overwrites the original file with the compressed version while ensuring the original content remains accessible.

What are the limitations of compressing markdown files into caveman format?

The compression relies on a Claude-based compressor and separate validator, retrying up to two times to preserve content integrity. It is specifically designed for memory-like Markdown files such as CLAUDE.md, todos, and preferences.

Can I use Claude API to compress natural language markdown files automatically?

Yes, you can use a Claude-based compressor via CLI or API to compress natural language markdown files automatically. The tool validates the compressed output to ensure critical content like code blocks and URLs are preserved.