prompt-caching

davila7/claude-code-templates · updated Apr 8, 2026

$npx skills add https://github.com/davila7/claude-code-templates --skill prompt-caching
0 commentsdiscussion
summary

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.
skill.md

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

  • 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

Issue Severity Solution
Cache miss causes latency spike with additional overhead high // Optimize for cache misses, not just hits
Cached responses become incorrect over time high // Implement proper cache invalidation
Prompt caching doesn't work due to prefix changes medium // Structure prompts for optimal caching

Related Skills

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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.670 reviews
  • Layla Yang· Dec 28, 2024

    Registry listing for prompt-caching matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Dev Nasser· Dec 24, 2024

    Useful defaults in prompt-caching — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Benjamin Wang· Dec 24, 2024

    We added prompt-caching from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Isabella Chawla· Dec 20, 2024

    I recommend prompt-caching for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Arya Farah· Dec 16, 2024

    Keeps context tight: prompt-caching is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Dhruvi Jain· Dec 8, 2024

    prompt-caching reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Mei Khan· Dec 8, 2024

    prompt-caching fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Mei Haddad· Dec 4, 2024

    prompt-caching is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Oshnikdeep· Nov 27, 2024

    I recommend prompt-caching for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Mei Lopez· Nov 23, 2024

    Solid pick for teams standardizing on skills: prompt-caching is focused, and the summary matches what you get after install.

showing 1-10 of 70

1 / 7