From vinitokx
Use when the user wants to reduce context window usage, asks to compress or summarize content, asks "how do I free up context?", or when token-analyze has identified specific sections for optimization. Also use when you need to compress your own prior tool outputs or responses before continuing a long session.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vinitokx:token-optimizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Apply targeted compression to reduce token usage in specific content — files, conversation history, tool outputs, or prompts — while preserving semantic meaning.
Apply targeted compression to reduce token usage in specific content — files, conversation history, tool outputs, or prompts — while preserving semantic meaning.
| Technique | When to Use | Est. Savings |
|---|---|---|
| Remove redundancy | Repeated explanations, duplicate imports | 10–30% |
| Summarize | Conversation history, verbose docs | 50–80% |
| Use reference | Inline code that could be "see line X" | 20–50% |
| Compress patterns | Repeated structures, long lists | 20–40% |
| Truncate | File contents where partial read suffices | 30–70% |
| Deduplicate | Duplicate tool outputs, repeated reads | 20–60% |
Confirm target content. If called from token-analyze, the target section is already identified.
Estimate current token count (1 token ≈ 4 chars).
Select techniques by content type:
summarize (preserve decisions, discard exploration)truncate + use referenceremove-redundancy + summarizeremove-redundancy + compress-patternsProduce compressed version. Show a diff summary (key additions/removals), not the full diff unless asked.
Estimate savings. Show: [original] → [compressed] tokens ([X]% reduction).
Request confirmation before applying to any live context. Never modify CLAUDE.md or SKILL.md files without explicit user approval.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub gokul-kulkarni/vinitokx --plugin vinitokx