sim_build — Claude Code prompt: trial simulation and setup
The sim_build Claude Code prompt builds and documents a Monte Carlo simulation of clinical trial outcomes. It models program success while accounting for parameter uncertainty and operational failure modes.
no license ★ 654 updated 2026-11-09
/plugin marketplace add anthropics/life-sciences
/plugin install clinical-trial-forecast@life-sciencesWhat sim_build does
The prompt lays out a trial simulation with separate stages for parameter uncertainty, random trial data, statistical analysis, and program-level success. It calls for estimates of overall success, factor contributions, sensitivity to parameters and scenarios, plus a results.json file, figures, and a sim_report.md chapter.
The task requires brief.md, params.json, Bash, and Python 3 with numpy, scipy, pandas, and matplotlib. Network access and access outside the current directory are prohibited. If parameters conflict internally, the specified distribution should still be implemented and the issue recorded in issues.
What it helps with
- estimate clinical program success with Monte Carlo simulation
- separate parameter uncertainty from trial-level randomness
- compare scenarios and operational failure modes
- produce sensitivity figures and a results report
Example prompts for the agent
- Build a clinical trial simulation from
brief.mdandparams.json, then write the results and report. - Show how the probability of success changes across parameter values and trial sizes.
- Compare the listed scenarios and identify which constraints most often prevent trial success.
How to install sim_build
1Plugin marketplace
/plugin marketplace add anthropics/life-sciences/plugin install clinical-trial-forecast@life-sciences2Manually: put the files in place
.claude/commands/sim_build.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about sim_build
How do I install sim_build 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 listed as .claude/commands/sim_build.md.
What does sim_build do?
It specifies a clinical trial simulation and analysis of its outcomes. Required outputs include results.json, figures, and a sim_report.md report chapter.
What does sim_build need to run?
It needs brief.md, params.json, Bash, and Python 3 with numpy, scipy, pandas, and matplotlib. The task forbids network access and work outside the current directory.