token-optimizer
CommunityShrink prompts and docs to boost context.
Authorgeorgekhananaev
Version1.0.0
Installs1
System Documentation
What problem does it solve?
This Skill reduces token count in prompts, documentation, and prose to improve LLM context efficiency and readability.
Core Features & Use Cases
- Prompt Compression: dramatically reduces prompt size while preserving meaning.
- Doc Formatting: compresses and standardizes Markdown/doc prose for quick comprehension.
- TOON Serialization: converts data objects to TOON format to minimize context size.
- Prose Clarity: applies Strunk's rules to produce concise, precise text.
Quick Start
Use the token-optimizer to compress a sample prompt or document. Example: python scripts/compress_prompt.py "Your long text here" or python scripts/compress.py docs.md
Dependency Matrix
Required Modules
tiktoken
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: token-optimizer Download link: https://github.com/georgekhananaev/claude-skills-vault/archive/main.zip#token-optimizer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.