compress

Compress natural language memory files into caveman format with Python scripts.

Updated Jan 13, 2025
One-click install
npx skills add https://github.com/phucle297/dotfiles --skill compress-phucle297
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/phucle297/dotfiles/tree/main/.claude/plugins/cache/caveman/caveman/ef6050c5e184/plugins/caveman/skills/compress
Command: npx skills add https://github.com/phucle297/dotfiles --skill compress-phucle297

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill compresses natural language memory files into caveman format, reducing input tokens while preserving technical substance, code, URLs, and structure.

Core Features & Use Cases

  • Memory File Compression: Compresses CLAUDE.md, todos, and preferences files into caveman format.
  • Preservation of Technical Content: Maintains all code, URLs, and technical terms.
  • Backup: Creates a human-readable backup of the original file before overwriting.
  • Trigger: Can be triggered with the command /caveman:compress FILEPATH or by asking to compress a memory file.

Quick Start

Run the command /caveman:compress /path/to/your/file.md to compress a memory file.

Frequently Asked Questions about compress

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

FAQPage Schema
How do I compress memory files to save input tokens?

Compress memory files by converting natural language into caveman format using the `/caveman:compress FILEPATH` command. This reduces input tokens while preserving code, URLs, and technical structure.

What is caveman format for text compression?

Caveman format is a text compression style that condenses natural language memory files into simplified syntax. It retains technical substance, code, and URLs while stripping verbose grammar to maximize token efficiency.

Does compressing memory files preserve code and URLs?

Yes, compressing memory files preserves code, URLs, and technical terms. The compression targets natural language verbosity while explicitly maintaining the structural and technical elements of the original files.

Do I need Python and Claude API integration to run memory file compression?

Yes, memory file compression requires Python scripts and Claude API integration to function. The tool relies on these dependencies to process natural language files and generate the compressed caveman format output.

Can I create a backup before overwriting a compressed memory file?

Yes, the compression process creates a human-readable backup of the original file before overwriting it. This ensures you retain the full natural language version for reference or restoration.

What are the limitations of using caveman format for memory compression?

The limitation of caveman format is reduced human readability due to simplified syntax. While technical content is preserved, the condensed text may be harder to manually review without restoring the original backup file.