SKILL

prompt-caching

Optimize LLM cost and latency with prompt caching: cacheable prefixes, cache-control headers, context layout, and cache-aware prompting. Use for high-volume apps.

Target: Design & content creation. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Prompt Caching
  • Quick Start
  • When to Use
  • Best Practices
  • Layout
  • Cache-Control
  • Design for Caching
  • Measurement

Cutting LLM cost and latency by caching repeated prompt prefixes. Chat with long system prompts or tool definitions Agents with large context that repeats across turns RAG apps where system instructions are stable High-volume endpoints where cost matters Put stable content first: system prompt, tools, static context Put dynamic content last: user turns, retrieved chunks Keep a stable prefix across all requests Minimum cacheable size varies by provider (e.g., 1024+ tokens) Mark cacheable segments with cache-control headers Set a TTL that matches your access pattern Don't cache secrets or per-user data Verify cache hits via usage metadata (cachedtokens) Keep the system prompt identical across calls Separate static tool definitions from dynamic input Reuse the same prefix for the whole conversation Batch ephemeral data at the end of the context Track cached vs uncached tokens in usage Measure latency improvement per request Monitor cache hit rate over time Compare cost before and after optimization 1. Identify the stable prefix in your prompts (system, tools, static). 2. Move dynamic content to the end of the context. 3. Mark the prefix cacheable with the provider's mechanism. 4. Veri

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
ssrjkk/agent-skills
Source file
.claude/skills/ai/prompt-caching/SKILL.md
Fixed revision
868975614072b553f929cb32c52c5e7dc4ba8734
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: ssrjkk/agent-skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T03:01:42.163Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.