Cache warm before cache only fanout

From ychampion/cskill-agents · View interactive version

Cache warm before cache only fanout is an AI agent skill from the GitHub repository ychampion/cskill-agents. Warm the authoritative cache path first, then fan out cache-only readers in parallel so derived loaders never race stale state.

How to use this skill

Skill file

SKILL: Cache Warm Before Cache-Only Fanout

Domain: extensions-mcp

Trigger: Apply when one authoritative load populates caches that several cheaper readers depend on, and parallel reads would race the warm path.

Source Pattern: Distilled from reviewed extension lifecycle and source-reconciliation patterns.

Core Method

Run the expensive authoritative loader first, let it materialize and warm the shared caches, and only then fan out cache-only readers in parallel. This preserves a single source of truth for cache population while still recovering parallelism for the cheap derived reads. The result is deterministic: every downstream reader sees the same fresh state without each one redoing install or clone work.

Key Rules

Example Application

If an extension refresh must first scan and clone any missing plugins before separate readers build the command list and agent list, await the full plugin load once, then run command extraction and agent extraction in parallel against the warmed cache.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.