prompt-cache-skills
Fix prompt caching bugs in coding harnesses, cut API costs
All Skills in This Repository (14)
Pure Emerald Level Indicatorsopencode-bedrock-doc-blocks
Skip cachePoint placement on Bedrock DocumentBlock messages in OpenCode.
prompt-cache-skills
Correct prompt caching issues in AI coding agent harnesses.
roo-fix-volatile-msg
Fix volatile-message cache thrash in Roo Code's Anthropic integration.
cline-openai-cache-key
Add a stable prompt_cache_key to Cline's OpenAI native provider.
aider-1h-ttl
Extend Aider's cache TTL from 5 minutes to 1 hour for long sessions.
cline-pin-timestamp
Adds a fixed timestamp to optimize Cline's prompt-caching efficiency.
aider-cache-default-on
Enable Aider's --cache-prompts flag by default for supported models.
opencode-mistral-cache-key
Set the prompt_cache_key for Mistral models in OpenCode's transform.ts file.
roo-bedrock-custom-arn
Fix prompt caching for custom ARNs in Roo Code's Bedrock provider.
opencode-detect-openai-compat
Detect OpenAI-compatible Anthropic proxies in OpenCode for correct caching.
continue-enable-defaults
Enable default prompt caching with the 'systemAndTools' strategy in Continue.
cline-fix-volatile-msg
Correct Cline's handling of volatile user messages to improve cache hit rates.
Frequently Asked Questions
FAQPage SchemaHow to install prompt-cache-skills?โผ
Run `npx skills add OnlyTerp/prompt-cache-skills --all -g -y` in your terminal to install all fixes globally.
How to reduce API costs in Cline or Roo Code?โผ
Apply the matching skills from this repo; they fix cache breakpoints and missing cache keys so repeat prompts are billed at up to a 90% discount.
Which coding harnesses are covered?โผ
Skills cover Cline, Roo Code, Continue, OpenCode, and Aider, with audits for Codex CLI, Claude Code, Grok CLI, and more.
How do I verify a caching fix worked?โผ
Each skill includes a verify section using mitmproxy or the included check_cache.py script to confirm cache_read tokens are greater than zero on repeat requests.
Do I need to edit code manually?โผ
No. Point your coding agent at the repo and it detects your harness, applies the correct diffs, and verifies each fix automatically.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core