一键导入
cache-warm-before-cache-only-fanout
Warm the authoritative cache path first, then fan out cache-only readers in parallel so derived loaders never race stale state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Warm the authoritative cache path first, then fan out cache-only readers in parallel so derived loaders never race stale state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Collapse multiple change sources into one caller-facing boolean so headless bootstraps know whether a downstream refresh is necessary.
After awaiting persistence work, update the shared budget state for each `tool_use_id` exactly once so no concurrent reader ever sees a half-committed decision.
Issue continuation nudges while the turn stays under budget, then halt once diminishing returns or the budget cap justify stopping.
Lazily extract referenced files for bundled skills so large prompts stay offline until needed.
Persist a cache-safe stop-hook context snapshot only for main session queries so later helpers can resume from stable state without fork pollution.
Sweep stale extension caches before activation, then fall back to a sticky manual-refresh flag if the live refresh fails.
| name | cache-warm-before-cache-only-fanout |
| description | Warm the authoritative cache path first, then fan out cache-only readers in parallel so derived loaders never race stale state. |
| metadata | {"author":"ychampion"} |
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.
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.
Promise.all.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.