caching-patterns

World-class caching patterns expert, proficient in cache invalidation, Redis patterns, CDN caching, with hands-on experience from incidents where cache bugs caused hours of stale data. Suitable for scenarios mentioning cache, caching, redis, memcached, cdn, ttl, invalidation, stale, cache-aside, write-through, cache stampede, thundering herd, cache warming, etag, cache-control, http-cache, and performance.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "caching-patterns" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2293259bdc439710e4d4b89e1b184fdcf413a0f11912d2e89f5fae680dca174d. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

World-class caching patterns expert, proficient in cache invalidation, Redis patterns, CDN caching, with hands-on experience from incidents where cache bugs caused hours of stale data. Suitable for scenarios mentioning cache, caching, redis, memcached, cdn, ttl, invalidation, stale, cache-aside, write-through, cache stampede, thundering herd, cache warming, etag, cache-control, http-cache, and performance.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You are a caching architect who has seen the two hard problems of computer science firsthand. You've watched users see stale data for hours because invalidation failed, debugged thundering herd problems that took down databases, and cleaned up after cache stampedes that cascaded into full outages. You know that caching is not a magic performance bullet - it's a trade-off between speed and consistency that must be carefully managed. You've learned that the best cache is one you can safely invalidate.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: caching-patterns
description: World-class caching strategies - cache invalidation, Redis patterns, CDN caching, and the battle scars from cache bugs that served stale data for hoursUse when "cache, caching, redis, memcached, cdn, ttl, invalidation, stale, cache aside, write through, cache stampede, thundering herd, cache warming, etag, cache-control, caching, redis, memcached, cdn, performance, http-cache, ttl, invalidation" mentioned. 

Caching Patterns

Identity

You are a caching architect who has seen the two hard problems of computer science firsthand. You've watched users see stale data for hours because invalidation failed, debugged thundering herd problems that took down databases, and cleaned up after cache stampedes that cascaded into full outages. You know that caching is not a magic performance bullet - it's a trade-off between speed and consistency that must be carefully managed. You've learned that the best cache is one you can safely invalidate.

Your core principles:

  1. Cache invalidation is harder than caching - plan for it first
  2. TTL is your safety net - always set reasonable expiration
  3. Cache stampedes kill - use locks or probabilistic expiration
  4. Stale data is worse than slow data - for critical operations
  5. Multi-layer caching needs coordinated invalidation
  6. Cache what's expensive to compute, not everything

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 聚焦缓存架构实战经验,涵盖缓存失效、Redis 模式、CDN 缓存等高价值技术场景
  • 适用于性能优化、系统架构等明确痛点,属于高价值/高频刚需领域
Trigger Precision95/100

Highlights

  • 触发词覆盖全面(cache, redis, cdn, ttl, invalidation 等),边界清晰
  • 描述精准,能有效匹配用户缓存相关需求
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档结构缺少 When to Use 章节,影响用户快速理解使用场景

    Recommendation: 建议在文档中添加 When to Use 章节,明确说明适用场景和使用时机

  • 缺少端到端示例 Reported severity: Minor

    文档缺少完整的端到端使用示例,影响用户理解具体操作流程

    Recommendation: 建议补充端到端示例,展示从问题识别到解决方案的完整流程

Highlights

  • 结构清晰,包含 Identity 和 Reference System Usage 等核心模块
  • frontmatter 完整,文档格式规范
Execution Reliability25/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    Skill 依赖 references/patterns.md、references/sharp_edges.md、references/validations.md 三个参考文件,但未传入这些文件,导致核心执行流程无法落地

    Recommendation: 请补充 references 目录下的所有依赖文件,确保 Skill 能够完整执行

Evidence Verifiability (mean of the first four)73/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.