/loopkit:prompt-cachingfrom loopkit
Caches stable prompt prefixes (system prompt, tool defs, reference docs) across long-running loops to reduce input costs by ~90% on cached reads.
Ships in loopkit. 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.
Every turn of a Plan→Act→Verify loop resends the same system prompt, the same tool definitions, and (usually) the same reference docs. Without cache breakpoints you pay full input price on all of it, every turn. With them, cached reads cost ~10% of the write.
Cache from the top of the prompt down. The cache is prefix-matched — a break in the middle invalidates everything after it.
Everything past the last breakpoint is billed fresh every turn. That's fine — that's where the changing content goes.
Pick 5m unless you know turns are minutes apart.
If cost isn't dropping, log the cache-hit metric. Do not assume.
Cache write ≈ 1.25× normal input. Cache read ≈ 0.1× normal input. So a stable 20K-token prefix hit N times: N=1 costs more than no-cache; N=2 breaks even; N=10 costs ~15% of no-cache. Long loops win big; short chats lose.
Cache is the single biggest cost lever on a long-running agent. Set it once at the start of the loop, verify hits, forget it.
What SKILL.md sets; muted values are Claude Code's defaults
long session, repeated large context, cost climbing, system prompt >1024 tokens, unchanged tool definitions across turns
npx claudepluginhub archive228/loopkit --plugin loopkit53 skills in this plugin
/a11y-passCatch the accessibility failures that ship in almost every AI-built UI. Use after building any interactive component./active-memory-reminderBefore compaction Loopkit extracts decisions into claude-decisions.json (machine-readable). Read it alongside claude-progress.txt at session start — prose is for humans, JSON is for the loop./adversarial-verifyReview a diff against the goal spec assuming the code is BROKEN. The reviewer that lives in the maker's head always agrees with itself — this pulls review into a hostile, separate pass. Invoke after every code change before marking work done.Other plugins' skills for the same job