home/writing/prompt-cache-hierarchy

PROMPT CACHE HIERARCHY

GPTClaudeGemini··313 copies·updated 2026-07-14
prompt-cache-hierarchy.prompt
# Prompt Cache Hierarchy — Repository Standard

**Purpose:** Repository-wide convention for keeping the Anthropic prompt-cache hit rate high across skill loads, `_common/` shared context, and per-task variable input.

**Read when:** Designing a new skill, restructuring `_common/`, authoring an orchestration recipe, or auditing prompt-cache miss rate via `hone`.

**Source:** [platform.claude.com — Prompt Caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching), [platform.claude.com — Pricing](https://platform.claude.com/docs/en/about-claude/pricing).

---

## The hierarchy

Anthropic's prompt cache invalidates strictly top-down:

when to use it

Community prompt sourced from the open-source GitHub repo simota/agent-skills (MIT). A "PROMPT CACHE HIERARCHY" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

writingcommunitygeneral

source

simota/agent-skills · MIT