用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ben-manes/caffeine --skill sim-compare命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | sim-compare |
| description | Run cache policy hit rate comparison across multiple cache sizes with charts |
| argument-hint | <trace-file> [policies...] [sizes...] |
| context | fork |
| disable-model-invocation | true |
| allowed-tools | Read, Grep, Glob, Bash |
Run a comprehensive cache policy comparison for the given trace.
Trace file: $ARGUMENTS
If no policies or sizes are specified, use sensible defaults based on the trace.
Identify the trace format. Check the file extension and contents:
.gz files: try common formats (lirs, arc, etc.)simulator/src/main/resources/reference.conf for format optionsformat:path syntax (e.g., lirs:trace.gz)Select policies to compare. Policy names use category.PolicyName format.
Note: config categories use hyphens (two-queue, greedy-dual), not underscores.
Each policy is paired with configured admission filters (default: Always, TinyLfu,
Clairvoyant), creating multiple instances per policy name.
Include at minimum:
product.Caffeine (the production implementation)opt.Clairvoyant (theoretical optimal, upper bound)opt.Unbounded (infinite cache, ceiling)linked.Lru (baseline)sketch.WindowTinyLfu (research W-TinyLFU)sketch.HillClimberWindowTinyLfu (adaptive variant)linked.S4Lru, adaptive.Arclinked.Lfu, irr.Lirstwo-queue.TwoQueue, two-queue.S3Fifogreedy-dual.Gdsf, greedy-dual.CampChoose cache sizes. Use a geometric progression covering the working set:
100,500,1_000,2_500,5_000,10_000,25_000Run the simulation. Use the Gradle task:
./gradlew simulator:simulate -q \
--maximumSize=100,500,1000,2500,5000,10000 \
--metric="Hit Rate" \
--title="Description" \
--theme=light \
--outputDir=build/reports/sim
Override the trace and policies via system properties appended to the command:
-Dcaffeine.simulator.files.paths.0="format:path/to/trace"
-Dcaffeine.simulator.policies.0=product.Caffeine
-Dcaffeine.simulator.policies.1=opt.Clairvoyant
# ... etc
Note: for single-size runs, use ./gradlew simulator:run -q with
-Dcaffeine.simulator.maximum-size=N instead of simulator:simulate.
Read and interpret results. The simulate task produces:
Explain findings. For each notable result:
.claude/docs/research-foundations.md for paper-to-code mappingReport. Present: