compress

Compress markdown memory files into token-efficient prose with backups.

Updated Jul 2, 2025
One-click install
npx skills add https://github.com/junechen7414/SpringBoot --skill compress-junechen7414
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/junechen7414/SpringBoot/tree/main/.agents/skills/compress
Command: npx skills add https://github.com/junechen7414/SpringBoot --skill compress-junechen7414

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill compresses natural-language memory files like CLAUDE.md, todos, and preferences so they consume fewer tokens every session while preserving the original meaning and structure.

Core Features & Use Cases

  • Token Reduction: Rewrites long-form project memory into compact caveman-style prose.
  • Safe Preservation: Keeps code blocks, inline code, URLs, paths, headings, and tables exactly intact.
  • Workflow Automation: Compresses a file, saves a .original.md backup, validates output, and retries targeted fixes if needed.
  • Use Case: A team maintains a large CLAUDE.md file and wants every future session to load faster with less context overhead.

Quick Start

Ask the assistant to compress your memory file at the specified path so it can create a smaller version and save a backup automatically.

Frequently Asked Questions about compress

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

FAQPage Schema
How do I reduce tokens in CLAUDE.md memory files?

To reduce tokens in CLAUDE.md memory files, compress natural-language project memory into compact caveman-style prose. This rewriting process shrinks file size while preserving technical content, lowering context overhead for repeated session loading.

Does markdown compression preserve code blocks and file paths?

Markdown compression preserves code blocks, inline code, URLs, file paths, headings, and tables exactly intact. It validates output and applies retry-based repair to ensure structural and technical content remains safe and accurate.

What is the best way to compress project memory files for AI context loading?

The best way to compress project memory files for AI context loading is to rewrite prose-heavy markdown into a token-efficient format while automatically saving a .original.md backup. This ensures faster future sessions without losing original meaning or structure.

How to compress todo lists and preference documents without losing structure?

Compress todo lists and preference documents without losing structure by applying validation rules to headings, code blocks, and paths. The process creates a backup and uses targeted retry repair to keep the compressed file accurate.

Can I use anthropic tools to shrink markdown files for repeated context?

You can use anthropic-based tools to shrink markdown files for repeated context. The compression mechanism targets prose-heavy text files used for repeated context loading, rewriting them into a compact format while keeping a backup of the original file.

Why does my memory file compression break code blocks and URLs?

Memory file compression can break code blocks and URLs if validation fails. This compression skill addresses that by applying validation specifically to headings, code blocks, URLs, and file paths, using retry-based repair to fix broken output safely.