
Prompt Caching
This covers three caching layers for LLM applications: Anthropic's native prompt caching for stable prefixes (90% token cost reduction), response caching with Redis for repeated queries, and Cache Augmented Generation where you pre-load entire document sets into cached prompts instead of doing RAG retrieval. The CAG approach is smart when your corpus is under 100K tokens and rarely changes, since you skip the retrieval step entirely. The sharp edges section is honest about when caching hurts more than helps, like when your cache hit rate is below 50% and the overhead of cache checks actually slows things down. Includes a decision matrix comparing CAG versus RAG based on corpus size and update frequency.
- skills.sh installs
- 760
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill prompt-caching --agent claude-codeInstalls into .claude/skills of the current project.
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();
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- Category
- AI & Agent Building
- First seen
- May 16, 2026
More from sickn33/antigravity-awesome-skills
All 708- 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