OnlyTerpOnlyTerpCommunityยท14 Agent Skills Included

prompt-cache-skills

Fix prompt caching bugs in coding harnesses, cut API costs

Fixes broken or missing prompt caching in popular coding harnesses like Cline, Roo Code, Continue, OpenCode, and Aider. Eliminates wasted API spend caused by volatile cache keys, missing cache flags, and off-by-default settings. Provides ready-to-apply diffs with verification steps so cache hit rates reach 80-99% and bills drop up to 10x.
npx skills add OnlyTerp/prompt-cache-skills --all -g -y
Available:

Tells the AI agent how to detect which harnesses a project uses, verify each fix's symptom before applying its diff, run wire-level verification, and report results with one commit per fix.

All Skills in This Repository (14)

Pure Emerald Level Indicators
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

opencode-bedrock-doc-blocks

Skip cachePoint placement on Bedrock DocumentBlock messages in OpenCode.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

prompt-cache-skills

Correct prompt caching issues in AI coding agent harnesses.

Community
Advanced
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

roo-fix-volatile-msg

Fix volatile-message cache thrash in Roo Code's Anthropic integration.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

cline-openai-cache-key

Add a stable prompt_cache_key to Cline's OpenAI native provider.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

aider-1h-ttl

Extend Aider's cache TTL from 5 minutes to 1 hour for long sessions.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

cline-pin-timestamp

Adds a fixed timestamp to optimize Cline's prompt-caching efficiency.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

aider-cache-default-on

Enable Aider's --cache-prompts flag by default for supported models.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

opencode-mistral-cache-key

Set the prompt_cache_key for Mistral models in OpenCode's transform.ts file.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

roo-bedrock-custom-arn

Fix prompt caching for custom ARNs in Roo Code's Bedrock provider.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

opencode-detect-openai-compat

Detect OpenAI-compatible Anthropic proxies in OpenCode for correct caching.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

continue-enable-defaults

Enable default prompt caching with the 'systemAndTools' strategy in Continue.

Community
Intermediate
๐Ÿ“ฆ In Repo
OnlyTerpOnlyTerp

cline-fix-volatile-msg

Correct Cline's handling of volatile user messages to improve cache hit rates.

Community
Intermediate

Frequently Asked Questions

FAQPage Schema
How 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โ†’