用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ben-manes/caffeine --skill sim-analyze命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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
正在显示 SKILL.md
基于 SOC 职业分类
| name | sim-analyze |
| description | Analyze a cache trace file to understand its characteristics and recommend policies |
| argument-hint | <trace-file> |
| context | fork |
| disable-model-invocation | true |
| allowed-tools | Read, Grep, Glob, Bash |
Analyze the given cache trace to understand its access pattern characteristics and recommend which cache policies would perform best.
Trace file: $ARGUMENTS
Identify the trace format and read the trace:
Compute trace statistics. Write a small analysis script or use the simulator's synthetic tools to characterize:
Characterize the workload:
Recommend policies for comparison:
Run a quick validation. Execute a single-size simulation using
simulator:run (not simulator:simulate which does multi-size):
./gradlew simulator:run -q \
-Dcaffeine.simulator.files.paths.0="format:path" \
-Dcaffeine.simulator.maximum-size=SIZE \
-Dcaffeine.simulator.policies.0=product.Caffeine \
-Dcaffeine.simulator.policies.1=opt.Clairvoyant \
-Dcaffeine.simulator.policies.2=linked.Lru
Note: each policy creates instances per admission filter (default: Always, TinyLfu, Clairvoyant). If a trace has no weight data, weighted-only policies are silently skipped.
Report:
/sim-compare invocation for full analysis