prompt-compressor

Compress verbose prompts and context to reduce token usage before LLM processing.

27|9|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/georgekhananaev/claude-skills-vault --skill prompt-compressor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-compressor
Source: https://github.com/georgekhananaev/claude-skills-vault/tree/main/.claude/skills/prompt-compressor
Command: npx skills add https://github.com/georgekhananaev/claude-skills-vault --skill prompt-compressor

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compress verbose prompts & context before processing. This skill reduces token usage and speeds up LLM interactions by trimming unnecessary language while preserving meaning.

Core Features & Use Cases

  • Prompt trimming: Remove filler phrases and hedging to focus on intent.
  • Token reduction: Achieve noticeable savings in token counts for long prompts.
  • Use Case: Paste a long instruction or transcript and obtain a concise prompt ready for the LLM.

Quick Start

Use the prompt-compressor skill to shrink a verbose user prompt before sending it to the LLM:

  1. Provide the prompt text to compress (or pipe from a file).
  2. Choose a compression level (light, medium, heavy).
  3. Review the compressed result and token savings.

Frequently Asked Questions about prompt-compressor

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

FAQPage Schema
How do I reduce token usage in long LLM prompts?

To reduce token usage in long LLM prompts, you can compress verbose text by identifying core intent, extracting essential context, and applying token abbreviations before processing. This removes redundant phrasing and filler while preserving the original meaning.

What is the best way to compress text before sending it to an LLM?

The best way to compress text for an LLM is to apply a compression utility that trims unnecessary language and filler from technical docs and conversations. This focuses the prompt on the core intent while retaining essential context for accurate responses.

Does prompt compression work on pasted user content and transcripts?

Prompt compression works effectively on pasted user content and transcripts by trimming unnecessary language and hedging. It processes inputs longer than 1500 tokens to achieve noticeable savings in token counts while keeping the core intent intact.

How do I choose a compression level for my prompt text?

You can choose a compression level for your prompt text by selecting light, medium, or heavy options based on your token reduction needs. After providing the text, review the compressed result and token savings to ensure the essential context is preserved.

When should I apply token abbreviations to technical documentation?

You should apply token abbreviations to technical documentation when your inputs exceed 1500 tokens or contain redundant phrasing. This removes fluff and focuses the prompt on the essential context needed for accurate LLM processing.

Can I protect specific text from being removed during prompt compression?

You can protect specific text from being removed during prompt compression by defining protected content within your inputs. The compression process preserves this protected content while applying token abbreviations and removing fluff from the remaining text.