Back to Skills

caching-strategies

verified

Production-grade caching strategies skill for Redis patterns, CDN configuration, cache invalidation, and performance optimization

View on GitHub

Marketplace

pluginagentmarketplace-system-design

pluginagentmarketplace/custom-plugin-system-design

Plugin

custom-plugin-system-design

Repository

pluginagentmarketplace/custom-plugin-system-design
1stars

skills/caching-strategies/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-system-design/blob/main/skills/caching-strategies/SKILL.md -a claude-code --skill caching-strategies

Installation paths:

Claude
.claude/skills/caching-strategies/
Powered by add-skill CLI

Instructions

# Caching Strategies Skill

> **Purpose**: Atomic skill for caching architecture with comprehensive invalidation patterns and performance metrics.

## Skill Identity

| Attribute | Value |
|-----------|-------|
| **Scope** | Redis, CDN, Cache Invalidation |
| **Responsibility** | Single: Caching layer design and optimization |
| **Invocation** | `Skill("caching-strategies")` |

## Parameter Schema

### Input Validation
```yaml
parameters:
  caching_context:
    type: object
    required: true
    properties:
      use_case:
        type: string
        enum: [session, api_response, database, static_assets, compute]
        required: true
      data_profile:
        type: object
        required: true
        properties:
          size_per_item: { type: string, pattern: "^\\d+[KMGB]?B?$" }
          total_items: { type: integer, minimum: 1 }
          update_frequency: { type: string, enum: [real_time, seconds, minutes, hours, days] }
          access_pattern: { type: string, enum: [uniform, hot_cold, temporal] }
      requirements:
        type: object
        properties:
          hit_rate_target: { type: number, minimum: 0, maximum: 100 }
          max_latency_ms: { type: integer, minimum: 1 }
          consistency: { type: string, enum: [strict, eventual] }
          budget_monthly: { type: string }

validation_rules:
  - name: "hit_rate_feasibility"
    rule: "hit_rate_target <= 99.9"
    error: "100% hit rate is not achievable in practice"
  - name: "memory_estimate"
    rule: "size_per_item * total_items <= available_memory"
    warning: "May require cache eviction or sharding"
```

### Output Schema
```yaml
output:
  type: object
  properties:
    architecture:
      type: object
      properties:
        layers: { type: array }
        technology: { type: string }
        topology: { type: string }
    configuration:
      type: object
      properties:
        memory_allocation: { type: string }
        eviction_policy: { type: string }
        ttl_strategy

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
8468 chars