caching-strategies
Skill7 starsChanged 16 days agoMITView on GitHub
Review, diagnose, and improve application and HTTP caching. Use when designing a cache, investigating stampedes or stale reads, reviewing cache isolation and invalidation, or reducing cache-related origin load. For command syntax alone, use the cache product's documentation.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- sf-scalar/skiLL.Mdtheir own version, first seen Nov 8, 2026
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- ThibautBaissac/rails_ai_agentstheir own version, first seen Oct 8, 2026
- novatic-cu/nova-skillstheir own version, first seen Sep 20, 2026
- 2867203296/hermes-agenttheir own version, first seen Aug 19, 2026
- Bappoz/My-Claude-Skillstheir own version, first seen Jul 15, 2026
Used with
Projects with it also use observability and api-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 3 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- ThibautBaissac/rails_ai_agents★ 665same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- sf-scalar/skiLL.Md★ 6same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- Bappoz/My-Claude-Skills★ 1same name
- harrissohail6/claude-code-config★ 1same name
- michaelsvanbeek/personal-agent-skills★ 1same name
- novatic-cu/nova-skills★ 1same name
- 2867203296/hermes-agent★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository69 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- database-normalizationSkill
- design-patternsSkill
- object-oriented-programming-paradigmSkill
- aadc-complianceSkill
- app-store-complianceSkill
- ccpa-cpra-complianceSkill
- coppa-complianceSkill
- dpdp-complianceSkill
- eprivacy-complianceSkill
- eu-ai-act-complianceSkill
- eu-dsa-complianceSkill
- gdpr-complianceSkill
- hipaa-hds-complianceSkill
- lgpd-complianceSkill
- pci-dss-complianceSkill
- pipeda-law25-complianceSkill
- pipl-csl-complianceSkill
- psd2-sca-complianceSkill
- uk-gdpr-complianceSkill
- us-state-privacy-complianceSkill
- world-wide-complianceSkill
- aws-cli-docsSkill
- aws-dynamodb-docsSkill
- aws-ecs-docsSkill
- aws-eks-docsSkill
- aws-iam-docsSkill
- aws-lambda-docsSkill
- aws-s3-docsSkill
- bullmq-docsSkill
- cassandra-docsSkill
- django-docsSkill
- docker-docsSkill
- elasticsearch-docsSkill
- expressjs-docsSkill
- fastapi-docsSkill
- fastify-docsSkill
- firebase-docsSkill
- flask-docsSkill
- git-docsSkill
- github-actions-docsSkill
- gitlab-ci-docsSkill
- grafana-docsSkill
- graphql-docsSkill
- helm-docsSkill
- kafka-docsSkill
- kubernetes-docsSkill
- mongodb-docsSkill
- mysql-docsSkill
- nestjs-docsSkill
- nginx-docsSkill
- opensearch-docsSkill
- opentelemetry-docsSkill
- phoenix-docsSkill
- pinecone-docsSkill
- postgresql-16-docsSkill
- postgresql-17-docsSkill
- postgresql-18-docsSkill
- qdrant-docsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Treat a cache as a replica with a freshness contract and a failure mode.
- Distinctive: line 19
Trace the lifecycle: Follow a fresh hit, stale hit, absent/evicted entry, concurrent fill, committed write, and dependency failure across …
- Distinctive: line 37
Choosing cache placement or write policy: read strategies.
- Distinctive: line 47
Checking whether an agent applies these rules correctly: use the synthetic review scenarios.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Caching Strategies
Treat a cache as a replica with a freshness contract and a failure mode. Recommend it for a demonstrated reuse or latency benefit; a simpler query, index, or no cache can be the right outcome.
Workflow
- Establish the contract. For the affected read path, identify the authoritative store, cache layers, key dimensions, readers and writers, deployment topology, tolerated staleness, and origin capacity. Trace actual code and configuration; separate measured facts from assumptions. Ask only for unknown requirements that change the design, such as whether stale authorization decisions are allowed.
- Trace the lifecycle. Follow a fresh hit, stale hit, absent/evicted entry, concurrent fill, committed write, and dependency failure across the affected layers. Include background jobs and other services that write the same data. Finish when each transition has an owner and observable behavior, or a named gap.
- Read the matching references below. For a broad caching review, cover every applicable branch; for a focused incident, follow its causal path. Verify version-specific commands and library guarantees in official product docs.
- Choose the smallest correction. Explain the failure sequence, the invariant the change restores, and its latency, freshness, capacity, and complexity costs. A review produces findings; implement only when the request includes changes.
- Verify the contract. Exercise the affected interleavings with controlled clocks/barriers and representative concurrency. Compare origin calls, tail latency, stale age, refresh errors, and rejected requests against explicit bounds. Distinguish proposed tests from checks actually run; a warm-cache hit ratio alone does not demonstrate correctness or outage tolerance.
Routing
- Choosing cache placement or write policy: read strategies.
- One hot key expires, concurrent cold misses, or refresh owners fail: read stampede prevention.
- Old values reappear after writes, missed invalidations, or several cache layers: read invalidation and consistency.
- Wrong user's result, ambiguous keys, personalized HTTP responses, or repeated lookups of missing records: read keys and isolation.
- Many keys expire, cache outage, eviction churn, or a hot shard: read capacity and failure.
- Checking whether an agent applies these rules correctly: use the synthetic review scenarios.
Findings and completion
For each actionable finding, provide: severity and impact, file/configuration evidence, a concrete request or event sequence, the smallest fix with its trade-off, and a verification criterion. Mark unverified hypotheses as validation gaps.
For an implementation, also report the changed contract, checks actually run, and rollout/recovery implications. Account for old cache payloads and mixed application versions; changing a key namespace can create a cold-cache traffic surge. Finish when every in-scope failure has a supported finding, a verified correction, or an explicit remaining limitation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

