# sim_finalize

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.

- prompt · `type=prompt` · Claude Code, ChatGPT · ★ 654 repo stars
- Author: anthropics · official Anthropic repository
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/anthropics/life-sciences/tree/HEAD/clinical-trial-forecast/prompts/sim_finalize.md
- Updated: 2026-11-09
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/sim-finalize

## What it 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.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/life-sciences
```
In the agent chat (not a shell):
```text
/plugin install clinical-trial-forecast@life-sciences
```

2. **Manually: put the files in place**
- File: `.claude/commands/sim_finalize.md`

### ChatGPT

**How to use**
- Paste the text at the start of a chat or into project instructions

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/anthropics/life-sciences/tree/HEAD/clinical-trial-forecast/prompts/sim_finalize.md

## When to use it
- 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
- 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.

## Similar
- [spice-sim](https://affpapa.org/en/nevibecode/skills/spice-sim.md) — skill · 1300 installs
- [finalize-agent-prompt](https://affpapa.org/en/nevibecode/skills/finalize-agent-prompt.md) — skill · 9000 installs
- [aer-referee-sim](https://affpapa.org/en/nevibecode/skills/aer-referee-sim.md) — skill · ★ 240 repo stars
- [finalize](https://affpapa.org/en/nevibecode/skills/sentimony-finalize.md) — skill · 1900 installs
- [serve-sim](https://affpapa.org/en/nevibecode/skills/serve-sim.md) — skill · 1100 installs
- [reader-sim](https://affpapa.org/en/nevibecode/skills/reader-sim.md) — skill · 634 installs

From the same set: [anthropics/life-sciences](https://affpapa.org/en/nevibecode/by/anthropics/life-sciences.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
