papermill/skills/simulation/SKILL.md
Design Monte Carlo simulations for theoretical validation: sample size determination, convergence diagnostics, and result presentation. Specialized for statistical methodology papers.
npx skillsauth add queelius/claude-anvil simulationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Help the researcher design rigorous Monte Carlo simulations to validate theoretical results. Simulations bridge the gap between theory and practice -- they demonstrate that analytical formulas work as predicted and reveal finite-sample behavior.
Read .papermill/state.md (Read tool) for:
If .papermill/state.md does not exist, ask the user which theoretical result needs validation. Simulation design can proceed without the state file — suggest running /papermill:init afterward.
Scan the repository for existing simulation code and results (Glob/Read tools).
Ask: "Which theoretical result are you validating with this simulation?"
Common simulation targets in methodology papers:
Specify exactly how to generate synthetic data:
| What to measure | How to summarize | |----------------|-----------------| | Bias | Mean(estimate) - true value | | Variance | Var(estimates) across replicates | | MSE | Bias^2 + Variance | | Coverage | Fraction of CIs containing true value | | Convergence rate | Plot metric vs. n on log scale |
parallel (R), multiprocessing (Python), or OpenMP (C++).Before presenting results, verify the simulation itself is reliable:
Design the output tables and figures:
Warn about:
If .papermill/state.md exists, register the simulation (Edit tool) under experiments. If it does not exist, skip registration and suggest running /papermill:init.
The entry uses the standard experiment schema with an optional config block for simulation-specific parameters:
experiments:
- name: "simulation-name"
type: "simulation"
hypothesis: "Empirical covariance matches theoretical FIM as n grows"
status: "planned"
script: "research/simulate_covariance.R"
last_run: null
config: # simulation-specific extension, not in the base experiment schema
replications: 5000
sample_sizes: [50, 100, 200, 500, 1000]
parameter_configs: 3
Append a timestamped note documenting the simulation design.
Based on the simulation status, suggest the most relevant next step:
/papermill:proof if the proof itself needs work."/papermill:proof to re-examine the proof's assumptions."/papermill:review to get feedback on the presentation of simulation results."development
Force a research-agent run to conclude. Launches the researcher in synthesis mode: it reads state.md and log.md, writes .research/synthesis.md with outcome, key findings, failed approaches, open questions, and recommendations, then exits. Use when current results are good enough or the agent is stalling.
data-ai
Show the current state of an in-flight research-agent run from .research/state.md, log.md, and attempts/. Read-only summary of cycles, sub-problems, hypothesis statuses, eval trend, and current focus.
testing
Resume an interrupted research-agent run. Re-launches the researcher with instructions to read .research/state.md and log.md, reorient, and continue from the documented current focus. Use after a context compression, session restart, or explicit pause.
tools
When and how to use the repoindex plugin surface (MCP tools, agents, slash commands) for collection queries, release prep, activity summaries, and tag discipline. Use when users ask repoindex questions, mention their repo catalog, or want to know which repoindex tool fits their task.