narrative_writer — Claude Code prompt for forecast reports
The narrative_writer prompt for Claude Code and ChatGPT builds a narrative section for a clinical-trial forecast report. It traces the model from phase 2 evidence to the estimated probability of a phase 3 outcome.
no license ★ 654 updated 2026-11-09
/plugin marketplace add anthropics/life-sciences
/plugin install clinical-trial-forecast@life-sciencesWhat narrative_writer does
The prompt structures the report section around the simulation stages, explaining each modelling choice and the evidence behind it. It calls for source tables, calculations, uncertainty estimates and conclusions about the outcome probability. Stages with little effect on the forecast can be combined; the report body has a 3,500-word limit, including tables.
The workflow draws on model files such as sim/flow.json, sim/params.json, sim/parameter_metadata.json, sim/results.json and sim/summary_stats.json, plus trial analyses and topic research. It instructs the model to preserve parameter values and outputs rather than recalculate them, use corrected figures from independent number checks, and include charts with specifications for additional visualisations. Web access is prohibited.
The prompt takes report details such as report_kind, indication, asset, audience and goal. It does not run the simulation itself. Installing it in Claude Code uses the marketplace commands and the .claude/commands/narrative_writer.md file.
What it helps with
- explain how a clinical-trial forecast is built
- connect model assumptions to trial evidence
- show which stages contribute most to forecast uncertainty
- prepare report conclusions and phase 3 forecast figures
Example prompts for the agent
- Write the forecast section for
{{indication}}and{{asset}}using the model materials. - Trace how the phase 2 evidence feeds into the estimated phase 3 outcome probability.
- Draft the simulation-stage narrative and show the main sources of forecast uncertainty.
How to install narrative_writer
1Plugin marketplace
/plugin marketplace add anthropics/life-sciences/plugin install clinical-trial-forecast@life-sciences2Manually: put the files in place
.claude/commands/narrative_writer.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about narrative_writer
How do I install narrative_writer in Claude Code?
Run /plugin marketplace add anthropics/life-sciences, then /plugin install clinical-trial-forecast@life-sciences. The command file is .claude/commands/narrative_writer.md.
What does narrative_writer do?
It helps write a clinical-trial forecast report section, linking simulation stages and modelling choices to evidence, tables, figures and outcome probabilities.
What materials does narrative_writer use?
It reads model files under sim/ and research materials from knowledge/, analyses/, topics/, research/ and intake/. The prompt prohibits web access.