optimize-prompt-token-efficiency
Installation
SKILL.md
Optimize Prompt Token Efficiency
Iteratively optimize prompt token efficiency by maximizing information density through verification loops. Primary goal: reduce token consumption while preserving all semantic content for AI-consumed prompts (CLAUDE.md, skills, agent prompts, specs).
Overview
This skill transforms verbose prompts into token-efficient versions through:
- Verification First -
prompt-token-efficiency-verifierchecks for inefficiencies before any changes - Optimization - Apply targeted compression based on verifier feedback
- Re-verification - Verify compression is lossless, iterate if issues remain (max 5 iterations)
- Output - Atomic replacement only after verification passes
Loop: Read → Verify → (Exit if efficient) → Optimize based on feedback → Re-verify → (Iterate if issues) → Output
Key principle: Don't try to optimize in one pass. The verifier drives all changes - if it finds no inefficiencies, the prompt is already token-efficient.