Caching Strategy Advisor

Caching Strategy Advisor is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 25 tokens per session (2,306 once invoked), scanned A, original, MIT.

A guide for choosing how an application should store temporary copies of data so repeated work is faster. It covers memory, Redis, web-cache headers, content delivery networks, and database query caching.

In plain words
What is it for?
Use it to plan caching for slow APIs, heavy database queries, slow pages, or expensive operations that run frequently.
Why use it?
It helps avoid guessing which cache to use, how long data should remain cached, and how to prevent outdated results after data changes.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it to plan caching for slow APIs, heavy database queries, slow pages, or expensive operations that run frequently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/caching-strategy-advisor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Notysoty/openagentskills --skill caching-strategy-advisor
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Caching Strategy Advisor

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/caching-strategy-advisor/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/caching-strategy-advisor)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/caching-strategy-advisor"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/caching-strategy-advisor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Caching Strategy Advisor

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/caching-strategy-advisor"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/caching-strategy-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,306 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.02306
Opus 5 $0.00013 $0.01153
Sonnet 5 $0.00005 $0.00461
Haiku 4.5 $0.00003 $0.00231

Measured 9d ago against content hash 2ac3a836ad3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Caching Strategy Advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/caching-strategy-advisor/SKILL.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Caching Strategy Advisor

What this skill does

This skill analyzes a performance bottleneck, a slow query, or an expensive operation and recommends the right caching strategy for it — which cache layer to use, what TTL to set, how to handle cache invalidation, and what to watch out for. It covers in-memory caches, Redis, HTTP caching headers, CDN caching, and database query caching, and explains the trade-offs of each recommendation.

Use this when you have a slow API, a database that's under heavy read load, a page that's slow to load, or any operation that's expensive and called frequently.

How to use

Claude Code / Cline

Copy this file to .agents/skills/caching-strategy-advisor/SKILL.md in your project root.

Then ask:

  • "Use the Caching Strategy Advisor skill — our product listing API is slow and called thousands of times per minute."
  • "We have a heavy database query that runs on every page load. Use the Caching Strategy Advisor skill to recommend a caching approach."

Provide:

  • What operation is slow (SQL query, API call, computation, file read)
  • How often it's called and by how many users
  • How often the underlying data changes
  • Your current tech stack (language, framework, existing infrastructure)
  • What consistency guarantees you need (is stale data for a few seconds OK?)

Cursor

Add the instructions below to your .cursorrules or paste them into the Cursor AI pane with the context above.

Codex

Provide the operation description and context. Ask Codex to follow the instructions below to produce the caching recommendation.

The Prompt / Instructions for the Agent

When asked to advise on a caching strategy, follow these steps:

Step 1 — Understand the workload

Ask or infer:

  • Read/write ratio: Is this data mostly read, or is it frequently updated?
  • Call frequency: How many requests per second/minute hit this operation?
  • Data freshness requirement: How stale can the data be before it causes a real problem? 1 second? 1 minute? 1 hour? Doesn't matter?
  • Data size: How large is the response? (Affects cache storage cost and memory limits)
  • User specificity: Is the data the same for all users (public), or different per user (personalized)?
  • Consistency requirement: Is it OK to serve slightly stale data, or does every user need to see the absolute latest?

Read the full file on GitHub · 203 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 203 lines · 25 tokens per session scan A 2ac3a836ad3c

Subscribe to this mod's changes

Caching Strategy Advisor is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 26d ago), licensed MIT. It adds 25 tokens to every session and 2,306 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ecommerce-caching

Improve store performance with a layered caching strategy — CDN edge caching, Redis application cache, and smart cart-aware invalidation.

finsilabs/awesome-ecommerce-skills · 28 tokens

caching-strategies

Design multi-tier caching architectures for web applications — cache-aside vs write-through vs write-behind, TTL design, cache invalidation, Redis patterns, CDN configuration, browser caching, and stampede prevention. Use when choosing a caching pattern, designing cache invalidation strategies, implementing Redis…

curiositech/windags-skills · 137 tokens

nestjs-caching

Implement multi-level caching, invalidation patterns, and stampede protection in NestJS. Use when adding Redis caching layers, configuring cache-manager interceptors, implementing stale-while-revalidate, or preventing cache stampedes in NestJS services.

FilippoDeSilva/skills · 51 tokens

caching

Caching strategies — invalidation, TTL guidelines, cache keys, cache layers, and when not to cache. Use when implementing or reviewing caching logic.

zebbern/termstack · 32 tokens

devlab-dao-sql-compat

A workflow for finding and fixing SQL dialect differences in the data-access layer of an application. SQL is the language used to query databases, and Oracle, PostgreSQL, and MySQL each have variations; the workflow supports MyBatis, JPA, MyBatis-Plus, and SQLAlchemy.

seed-forge/harness-ai-kit · 160 tokens

woocommerce-performance

Fix slow WooCommerce stores by optimizing database queries, clearing transients, enabling Redis object caching, and configuring page caching.

finsilabs/awesome-ecommerce-skills · 26 tokens