Skip to content

Check skill prefix stability for Anthropic, OpenAI, and Gemini prompt caching hits

One dynamic timestamp or shuffled MCP tool list at the top of a skill busts prompt caches and 5x's your input token bill.

Copy the prompt and paste it into the AI assistant you already use.

Four silent bugs that destroy agent prompt cache hit rates

  1. 01

    Ban current-second timestamps in system prompts

    Injecting 'Current time: 14:03:22' into system headers invalidates the entire tool + skill prefix cache on every run.

  2. 02

    Enforce deterministic MCP tool ordering

    If async MCP server startup registers tools in non-deterministic order, JSON schema prefixes change across sessions.

  3. 03

    Append newly loaded skill references at message tail

    Mutating the top system prompt mid-conversation forces full re-prefill; append progressive reference docs in tool results instead.

  4. 04

    Verify minimum token thresholds per provider

    Confirm static prefixes exceed 1,024–4,096 token provider minimums so caching actually activates.

Questions and answers

How much does prompt caching change multi-step agent skill economics?

On a 15-turn coding or browser loop, maintaining an 85%+ cache hit rate cuts input token spend by 60–75% and noticeably reduces time-to-first-token.

Does loading a SKILL.md mid-conversation break prompt caching?

Not if loaded as a read_file/tool result appended to conversation history rather than rewriting the leading system message.

Do SkillMarket cost rankings report cached vs uncached prices?

Yes, cost metrics report real observed provider billing including actual cache write/read ratios across multi-turn trajectories.