reasoning-counterfactual

Evaluate alternative decisions by simulating interventions on past or hypothetical futures.

37|5|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/BellaBe/lean-os --skill reasoning-counterfactual
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reasoning-counterfactual
Source: https://github.com/BellaBe/lean-os/tree/main/.claude/skills/reasoning-counterfactual
Command: npx skills add https://github.com/BellaBe/lean-os --skill reasoning-counterfactual

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables counterfactual reasoning to simulate alternative interventions and compare outcomes, enabling better hindsight, scenario planning, and decision comparison.

Core Features & Use Cases

  • Stage-based framework: structure past decisions, interventions, and projections.
  • Probability weighting: assign probabilities to alternatives.
  • Comparative analysis: produce difference analysis and actionable insights.

Quick Start

Example: "Model a counterfactual where price is reduced by 20% and compare ARR impact with the actual outcome."

Frequently Asked Questions about reasoning-counterfactual

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate alternative decisions by simulating what-if scenarios?

Counterfactual reasoning lets you model past decisions with hypothetical interventions to compare actual outcomes against alternatives. Structure your scenario using the four-stage process: define the actual world, specify the intervention, project alternative outcomes, then analyze differences with probability weighting to see how changing one decision affects results.

What's the difference between scenario planning and counterfactual analysis?

Scenario planning explores multiple futures; counterfactual analysis isolates one specific intervention on a past decision to measure its impact. This Skill uses probability-weighted comparative analysis to show quantified differences between what happened and what could have happened, making hindsight actionable for future decisions.

Can I use counterfactual reasoning to test pricing or business decisions?

Yes. You can model interventions like price adjustments, feature changes, or timing shifts on past decisions, then compare projected outcomes such as ARR or customer acquisition against actual results using probability weighting to account for uncertainty in alternative scenarios.

What input structure does this Skill require?

The Skill uses a defined YAML schema to capture actual outcomes, specify interventions, project scenarios, and perform difference analysis. You provide the baseline decision state, describe the intervention precisely, define alternative projections, and the Skill applies minimal intervention constraints and causal tracing to generate comparative insights.

How does probability weighting work in counterfactual comparisons?

Probability weighting assigns confidence levels to each alternative scenario you model, ensuring the comparative analysis accounts for uncertainty rather than treating all paths as equally likely. This produces more realistic difference analysis when outcomes depend on variables you cannot control.

When should I use counterfactual analysis instead of A/B testing?

Counterfactual analysis works for past decisions you cannot re-run experimentally, decisions with long feedback loops, and scenario planning where A/B testing is infeasible. It trades experimental rigor for the ability to extract insights from historical data through structured intervention simulation and causal reasoning.