by sickn33
通过战略性提示缓存实施(包括Anthropic原生缓存、响应缓存和CAG模式)降低LLM API成本高达90%。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 prompt-caching 技能" 开始使用
=== prompt-caching 技能 === 作者: sickn33 描述: 通过战略性提示缓存实施(包括Anthropic原生缓存、响应缓存和CAG模式)降低LLM API成本高达90%。 使用方法: 1. 调用技能: "使用 prompt-caching 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 prompt-caching 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
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:
Use Claude's native prompt caching for repeated prefixes
Cache full LLM responses for identical or similar queries
Pre-cache documents in prompt instead of RAG retrieval
| 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 |
Works well with: context-window-management, rag-implementation, conversation-memory
View Count
0
Download Count
0
Favorite Count
0
Quality Score
73