/justokenmax:cache-alignfrom justokenmax
Preserves prompt-prefix stability to maintain KV cache hits, reducing cost and latency in long Claude Code sessions. Guides structuring system prompts, memory files, and tool definitions to avoid cache invalidation.
Ships in justokenmax. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Providers cache the KV state of a stable prompt prefix; a cache hit is far cheaper and faster than recomputing it. Any edit near the START of the context invalidates everything after it. This skill is the discipline that keeps the prefix stable so the cache keeps paying off.
If a long session is getting expensive, check for prefix churn first: a memory file being rewritten each turn, a timestamp in the system prompt, tool definitions being regenerated. Fixing prefix stability often saves more than any single compression.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/attachmentsCompress heavy context before it costs tokens. Use when the user attaches or asks to read a PDF, scanned document, screenshot/large image, or a verbose log / build output / CI output — convert PDFs to Markdown, compress oversized images, and digest noisy logs so the same content costs a fraction of the tokens./chat-branchKeep the main conversation cheap by offloading heavy sub-tasks to isolated subagent contexts. Use when a sub-task (research sweep, large-file investigation, log triage, broad search) will generate a lot of intermediate output whose conclusion is small — branch it to a subagent so the verbose work never enters the main thread, and merge back only a compact digest./code-indexFind code by symbol name instead of reading whole files. Use when you need to locate a function, class, or method, understand where something is defined, or navigate an unfamiliar repo — query the jusTokenMax code index to get file:line + signature in a few tokens, then read only that range.npx claudepluginhub kalmantic/justokenmax --plugin justokenmaxOther plugins' skills for the same job