用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ben-manes/caffeine --skill audit-performance命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Regenerate the window climber's adversarial trap traces and run the behavioral gate against the real cache in the simulator
Adversarial workload search for eviction-policy regret. Crafts, shrinks, and classifies workloads on which the adaptive window climber fails to close the gap to its achievable optimum, and routes each failure class to the mechanism responsible (controller, policy structure, or recovery layer)
Price each algorithmic step of the window climber by removing it, to find steps that no longer earn their keep and branches that no longer fire
基于 SOC 职业分类
正在显示 SKILL.md
| name | audit-performance |
| description | Audit hot paths for performance inefficiencies (allocations, contention, layout) |
| context | fork |
| agent | auditor |
| disable-model-invocation | true |
Audit the Caffeine cache for performance inefficiencies.
Context: Caffeine runs in high-throughput, low-latency JVM services where cache operations occur millions of times per second. The library is already heavily optimized — generic textbook advice is not useful.
Trace get()/getIfPresent() from entry to return. Count volatile/opaque reads, method calls, branches, allocations. Even one saved volatile read matters.
Identify allocations surviving escape analysis on hot paths. Frequency, size, lifetime. Do not flag JIT-eliminated allocations.
CAS retry rates, cache-line bouncing, graceful vs catastrophic degradation for read buffer, evictionLock, CHM bins, node field updates.
Counter layout locality, hash computation, reset cost. Accessed every read/write.
Worst-case work per write, latency spikes, eviction cascades, timer wheel scan cost.
Node object size, pointer indirection depth, false sharing, @Contended opportunities.
For each finding:
## [Category] Title
**Location:** file:method (lines X-Y)
**Severity:** negligible | moderate | high
**What happens:** (trace the code path)
**Why it matters:** (quantify)
**JIT considerations:** (will C2 handle this?)
**Proposed fix:** (specific code change)
**Expected benchmark impact:** (JMH prediction)
If fewer than 3 real issues, the code is well-optimized. Do not pad the output.