If you're working with large CLAUDE.md files or project memory that's eating your token budget, this compresses them into caveman speak while keeping all the technical bits intact. It strips articles, filler words, and pleasantries but leaves code blocks, URLs, commands, and file paths completely untouched. The original gets backed up as .original.md before being overwritten. It's a pretty aggressive approach to token savings, and the compressed output reads like telegram shorthand, but if you're repeatedly hitting context limits on documentation heavy projects, shaving 30 to 40 percent off your memory files without losing substance is worth the tradeoff.

GitHub stars
504
last updated
Jun 11, 2026

Install

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill caveman-compress --agent claude-code

Installs into .claude/skills of the current project.

Files

Caveman Compress

Purpose

Compress natural language files (CLAUDE.md, todos, preferences) into caveman-speak to reduce input tokens. Compressed version overwrites original. Human-readable backup saved as <filename>.original.md.

Trigger

/caveman:compress <filepath> or when user asks to compress a memory file.

Process

  1. The compression scripts live in caveman-compress/scripts/ (adjacent to this SKILL.md). If the path is not immediately available, search for caveman-compress/scripts/__main__.py.

  2. Run:

cd caveman-compress && python3 -m scripts <absolute_filepath>

  1. The CLI will:
  • detect file type (no tokens)
  • call Claude to compress
  • validate output (no tokens)
  • if errors: cherry-pick fix with Claude (targeted fixes only, no recompression)
  • retry up to 2 times
  • if still failing after 2 retries: report error to user, leave original file untouched
  1. Return result to user

Compression Rules

Sponsors

Details

Repository
github.com/hoangnguyen0403/agent-skills-standard
Category
AI & Agent Building
License
Apache-2.0
First seen
Jun 11, 2026

More from hoangnguyen0403/agent-skills-standard

All 28
1hoangnguyen0403 avatarcaveman-reviewhoangnguyen0403/agent-skills-standard>0skills.sh installs
2hoangnguyen0403 avatardeploy-releasehoangnguyen0403/agent-skills-standardPrepare and verify a staged or production deployment with rollback and smoke checks.0skills.sh installs
3hoangnguyen0403 avatardesign-solutionhoangnguyen0403/agent-skills-standardTurn an approved PRD or implementation goal into SRS/FRS technical requirements (How), architecture, contracts, and verification decisions.0skills.sh installs
4hoangnguyen0403 avatardev-fixhoangnguyen0403/agent-skills-standardUnified developer workflow for fixing bugs. Analyzes issue-tracker context, cross-checks docs/code, proposes a solution, implements the fix, verifies locally, a0skills.sh installs
5hoangnguyen0403 avatarimplement-featurehoangnguyen0403/agent-skills-standardImplement an approved feature plan with fresh-context slices, TDD, evidence, and PR-ready output.0skills.sh installs
6hoangnguyen0403 avatarimplementation-readinesshoangnguyen0403/agent-skills-standardVerify BRD-lite, PRD, SRS/FRS, UX, and test prerequisites before implementation starts.0skills.sh installs