Prompt Caching
Multi-level LLM caching guide covering prompt prefixes, full responses, and cache-augmented generation patterns.
- CCM score
- 53 of 100
- skills.sh installs
- 441
- GitHub stars
- 34.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Anthropic prompt caching for repeated prefixes, full response caching for identical or similar queries, and CAG as an alternative to retrieval
- Includes anti-patterns such as caching at high temperature, skipping cache invalidation, and caching everything indiscriminately
- Flags sharp edges including latency spikes on cache misses, stale cached responses, and prefix changes that silently defeat prompt caching
- Designed for teams reducing LLM token costs and works alongside
context-window-management,rag-implementation, andconversation-memory
Install
$ npx -y skills add davila7/claude-code-templates --skill prompt-caching -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Prompt Caching
You're a caching specialist who has reduced LLM costs by 90% through strategic caching. You've implemented systems that cache at multiple levels: prompt prefixes, full responses, and semantic similarity matches.
You understand that LLM caching is different from traditional caching—prompts have prefixes that can be cached, responses vary with temperature, and semantic similarity often matters more than exact match.
Your core principles:
- Cache at the right level—prefix, response, or both
- K
Capabilities
- prompt-cache
- response-cache
- kv-cache
- cag-patterns
- cache-invalidation
Patterns
Anthropic Prompt Caching
Use Claude's native prompt caching for repeated prefixes
Response Caching
Cache full LLM responses for identical or similar queries
Cache Augmented Generation (CAG)
Pre-cache documents in prompt instead of RAG retrieval
Anti-Patterns
❌ Caching with High Temperature
❌ No Cache Invalidation
❌ Caching Everything
⚠️ Sharp Edges
Details
- Repository
- github.com/davila7/claude-code-templates
- Category
- AI Agents & LLM Apps
- First seen
- Jun 3, 2026
Questions
What does the prompt-caching skill do?
The prompt-caching skill covers caching strategies for LLM prompts, including Anthropic prompt caching for repeated prefixes, full response caching for identical or similar queries, and Cache Augmented Generation that pre-caches documents in the prompt instead of using retrieval. It also flags pitfalls such as caching with high temperature and missing cache invalidation.
How do I install the prompt-caching skill?
Run npx -y skills add davila7/claude-code-templates --skill prompt-caching -y in your project. This installs the prompt-caching skill so your agent can apply LLM prompt caching strategies.
Where does prompt-caching stand in the AI Agents & LLM Apps category?
On Claude Marketplaces, prompt-caching is listed in the AI Agents & LLM Apps category, alongside microsoft-foundry, azure-ai and several google-agents-cli skills. It stands apart by focusing on caching at the prompt prefix, response and document level for LLM cost and latency reduction.
Which related skills work well alongside prompt-caching?
The SKILL.md names context-window-management, rag-implementation and conversation-memory as skills that work well with prompt-caching. Pairing them lets an agent manage context, retrieval and memory alongside its caching strategy.
More from davila7/claude-code-templates
All 398- Accessibility Auditor438
- Code Review Checklist438
- Nowait Reasoning Optimizer438
- Commit435
- Vercel Deployment434
- Information Security Manager Iso27001429
- Prompt Library426
- Statsmodels426
- Telegram Mini App423
- Pricing Strategy421
- Ml Paper Writing417
- Workflow Automation417
- Openalex Database416
- Shopify Development413
- Geopandas411
- Nextjs Supabase Auth411
- Clinicaltrials Database409
- Error Resolver409
- Bash Linux406
- Email Composer406
- Treatment Plans406
- App Store Optimization405
- Interactive Portfolio404
- Micro Saas Launcher401
Similar to Prompt Caching
More AI Agents & LLM Appscontext-window-managementSkilldavila7/claude-code-templates592 installsStrategies for managing LLM context windows through summarization, trimming, routing, and avoiding context rot.
rag-implementationSkilldavila7/claude-code-templates500 installsRetrieval-augmented generation guidance covering chunking, embeddings, vector stores, and hybrid search with reranking.
context-optimizationSkillmuratcankoylan/agent-skills-for-context-engineering506 installsContext-window budgeting skill covering masking, compaction, KV-cache ordering, and sub-agent partitioning for token efficiency.
cost-latency-optimizerSkillpatricio0312rev/skills337 installsPractical code patterns for cutting LLM spend and response times through caching, model routing, batching, and streaming.
llm-cost-optimizerPluginalirezarezvani/claude-skills30.7K starsCut LLM API spend via model routing, prompt caching, prompt compression, and per-feature cost observability. Use when AI costs are too high, choosing between mo
prompt-engineeringSkillneolabhq/context-engineering-kit1.6K installsStructured guide to prompt engineering techniques for reliable, controllable LLM output across agents, subagents, commands, and hooks.