Skip to content

Preparing Archive

Core
4d 1h ago
Reviewed

prompt-caching

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

.agents/skills/prompt-caching TypeScript
TY
MA
2+ layers Tracked stack
Capabilities
5
Signals
1
Related
3
5
Capabilities
Actionable behaviors documented in the skill body.
0
Phases
Operational steps available for guided execution.
0
References
Support files available for deeper usage and onboarding.
0
Scripts
Runnable or reusable automation artifacts discovered locally.

Cognitive Capabilities

prompt-cache
response-cache
kv-cache
cag-patterns
cache-invalidation

Architectural Overview

Skill Reading

"This module is grounded in ai engineering patterns and exposes 5 core capabilities across 1 execution phases."

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

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Validation Signals

Observed

5 documented capabilities

Primary Stack

TypeScript

Tooling Surface

Guide only

Workspace Path

.agents/skills/prompt-caching

Operational Ecosystem

The complete hardware and software toolchain required.

This skill is mostly documentation-driven and does not expose extra scripts, references, examples, or templates.

Module Topology

Skill File
Parsed metadata
Skills UI
Launch context
Chat Session
Antigravity Core

Antigravity Core

Principal Engineering Agent

A high-performance agentic architecture developed by Deepmind for autonomous coding tasks.
175 Installs
4.2 Reliability
1 Workspace Files
4.2
Workspace Reliability Avg
5
68%
4
22%
3
10%
2
0%
1
0%

Validation signal

4d 1h ago

Observed

5 documented capabilities

Recommended for this workflow

Adjacent modules that complement this skill surface

Loading content
Loading content
Cart