headyai/heady-staging/heady-resilience-cache
Claude Code and agent skill by headyai/heady-staging
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when implementing advanced caching strategies, retry logic with backoff, hot-cold cache patterns, auto-tuning connection pools, or cache optimization in the Heady™ ecosystem. Keywords include cache, caching, retry, hot-cold, auto-tuning, pool, connection pool, LRU, cache strategy, and resilience cache.
Install
npx vskill@latest install headyai/heady-staging/heady-resilience-cacheSKILL.md
The same SKILL.md was published earlier as headyai/heady-staging/heady-resilience-cache.
Heady™ Resilience & Cache Patterns
When to Use This Skill
Use this skill when the user needs to:
- Implement multi-tier caching strategies
- Configure retry logic with phi-backoff
- Set up hot-cold cache patterns
- Auto-tune connection pools
- Optimize cache hit rates
Module Map
| Module | Path | Role | |
|---|---|---|---|
| cache | src/resilience/cache.js | Multi-tier caching engine | |
| retry | src/resilience/retry.js | Retry with configurable backoff | |
| hot-cold-cache | src/patterns/hot-cold-cache.js | Temperature-based cache tiers | |
| auto-tuning-pool | src/patterns/auto-tuning-pool.js | Self-tuning connection pools |
Instructions
Multi-Tier Cache Architecture
| Tier | Store | TTL | Size | Latency | |
|---|---|---|---|---|---|
| L1 (Hot) | In-memory Map | 89s | 89 items | < 1ms | |
| L2 (Warm) | Redis | 610s | 233 items | < 5ms | |
| L3 (Cold) | PostgreSQL | 2584s | 610 items | < 21ms |
All sizes and TTLs are Fibonacci numbers.
Hot-Cold Cache Pattern
- New entries start in L1 (hot).
- Entries cool to L2 after TTL expiry or eviction.
- L2 entries cool to L3 on same pattern.
- Access promotes entry back to L1 (warming).
- Eviction uses phi-weighted scoring: score = recency * PHI + frequency.
Retry Logic
- Delay = min(baseDelay * PHI^attempt + jitter, maxDelay)
- Circuit breaker integration: stop retrying if circuit opens.
- Idempotency keys for safe retry of mutations.
Auto-Tuning Connection Pool
- Pool sizes auto-adjust based on utilization.
- Min connections: 5 (Fibonacci), Max: 34 (Fibonacci).
- Scale up when utilization > 0.618 (phi ratio).
- Scale down when utilization < 0.382 (phi ratio).
- Health checks: ping every 8 seconds (Fibonacci).
- Idle timeout: 89 seconds (Fibonacci).
Cache Invalidation
- TTL-based expiry (primary strategy).
- Event-driven invalidation via event-stream.
- Tag-based bulk invalidation.
- Write-through for consistency-critical data.
- Cache-aside for read-heavy workloads.
Output Format
- Cache Hit Rate Report
- Pool Utilization Metrics
- Retry Statistics
- Tier Distribution
- Optimization Recommendations
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingheady-resilience-cache/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/headyai/heady-staging/heady-resilience-cache)