Production-grade caching strategies skill for Redis patterns, CDN configuration, cache invalidation, and performance optimization
View on GitHubpluginagentmarketplace/custom-plugin-system-design
custom-plugin-system-design
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-system-design/blob/main/skills/caching-strategies/SKILL.md -a claude-code --skill caching-strategiesInstallation paths:
.claude/skills/caching-strategies/# 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