headysystems/heady-testing/heady-resilience-cache

Claude Code and agent skill by headysystems/heady-testing

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 headysystems/heady-testing/heady-resilience-cache

SKILL.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

ModulePathRole
cachesrc/resilience/cache.jsMulti-tier caching engine
retrysrc/resilience/retry.jsRetry with configurable backoff
hot-cold-cachesrc/patterns/hot-cold-cache.jsTemperature-based cache tiers
auto-tuning-poolsrc/patterns/auto-tuning-pool.jsSelf-tuning connection pools

Instructions

Multi-Tier Cache Architecture
TierStoreTTLSizeLatency
L1 (Hot)In-memory Map89s89 items< 1ms
L2 (Warm)Redis610s233 items< 5ms
L3 (Cold)PostgreSQL2584s610 items< 21ms

All sizes and TTLs are Fibonacci numbers.

Hot-Cold Cache Pattern
  1. New entries start in L1 (hot).
  2. Entries cool to L2 after TTL expiry or eviction.
  3. L2 entries cool to L3 on same pattern.
  4. Access promotes entry back to L1 (warming).
  5. Eviction uses phi-weighted scoring: score = recency * PHI + frequency.
Retry Logic
javascript
const retryConfig = {
maxRetries: 8, // Fibonacci
baseDelay: 89, // ms, Fibonacci
maxDelay: 2584, // ms, Fibonacci
backoffFactor: 1.618, // Phi
jitter: 0.382, // Phi ratio
retryableErrors: [429, 500, 502, 503, 504],
};
  • 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
  1. Pool sizes auto-adjust based on utilization.
  2. Min connections: 5 (Fibonacci), Max: 34 (Fibonacci).
  3. Scale up when utilization > 0.618 (phi ratio).
  4. Scale down when utilization < 0.382 (phi ratio).
  5. Health checks: ping every 8 seconds (Fibonacci).
  6. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/headysystems/heady-testing/heady-resilience-cache/badge)](https://verified-skill.com/skills/headysystems/heady-testing/heady-resilience-cache)

Something wrong with this skill or its page? Tell us.