Prompt caching

From Dokhacgiakhoa/antigravity-ide · View interactive version

Prompt caching is an AI agent skill from the GitHub repository Dokhacgiakhoa/antigravity-ide. Caching strategies for LLM prompts including Anthropic prompt caching, response caching, and CAG (Cache Augmented Generation) Use when: prompt caching, cache prompt, response cache, cag, cache augmented.

How to use this skill

Skill file

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:

  1. Cache at the right level—prefix, response, or both
  2. K

Capabilities

Patterns

🧠 Knowledge Modules (Fractal Skills)

1. [Anthropic Prompt Caching](./sub-skills/anthropic-prompt-caching.md)

2. [Response Caching](./sub-skills/response-caching.md)

3. [Cache Augmented Generation (CAG)](./sub-skills/cache-augmented-generation-cag.md)

4. [❌ Caching with High Temperature](./sub-skills/caching-with-high-temperature.md)

5. [❌ No Cache Invalidation](./sub-skills/no-cache-invalidation.md)

6. [❌ Caching Everything](./sub-skills/caching-everything.md)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.