
Prompt Caching
Caching strategies for LLM prompts covering Anthropic prompt caching, response caching, and cache-augmented generation.
- skills.sh installs
- 760
- GitHub stars
- 50.1K
- last updated
- Jul 14, 2026
What it does
- Covers Anthropic native prompt caching, exact and semantic response caching, and CAG as an alternative to RAG retrieval
- Includes TypeScript examples using
cache_controlblocks, SHA-256 prompt hashing, and Redis viaioredisor@upstash/redis - Guides the choice between CAG and RAG by corpus size, update frequency, latency needs, and query specificity
- Designed for LLM applications with stable prompts or documents, and flags cache-miss latency overhead as a sharp edge
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill prompt-caching -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Prompt Caching
Caching strategies for LLM prompts including Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation)
Capabilities
- prompt-cache
- response-cache
- kv-cache
- cag-patterns
- cache-invalidation
Prerequisites
- Knowledge: Caching fundamentals, LLM API usage, Hash functions
- Skills_recommended: context-window-management
Scope
- Does_not_cover: CDN caching, Database query caching, Static asset caching
- Boundaries: Focus is LLM-specific caching, Covers prompt and response caching
Ecosystem
Primary_tools
- Anthropic Prompt Caching - Native prompt caching in Claude API
- Redis - In-memory cache for responses (ioredis on servers; @upstash/redis over HTTP on serverless, see
upstash-redis) - OpenAI Caching - Automatic caching in OpenAI API
Patterns
Anthropic Prompt Caching
Use Claude's native prompt caching for repeated prefixes
When to use: Using Claude API with stable system prompts or context
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic();
Details
- Repository
- github.com/sickn33/agentic-awesome-skills
- Categories
- AI Agents & LLM Apps, Memory & Context, Backend & APIs
- First seen
- May 16, 2026
More from sickn33/agentic-awesome-skills
All 682- Notebooklm751
- Architecture Decision Records749
- Deployment Procedures749
- Notion Template Business749
- Antigravity Workflows748
- Nanobanana Ppt Skills748
- Python Pro747
- Wordpress Penetration Testing744
- Performance Engineer743
- File Uploads740
- Rag Implementation739
- Content Marketer737
- Marketing Psychology737
- Stitch Ui Design737
- Ab Test Setup736
- Frontend Security Coder735
- Writing Plans735
- Reverse Engineer732
- Canvas Design730
- Kaizen728
- Prompt Library727
- Parallel Agents726
- Zapier Make Patterns713
- Web Security Testing709
Similar to Prompt Caching
More AI Agents & LLM Apps
llm-application-dev-prompt-optimizesickn33/agentic-awesome-skills357 installsStructured prompt improvement with task-specific evaluation, held-out checks, and regression testing for LLM applications.
prompt-engineering-patternssickn33/agentic-awesome-skills442 installsStructured prompt-engineering patterns for reliable, controllable LLM outputs in production applications.
redis-semantic-cacheredis/agent-skills2.1K installsRedis LangCache guidance for semantic caching of LLM responses, tuning thresholds, and isolating workloads.
rag-implementationdavila7/claude-code-templates500 installsRetrieval-augmented generation guidance covering chunking, embeddings, vector stores, and hybrid search with reranking.
cost-latency-optimizerpatricio0312rev/skills336 installsPractical code patterns for cutting LLM spend and response times through caching, model routing, batching, and streaming.
prompt-engineeringneolabhq/context-engineering-kit1.5K installsStructured guide to prompt engineering techniques for reliable, controllable LLM output across agents, subagents, commands, and hooks.