Prompt Caching

SkillAI & models

This is a skill that teaches an AI agent prompt claude skill techniques for caching large language model prompts and responses. It covers Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation), so chats can become faster and cheaper.

Use Prompt Caching in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Prompt Caching and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Prompt Caching skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have an AI agent that can load skills.

Prompt CachingStart free

What your AI can do with it

  • Explains Anthropic prompt caching strategies
  • Covers response caching for model outputs
  • Teaches CAG (Cache Augmented Generation)
  • Guides when to apply each caching approach
  • Helps make chats faster and cheaper through caching

Getting started

  1. Have an AI agent that can load skills.
  2. Add the prompt-caching skill to the agent's available skills.
  3. Ask the agent about prompt caching, response caching, or CAG to apply the skill.

What this skill tells your AI

The instructions your AI receives, as published by davila7/claude-code-templates in cli-tool/components/skills/ai-research/prompt-caching/SKILL.md and read by ahel’s review.

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:

  1. Cache at the right level—prefix, response, or both
  2. 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

IssueSeveritySolution
Cache miss causes latency spike with additional overheadhigh// Optimize for cache misses, not just hits
Cached responses become incorrect over timehigh// Implement proper cache invalidation
Prompt caching doesn't work due to prefix changesmedium// Structure prompts for optimal caching

Related Skills

Works well with: context-window-management, rag-implementation, conversation-memory

Signals

GitHub stars
32k
Forks
4k
Last commit
Oct 2026

Questions

When should this skill be used?
Use it when working with prompt caching, cache prompts, response caches, CAG, or cache augmented generation.
What is CAG?
CAG stands for Cache Augmented Generation, one of the caching strategies the skill covers alongside Anthropic prompt caching and response caching.
Does caching make chats cheaper?
The skill teaches caching techniques such as caching model responses that can make chats faster and cheaper.
Advanced
Item type
skill
Key
prompt-caching-davila7
Source
github.com/davila7/claude-code-templates