agentsclimarketplace

Caching strategy

Skill AtulPurohit/Antigravity-Awesome-Skills/skills/caching-strategy

Installable GitHub library of 300+ professional agentic skills for Claude Code, Antigravity IDE, Gemini CLI, Cursor, and Copilot. Features a custom NPX installer, 9 stack-specific bundles, validation schemas, security auditing, and an interactive catalog explorer app.

Install
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill caching-strategy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Design comprehensive multi-layer caching strategies across CDN, application, and database tiers for maximum performance.

SKILL.md

2.1 KB, as published. Nobody here has run it

Caching Strategy Designer

Purpose

Design and implement caching at every layer to dramatically reduce latency and database load.

Cache Layers

  1. Browser Cache: Static assets, API responses with Cache-Control headers
  2. CDN Cache: Cloudflare/CloudFront for global edge caching
  3. Application Cache: Redis/Memcached for computed data
  4. Database Cache: Query result cache, connection pooling

Cache-Control Headers

# Immutable static assets (hash in filename)
Cache-Control: public, max-age=31536000, immutable

# API: cache for 60s, stale-while-revalidate for 5 min
Cache-Control: public, s-maxage=60, stale-while-revalidate=300

# Private user data
Cache-Control: private, no-cache

# Never cache
Cache-Control: no-store

Application Cache Pattern

# Cache-aside with stampede prevention
def get_cached(key: str, ttl: int, fetch_fn: callable):
    if value := cache.get(key):
        return value
    
    # Atomic lock prevents stampede
    with cache.lock(f"lock:{key}", timeout=10):
        # Double-check after acquiring lock
        if value := cache.get(key):
            return value
        value = fetch_fn()
        cache.set(key, value, ttl)
        return value

Invalidation Strategies

  • TTL-based: Expire after fixed time (simple, may be stale)
  • Event-driven: Invalidate on data change (accurate, complex)
  • Tag-based: Group related cache items, flush by tag
  • Cache-busting: Change URL/key when content changes

Outputs

  1. Caching strategy document
  2. Cache-Control header configuration
  3. Application cache implementation
  4. Invalidation event handlers
  5. Cache monitoring metrics

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.