← ClaudeAtlas

prompt-compressorlisted

Compress verbose prompts & context before LLM processing. This skill should be used when input exceeds 1500 tokens, contains redundant phrasing, or includes unnecessary context. Reduces tokens by 40-60%.
hackermanishackerman/claude-skills-vault · ★ 2 · AI & Automation · score 71
Install: claude install-skill hackermanishackerman/claude-skills-vault
# Prompt Compressor Compress verbose prompts/context before processing. Saves 40-60% tokens. ## When to Use Invoke when: - Input >1500 tokens - User pastes entire files (needs only sections) - Prompts have redundant phrasing - Context includes irrelevant info - Commands: `/compress-prompt`, `/cp` ## Process 1. **Identify core intent** - What user actually wants 2. **Extract essential context** - Only what's needed 3. **Remove redundant phrases** - See rules below 4. **Apply abbreviations** - Use `token-formatter` conventions 5. **Output compressed version** - w/ token savings % ## Compression Rules ### Remove Phrases | Remove | Transform To | |--------|--------------| | "Please help me with" | (delete) | | "I need you to" | (delete) | | "Could you please" | (delete) | | "I would like to" | (delete) | | "I think", "Maybe", "Perhaps" | (delete) | | "This might be a dumb question" | (delete) | | "As I mentioned before" | (delete) | | "For your reference" | (delete) | ### Transform Patterns | Verbose | Compressed | |---------|------------| | "I want to create a fn that takes X and returns Y" | `fn(X) → Y` | | "The error message says..." | `Error: ...` | | "In the file located at..." | `File: ...` | | "I'm trying to..." | `Goal: ...` | | "Here is my code..." | `Code:` | | "The problem is that..." | `Issue: ...` | ### Never Compress (Security) See `references/never_compress.md` for full list: - Auth headers, tokens, cred