Giverny

Prompt Caching Strategy

Optimize LLM prompt caching hit rate to reduce API costs and improve latency. Analyzes prompt structure, identifies cacheable vs non-cacheable content, and recommends…

by affaan-m★ 313,457Performance

What Prompt Caching Strategy does

Optimize LLM prompt caching hit rate to reduce API costs and improve latency. Analyzes prompt structure, identifies cacheable vs non-cacheable content, and recommends restructuring to maximize cache reuse. TRIGGER when: user says "prompt cache", "cache hit rate", "reduce LLM cost", "optimize token usage", "cheaper LLM calls", or asks about prompt caching strategies for OpenAI/Anthropic/other providers. DO NOT TRIGGER when: user just wants to optimize a single prompt's quality (use prompt-optimizer instead), or asks about general caching infrastructure.

How to install Prompt Caching Strategy in Claude Code

Giverny gives you a ready prompt with the exact install command from affaan-m/ECC. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone affaan-m/ECC and copy the skills/prompt-caching-strategy folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Prompt Caching Strategy on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the prompt-caching-strategy skill on my current project.”

More Claude skills for performance