1---2name: run-what-if-analysis3description: Builds a scenario and sensitivity analysis for a decision (best, base and worst cases, a tornado chart and breakevens) as a spreadsheet layout with exact formulas. Use before committing to a plan.4license: CC0-1.05arguments:6 - decision7 - variables8 - app9argument-hint: <decision> <variables> [app]10disable-model-invocation: true11metadata:12 version: 1.0.013 kind: prompt14 category: spreadsheets15 source: https://skillmd.com/skills/hermes-hq/run-what-if-analysis16 upstream: https://hermes-ide.com/prompts/run-what-if-analysis17 catalog: 2026.1014.118---1920# Run a what-if analysis2122## Inputs2324- `decision` (required): The decision and the outcome that matters, for example "whether to open a second café; outcome is 3-year cumulative profit".25- `variables` (required): The uncertain inputs, each with a base value and, if you have them, a low and high value and where the numbers come from.26- `app` (optional; one of: excel, google-sheets; default: excel): The spreadsheet app the formulas should work in.2728Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.2930<context>31A what-if model is useful when it shows which assumptions the decision actually depends on. That takes three views: coherent scenarios (best, base and worst cases built from assumptions that would plausibly happen together, not every input at its extreme at once), one-way sensitivity (swing each input from low to high with the others at base, sorted by impact in a tornado chart), and breakevens (the value of each key input at which the decision flips). The model must keep inputs separate from calculations, so changing an assumption never means editing a formula.32</context>3334<task>35Build a what-if analysis in $app for this decision:36<decision>37$decision38</decision>39Uncertain inputs:40<variables>41$variables42</variables>43441. Define the output metric and the decision rule (for example "go if 3-year profit is above zero").452. Write the model as a short chain of formulas from inputs to output, and state every structural assumption (time horizon, what is fixed versus variable, timing of cash flows, discounting).463. Lay out an Inputs sheet: one row per input with name, unit, low, base, high, source, plus a scenario selector cell. Give each input a named range.474. Lay out a Calculation sheet that references only the live input cells, with exact cell addresses and formulas.485. Scenarios: define best, base and worst as coherent sets of input values, explain why each set hangs together, and drive the live inputs from the selector (for example with `CHOOSE` or `INDEX` on the scenario number). In Excel, also mention Scenario Manager as an option.496. Sensitivity: for each input, compute the output at its low and high value with the others at base, and the swing. In Excel, use a one-variable Data Table or a LAMBDA of the model; in Google Sheets, which has no Data Table feature, wrap the model in a named function or LAMBDA, or give one row per input that recomputes the output with the overridden value. Sort by swing and describe how to chart it as a tornado (a bar chart of low and high deltas from base).507. Breakevens: for the two or three most sensitive inputs, solve for the value at which the decision rule flips, algebraically where possible, or with Goal Seek (built into Excel; an add-on in Google Sheets).518. Compute the base, best and worst outputs and the sensitivity table from the numbers given, showing the arithmetic.52</task>5354<constraints>55- Use only the user's numbers. If an input has no low or high value, propose a range, label it "[assumed range]" with the reasoning, and list it under How to read it.56- If an important input seems to be missing from the list (for example taxes, ramp-up time or one-off costs), name it and ask whether to add it rather than silently inventing a value.57- Every formula must work in $app as written; use function names and separators for an English-locale setup and say so.58- Present the model as a decision aid, not a recommendation: the decision belongs to the user, and the model is only as good as its ranges.59- Keep it auditable: no hard-coded numbers inside formulas, and no circular references.60</constraints>6162<output_format>63## Model64The output metric, decision rule, formula chain and structural assumptions.65## Inputs sheet66A table: cell | name | unit | low | base | high | source.67## Calculation sheet68A table: cell | label | formula.69## Scenarios70A table: input | worst | base | best, then the output for each scenario and the selector formula.71## Sensitivity72A table sorted by swing: input | output at low | output at high | swing; then the formulas and the tornado chart steps.73## Breakevens74Each input's breakeven value and how it was found.75## How to read it76Three to five bullets: which assumptions matter most, which ranges were assumed, and what to verify before deciding.77</output_format>