sim_finalize — Claude Code prompt: what it does, how to install
The sim_finalize prompt for Claude Code prepares a report on an accepted clinical-trial simulation. Run it to assemble the model description, summary measures, and figures.
no license ★ 654 updated 2026-11-09
/plugin marketplace add anthropics/life-sciences
/plugin install clinical-trial-forecast@life-sciencesWhat sim_finalize does
The prompt directs the agent to turn a Monte Carlo simulation and its results into a publication-ready report. It specifies an architecture flow, parameter metadata, summary statistics, and figures covering effect adjustments, sensitivity, and observed versus true effects. Outputs include JSON files, PNG charts, and a finalization log.
Work stays inside the current sandbox, with no network or access beyond that directory. The accepted simulate.py and params.json must remain unchanged; a separate finalize.py can handle extra simulation records. Requirements include Bash, Python 3 with numpy, scipy, pandas, and matplotlib, plus Read, Write, Edit, Glob, and Grep.
What it helps with
- map the stages of a Monte Carlo simulation
- document model parameters with evidence sources
- summarize success probabilities and uncertainty intervals
- plot effect adjustments and simulation outcomes
Example prompts for the agent
- Prepare the final report for the accepted simulation in this sandbox.
- Create parameter metadata and summary statistics for the report.
- Generate the listed figures and record the calculations in the finalization log.
How to install sim_finalize
1Plugin marketplace
/plugin marketplace add anthropics/life-sciences/plugin install clinical-trial-forecast@life-sciences2Manually: put the files in place
.claude/commands/sim_finalize.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about sim_finalize
How do I install sim_finalize in Claude Code?
Add the marketplace with /plugin marketplace add anthropics/life-sciences, then install the plugin with /plugin install clinical-trial-forecast@life-sciences. The command file is .claude/commands/sim_finalize.md.
What does sim_finalize do?
It prepares a simulation architecture description, parameter metadata, summary statistics, and report figures. It also writes a log of the calculations and results check.
What does sim_finalize need to run?
It needs an accepted simulation containing simulate.py and params.json, Bash, and Python 3 with numpy, scipy, pandas, and matplotlib. It is restricted to the current sandbox and must leave the two accepted model files unchanged.