ワンクリックで
sim-analyze
Analyze a cache trace file to understand its characteristics and recommend policies
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze a cache trace file to understand its characteristics and recommend policies
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit the adaptive window hill-climber and region-resize logic for implementation defects (not algorithm quality)
JSR-107 (JCache) spec-conformance audit
Audit explicit state machines (drain status, node lifecycle, async-value lifecycle) for illegal or missed transitions
Heavyweight history-mining bug audit. Walks the caffeine module's git history chronologically (oldest to HEAD), maintains a forward-tracked issue database, and surfaces concerns introduced by past commits that were never resolved. Catches bugs that snapshot mining cannot — half-fixes invisible from current state, latent+trigger pairs across multi-commit interactions, and partial refactors. Slow (model/effort-dependent; ~24h on Opus + max effort) and rare-run (every several months or before a major release).
Differential audit comparing matched code paths that should behave identically. Spawns one auditor per sibling pair (sync/async, bounded/unbounded, view consistency, bulk vs single, generated node variants, read fast vs slow, adapter conformance) and requires a concrete witness scenario where the two paths diverge observably.
Find places where documented API contracts and the implementation diverge
| 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