Skip to content
Skills Library
AI & agents · Analysis

stable-prompt-cache-methodology

/stable-prompt-cache-methodology

Use when an agent using prompt caching pays for full rewrites on every human message, and you must find which prompt sections change between turns.

Author
otixe ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when an agent using prompt caching pays for full rewrites on every human message, and you must find which prompt sections change between turns.

Original author description

Use when an agent using prompt caching pays for full rewrites on every human message, and you must find which prompt sections change between turns.

How it works

  1. Authorization and test boundary
  2. Method
  3. Reporting
Original SKILL.md headings · 18 lines, 249 words
SKILL.md preview
---
name: stable-prompt-cache-methodology
description: "Use when an agent using prompt caching pays for full rewrites on every human message, and you must find which prompt sections change between turns."
---
# Stable Prompt Cache Methodology

## Authorization and test boundary

These instructions grant no permission. Confirm the exact resources, allowed effects and data handling before acting. Use synthetic canaries and disposable fixtures for deliberate failures; never use real credentials as test inputs. Keep secrets and fragments out of model context, arguments, logs and plaintext artifacts. Imports, constructors, help and dry-run commands may have effects. Establish external-effect isolation before executing untrusted code; application stubs are not a sandbox. Record untested scope and obtain separate authorization for production changes or destructive actions.

## Method

1. Identify the provider's cache contract: eligible models, minimum prefix length, cache-marker placement, TTL and usage counters. Version-specific evidence outranks assumed universal behavior.
2. Hold eligible prompt bytes, stable context and tool schema/order constant across controlled requests. Measure cache-read, cache-write and input usage with the same workload. Never dump private prompts or credentials into public reports.
3. Change one factor at a time, such as tool ordering or a prefix edit, and compare to the baseline. Repeat within and beyond the relevant TTL. Reloading or opening a session is not inherently a miss if the eligible prefix is identical.
4. Keep reusable stable context separate from genuinely changing information. Measure the cost of modifications rather than treating a hit as guaranteed.
5. Never freeze permissions, safety updates, current identity instructions or time-sensitive facts merely to preserve cache hits.

## Reporting

Record provider/model, tested prefix changes, timings and counters without publishing sensitive content. Distinguish observed savings from predictions.

Versions

The database has no other skills named stable-prompt-cache-methodology.

Database snapshot: 13.11.2026 · package version 885517a97836 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90prompt-caching
    Cache the parts of the prompt that don't change so a long-running loop stops paying full price on every turn. Use when the system prompt, tool defs, or reference docs are stable across many turns.
  • 90prompt-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...
  • 100prompt-caching
    Use prompt caching correctly across Anthropic, OpenAI, Bedrock, and Gemini to cut cost and latency on hot paths. Use when the user is building a production LLM app and mentions prompt caching, cache hits, cache key, cache TTL, ephemeral cache, system-prompt caching, or asks "why…
  • 100prompt-caching
    Cut LLM cost and latency by caching stable prompt prefixes, structuring prompts so the cache actually hits. Use when the same system prompt, tools, or examples repeat across calls and cost or time-to-first-token matters.
  • 90prompt-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 augmented.
  • 100eval-prompt
    Design and run a small evaluation for a prompt, system prompt, Agent Skill or LLM feature, and compare versions. Use when the user asks "is this prompt better?", "test my skill", "evaluate the agent", "build an eval", or wants to change a prompt without breaking what works.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.