Smithery Logo
MCPsSkillsDocsPricing
Login
NewFlame, an assistant that learns and improves. Available onTelegramSlack
    davila7

    prompt-caching

    davila7/prompt-caching
    AI & ML
    19,892
    1 installs

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─
    Smithery Logo

    Give agents more agency

    Resources

    DocumentationPrivacy PolicySystem Status

    Company

    PricingAboutBlog

    Connect

    © 2026 Smithery. All rights reserved.

    About

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

    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

    Recommended Servers
    GroundRoute: Web Search for AI Agents across 6 Engines ($10 free credit)
    GroundRoute: Web Search for AI Agents across 6 Engines ($10 free credit)
    ThinAir Data
    ThinAir Data
    Parallel Web Search
    Parallel Web Search
    Repository
    davila7/claude-code-templates
    Files