prompt-caching
LLM Prompt Cachingの最適化
繰り返し使われるプロンプトは、レイテンシとLLMコストを増加させる可能性があります。このskillは、チームがprompt、response、CAG cachingのパターンを選択するのに役立ちます。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "prompt-caching" from https://skillstore.io/skills/sickn33-prompt-caching.md and its manifest at https://skillstore.io/api/skills/sickn33-prompt-caching/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「prompt-caching」を使用しています。 A support chatbot repeats a long policy manual in every request.
期待される結果:
Use prefix caching for stable policy text. Keep volatile user details later in the prompt to protect cache hits.
「prompt-caching」を使用しています。 A summarization service uses high temperature and caches full responses.
期待される結果:
Avoid full response caching for this path. Lower temperature or cache only deterministic stages with clear freshness rules.
「prompt-caching」を使用しています。 A team wants to preload stable documentation instead of retrieving it each turn.
期待される結果:
Consider CAG when documents are small enough, stable, and reused often. Add invalidation when the documentation changes.
セキュリティ監査
安全The only static finding is a false positive caused by Markdown inline code in SKILL.md. I found no evidence of command execution, prompt injection, data exfiltration, or malicious intent in the reviewed file.
リスク要因
⚙️ 外部コマンド (1)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/sickn33-prompt-caching/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/sickn33-prompt-caching?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/sickn33-prompt-caching?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-prompt-caching/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/sickn33-prompt-caching.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
sickn33. (2026). prompt-caching security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-prompt-caching/audits/4BibTeX形式の引用
@techreport{sickn33-sickn33-prompt-caching-2026,
author = {sickn33},
title = {prompt-caching security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-prompt-caching/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prompt-caching security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-prompt-caching/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-prompt-caching:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 高作成できるもの
繰り返しプロンプトのコスト削減
呼び出し間で繰り返される共有指示、tool schemas、ドキュメントに対するprefix cachingを計画します。
Response Cacheルールの設計
繰り返されるユーザーリクエストに対して、cache keys、freshness rules、invalidation pathsを定義します。
CAGとRAGの評価
ドキュメントが安定していて頻繁に再利用される場合に、事前ロードされたドキュメントコンテキストとretrievalを比較します。
これらのプロンプトを試す
Explain the differences between prefix caching, response caching, and CAG for my application. Recommend the safest first step.
Review this prompt structure: [paste structure]. Identify stable prefixes, cache boundaries, and changes that reduce cache misses.
Create a response caching policy for my workflow. Include cache keys, temperature limits, invalidation triggers, and monitoring signals.
Audit this LLM caching design: [describe architecture]. Find risks across prefix, response, semantic, and CAG layers, then propose improvements.
ベストプラクティス
- 安定した指示とドキュメントをプロンプトの先頭に配置します。
- 明示的なfreshness rulesを設定して、決定論的または低temperatureのresponseをキャッシュします。
- 範囲を拡大する前に、hit rate、miss latency、stale responses、costを測定します。
回避
- high-temperatureの創造的な出力を、決定論的であるかのようにキャッシュする。
- リクエストごとにprompt prefixesを変更しながら、プロバイダーのcache hitsを期待する。
- 機密性の高いデータや急速に変化するデータを、expirationやinvalidationなしでキャッシュする。