compress

Compress natural language memory files into caveman format and save backups.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/giovannimnz/gsd-caveman-hermes --skill compress-giovannimnz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/giovannimnz/gsd-caveman-hermes/tree/main/skills/compress
Command: npx skills add https://github.com/giovannimnz/gsd-caveman-hermes --skill compress-giovannimnz

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress <filepath> or "compress memory file"

Core Features & Use Cases

  • Compress natural language memory files to caveman format, reducing input tokens while preserving content.
  • Backups original file as FILE.original.md to enable recovery if needed.
  • Works with CLAUDE.md, todos, preferences, and similar memory files; integrates with caveman workflow.

Quick Start

Run caveman:compress on a target file to generate a compressed version and a backup named filename.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 input tokens in CLAUDE.md memory files?

Compressing natural language memory files into caveman format reduces input tokens by overwriting the original file with a condensed version. The process preserves code blocks, URLs, and file paths, and saves a human-readable backup as FILE.original.md.

What is caveman format compression for markdown memory files?

Caveman format compression is a technique that condenses natural language memory files like CLAUDE.md, todos, and preferences to save tokens. It preserves essential structural elements like code blocks, URLs, and file paths during the compression process.

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

Yes, compressing memory files saves a human-readable backup as FILE.original.md before overwriting the original. This backup ensures you can recover the full natural language content if the compressed caveman version needs rollback.

How do I compress a natural language file to save tokens step by step?

Run the compress command on a target file to generate a compressed caveman version. The tool automatically overwrites the original file with the condensed content and creates a backup named filename.original.md for recovery.

Are code blocks and file paths preserved when compressing markdown to caveman format?

Yes, compressing markdown memory files into caveman format explicitly preserves code blocks, URLs, and file paths. Only the surrounding natural language text is condensed to achieve token savings.

When should I not use caveman format compression on project memory files?

You should avoid compressing memory files when full human readability is required for active editing or collaboration. The caveman format intentionally condenses natural language, which may make direct reading difficult without restoring the FILE.original.md backup.