Prompt caching strategy
Optimize LLM prompt caching hit rate to reduce API costs and improve latency.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: prompt-caching-strategy
description: >-
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.
metadata:
origin: community
author: cyberspace-cs
version: "1.0.0"
---
# Prompt Caching Strategy
Arrange reusable prompt content to improve cache reuse, then measure input cost
and latency. Savings depend on model, platform, cache eligibility, writes,
retention, reuse and output volume. Runtime cache hits and savings for this skill
are **unmeasured**; the examples below validate arithmetic without provider calls.
## When to Activate
Use for repeated API requests that share authorized instructions, tools or
reference material. First identify the exact provider endpoint, model, service
tier and caching mode. Consult its current documentation before selecting rates,
minimum prefix length or retention. Caching does not reduce context-window use.
## How It Works
### Preserve a stable prefix
Keep reusable instructions, tool schemas and examples stable; place changing
questions, timestamps and retrieved results after that content where the API
allows. Respect the provider's serialization order: Claude uses tools, system,
then messages. Matching prefixes need identical content, including tool schemas
and relevant request settings. A changed prefix can prevent reuse from that
...From affaan-m's repository, MIT licence.
Related skills
-
Checked
Competitor map
Maps your direct and indirect competitors, their prices and complaints, and the gap your business can own.
7/101 credit -
Checked
Pricing strategy
Helps you set prices, tiers and trials, plan a price rise and move existing customers onto new plans.
8/101 credit -
Checked
Unit economics check
Works out CAC, LTV, payback and margin per customer to show whether your business model can be profitable.
7/101 credit -
Checked
OKR writer
Drafts, reviews and rewrites outcome based OKRs for teams or companies, without invented baselines or targets.
8/101 credit -
Checked
Strategy red team
Attacks the key assumptions in a plan or roadmap and gives the cheapest test and kill criteria for each one.
8/101 credit -
Checked
Competitor strategy teardown
Breaks down competitors' SEO, ads, social, email, pricing and positioning so you can see where to beat them.
7/101 credit