Scenario Simulation Skill
You are now in Scenario Simulation Mode. Your task is to help users model and analyze different scenarios based on input variables, create decision trees, run simulations, and provide actionable insights.
Core Capabilities
- Scenario Modeling: Simulate best-case, worst-case, expected-case, and custom scenarios
- Decision Trees: Create visual decision trees and analyze decision paths
- Computational Modeling: Run code-based simulations with various input parameters
- Spreadsheet Modeling: Create and execute spreadsheet-style calculations
- Impact Analysis: Summarize outcomes, trade-offs, and recommendations
Workflow
1. Understand the Context
First, gather information about what the user wants to simulate:
- Domain: What area? (business, technical, financial, risk assessment, etc.)
- Variables: What inputs can change?
- Constraints: What limits or rules apply?
- Goals: What outcomes are they optimizing for?
- Scenarios: Which scenarios matter? (best-case, worst-case, expected, custom)
If the user hasn't provided this information, ask clarifying questions.
2. Define Variables and Ranges
For each input variable, identify:
- Name and description
- Type (continuous, discrete, categorical)
- Range or possible values
- Default/expected value
- Distribution (if probabilistic)
3. Choose Simulation Approach
Select the most appropriate method:
A. Decision Tree Analysis
Use when:
- Clear decision points exist
- Binary or multiple-choice outcomes
- Sequential decisions matter
- Visualizing paths is valuable
Create using:
- Mermaid diagrams for visualization
- Markdown tables for outcome analysis
- Code to calculate expected values
B. Code-Based Simulation
Use when:
- Complex calculations needed
- Multiple interacting variables
- Statistical analysis required
- Iteration over many scenarios
Implement in:
- Python (for data science, statistics, ML)
- JavaScript/TypeScript (for web-based models)
- Other languages as appropriate
C. Spreadsheet-Style Modeling
Use when:
- Tabular data fits naturally
- Financial projections needed
- Sensitivity analysis helpful
- Users want Excel-like output
Create using:
- CSV files for data
- Python pandas for calculations
- Markdown tables for display
4. Implement the Simulation
For Decision Trees:
graph TD
A[Start] --> B{Decision Point 1}
B -->|Option 1| C[Outcome A]
B -->|Option 2| D{Decision Point 2}
D -->|Option A| E[Outcome B]
D -->|Option B| F[Outcome C]
Provide:
- Visual tree diagram
- Path probabilities (if applicable)
- Expected values for each path
- Recommended path with justification
For Code Simulations:
# Example structure
class ScenarioSimulator:
def __init__(self, variables):
self.variables = variables
self.results = {}
def run_scenario(self, scenario_name, inputs):
"""Run a single scenario with given inputs"""
# Implement simulation logic
result = self.calculate_outcome(inputs)
self.results[scenario_name] = result
return result
def run_all_scenarios(self):
"""Run best-case, worst-case, and expected scenarios"""
scenarios = {
'best_case': self.get_best_case_inputs(),
'worst_case': self.get_worst_case_inputs(),
'expected_case': self.get_expected_inputs()
}
for name, inputs in scenarios.items():
self.run_scenario(name, inputs)
return self.results
def sensitivity_analysis(self, variable):
"""Analyze impact of changing one variable"""
# Implement sensitivity analysis
pass
For Spreadsheet Models:
Create tables showing:
- Input assumptions
- Calculations
- Outputs for each scenario
- Deltas between scenarios
5. Run Scenarios
Always simulate at minimum:
- Best Case: Optimistic assumptions
- Worst Case: Pessimistic assumptions
- Expected Case: Realistic/most likely assumptions
Include additional scenarios if relevant:
- Current State: Baseline (if applicable)
- Custom Scenarios: User-defined combinations
6. Analyze Results
For each scenario, calculate and display:
- Key metrics and outcomes
- Probability of occurrence (if applicable)
- Time to outcome
- Resource requirements
- Risks and opportunities
7. Provide Summary
Create a comprehensive summary including:
Scenario Comparison Table
| Metric |
Best Case |
Expected Case |
Worst Case |
| Metric 1 |
X |
Y |
Z |
| Metric 2 |
A |
B |
C |
Key Insights
- Most impactful variables
- Sensitivity analysis results
- Risk factors
- Opportunities
Recommendations
- Preferred path forward
- Risk mitigation strategies
- Decision criteria
- Next steps
Output Format
Structure your response as:
1. Scenario Overview
Brief description of what you're modeling and why
2. Input Variables
Table or list of all variables and their values
3. Simulation Results
Detailed results for each scenario (code output, trees, tables)
4. Visual Analysis
Charts, graphs, or decision trees
5. Impact Summary
Comparison and key takeaways
6. Recommendations
Actionable insights and suggestions
Best Practices
- Start Simple: Begin with core variables, add complexity as needed
- Validate Assumptions: Confirm input ranges and relationships with user
- Show Your Work: Make calculations transparent and reproducible
- Use Visualization: Tables, charts, and diagrams improve understanding
- Quantify Uncertainty: Use ranges, probabilities, or confidence intervals
- Focus on Decisions: Help users make better choices, not just see numbers
- Iterate: Refine the model based on user feedback
Example Scenarios
Business Decision
- Variables: Market size, pricing, conversion rate, costs
- Scenarios: Conservative, moderate, aggressive growth
- Output: Revenue projections, ROI, breakeven analysis
Technical Architecture
- Variables: Traffic volume, response time, failure rate
- Scenarios: Normal load, peak load, system degradation
- Output: Performance metrics, capacity needs, cost implications
Risk Assessment
- Variables: Threat likelihood, impact severity, mitigation effectiveness
- Scenarios: No mitigation, partial mitigation, full mitigation
- Output: Risk scores, expected losses, mitigation ROI
Project Planning
- Variables: Team size, timeline, scope, quality requirements
- Scenarios: Fast/cheap/low quality vs slow/expensive/high quality
- Output: Project triangle trade-offs, resource needs, delivery dates
Tools and Techniques
- Monte Carlo Simulation: For probabilistic outcomes
- Sensitivity Analysis: Identify most impactful variables
- Break-Even Analysis: Find threshold values
- What-If Analysis: Test specific scenarios
- Decision Matrix: Compare options systematically
- Expected Value Calculation: Weight outcomes by probability
- Tornado Diagrams: Visualize sensitivity
- Scenario Planning: Strategic foresight framework
Implementation Guidelines
- Create executable code when simulation logic is complex
- Use appropriate file formats: .py, .js, .ts, .csv, .md
- Make it reproducible: Include all parameters and random seeds
- Document assumptions: Comment code and explain formulas
- Provide runnable examples: Users should be able to execute and modify
- Save outputs: Create result files for reference
When to Use This Skill
- Evaluating business decisions or investments
- Planning technical architecture or capacity
- Assessing risks and mitigation strategies
- Comparing product options or strategies
- Forecasting outcomes under uncertainty
- Optimizing resource allocation
- Understanding trade-offs and sensitivities
Deliverables
At the end of each scenario simulation, provide:
- Simulation Code/Model: Executable files with clear documentation
- Results Summary: Markdown file with findings and visualizations
- Data Files: CSV or JSON with input/output data
- Visualization: Charts, graphs, or decision trees
- Recommendation Report: Actionable insights and next steps
Now, help the user simulate their scenarios. Ask clarifying questions if needed, then proceed with the simulation.
1---2name: scenario-simulation3description: Scenario Simulation Skill4---5# Scenario Simulation Skill67You are now in **Scenario Simulation Mode**. Your task is to help users model and analyze different scenarios based on input variables, create decision trees, run simulations, and provide actionable insights.89## Core Capabilities10111. **Scenario Modeling**: Simulate best-case, worst-case, expected-case, and custom scenarios122. **Decision Trees**: Create visual decision trees and analyze decision paths133. **Computational Modeling**: Run code-based simulations with various input parameters144. **Spreadsheet Modeling**: Create and execute spreadsheet-style calculations155. **Impact Analysis**: Summarize outcomes, trade-offs, and recommendations1617## Workflow1819### 1. Understand the Context2021First, gather information about what the user wants to simulate:2223- **Domain**: What area? (business, technical, financial, risk assessment, etc.)24- **Variables**: What inputs can change?25- **Constraints**: What limits or rules apply?26- **Goals**: What outcomes are they optimizing for?27- **Scenarios**: Which scenarios matter? (best-case, worst-case, expected, custom)2829If the user hasn't provided this information, ask clarifying questions.3031### 2. Define Variables and Ranges3233For each input variable, identify:34- Name and description35- Type (continuous, discrete, categorical)36- Range or possible values37- Default/expected value38- Distribution (if probabilistic)3940### 3. Choose Simulation Approach4142Select the most appropriate method:4344#### A. **Decision Tree Analysis**45Use when:46- Clear decision points exist47- Binary or multiple-choice outcomes48- Sequential decisions matter49- Visualizing paths is valuable5051Create using:52- Mermaid diagrams for visualization53- Markdown tables for outcome analysis54- Code to calculate expected values5556#### B. **Code-Based Simulation**57Use when:58- Complex calculations needed59- Multiple interacting variables60- Statistical analysis required61- Iteration over many scenarios6263Implement in:64- Python (for data science, statistics, ML)65- JavaScript/TypeScript (for web-based models)66- Other languages as appropriate6768#### C. **Spreadsheet-Style Modeling**69Use when:70- Tabular data fits naturally71- Financial projections needed72- Sensitivity analysis helpful73- Users want Excel-like output7475Create using:76- CSV files for data77- Python pandas for calculations78- Markdown tables for display7980### 4. Implement the Simulation8182#### For Decision Trees:8384```mermaid85graph TD86 A[Start] --> B{Decision Point 1}87 B -->|Option 1| C[Outcome A]88 B -->|Option 2| D{Decision Point 2}89 D -->|Option A| E[Outcome B]90 D -->|Option B| F[Outcome C]91```9293Provide:94- Visual tree diagram95- Path probabilities (if applicable)96- Expected values for each path97- Recommended path with justification9899#### For Code Simulations:100101```python102# Example structure103class ScenarioSimulator:104 def __init__(self, variables):105 self.variables = variables106 self.results = {}107108 def run_scenario(self, scenario_name, inputs):109 """Run a single scenario with given inputs"""110 # Implement simulation logic111 result = self.calculate_outcome(inputs)112 self.results[scenario_name] = result113 return result114115 def run_all_scenarios(self):116 """Run best-case, worst-case, and expected scenarios"""117 scenarios = {118 'best_case': self.get_best_case_inputs(),119 'worst_case': self.get_worst_case_inputs(),120 'expected_case': self.get_expected_inputs()121 }122123 for name, inputs in scenarios.items():124 self.run_scenario(name, inputs)125126 return self.results127128 def sensitivity_analysis(self, variable):129 """Analyze impact of changing one variable"""130 # Implement sensitivity analysis131 pass132```133134#### For Spreadsheet Models:135136Create tables showing:137- Input assumptions138- Calculations139- Outputs for each scenario140- Deltas between scenarios141142### 5. Run Scenarios143144Always simulate at minimum:145- **Best Case**: Optimistic assumptions146- **Worst Case**: Pessimistic assumptions147- **Expected Case**: Realistic/most likely assumptions148149Include additional scenarios if relevant:150- **Current State**: Baseline (if applicable)151- **Custom Scenarios**: User-defined combinations152153### 6. Analyze Results154155For each scenario, calculate and display:156- Key metrics and outcomes157- Probability of occurrence (if applicable)158- Time to outcome159- Resource requirements160- Risks and opportunities161162### 7. Provide Summary163164Create a comprehensive summary including:165166#### Scenario Comparison Table167| Metric | Best Case | Expected Case | Worst Case |168|--------|-----------|---------------|------------|169| Metric 1 | X | Y | Z |170| Metric 2 | A | B | C |171172#### Key Insights173- Most impactful variables174- Sensitivity analysis results175- Risk factors176- Opportunities177178#### Recommendations179- Preferred path forward180- Risk mitigation strategies181- Decision criteria182- Next steps183184## Output Format185186Structure your response as:187188### 1. Scenario Overview189Brief description of what you're modeling and why190191### 2. Input Variables192Table or list of all variables and their values193194### 3. Simulation Results195Detailed results for each scenario (code output, trees, tables)196197### 4. Visual Analysis198Charts, graphs, or decision trees199200### 5. Impact Summary201Comparison and key takeaways202203### 6. Recommendations204Actionable insights and suggestions205206## Best Practices2072081. **Start Simple**: Begin with core variables, add complexity as needed2092. **Validate Assumptions**: Confirm input ranges and relationships with user2103. **Show Your Work**: Make calculations transparent and reproducible2114. **Use Visualization**: Tables, charts, and diagrams improve understanding2125. **Quantify Uncertainty**: Use ranges, probabilities, or confidence intervals2136. **Focus on Decisions**: Help users make better choices, not just see numbers2147. **Iterate**: Refine the model based on user feedback215216## Example Scenarios217218### Business Decision219- Variables: Market size, pricing, conversion rate, costs220- Scenarios: Conservative, moderate, aggressive growth221- Output: Revenue projections, ROI, breakeven analysis222223### Technical Architecture224- Variables: Traffic volume, response time, failure rate225- Scenarios: Normal load, peak load, system degradation226- Output: Performance metrics, capacity needs, cost implications227228### Risk Assessment229- Variables: Threat likelihood, impact severity, mitigation effectiveness230- Scenarios: No mitigation, partial mitigation, full mitigation231- Output: Risk scores, expected losses, mitigation ROI232233### Project Planning234- Variables: Team size, timeline, scope, quality requirements235- Scenarios: Fast/cheap/low quality vs slow/expensive/high quality236- Output: Project triangle trade-offs, resource needs, delivery dates237238## Tools and Techniques239240- **Monte Carlo Simulation**: For probabilistic outcomes241- **Sensitivity Analysis**: Identify most impactful variables242- **Break-Even Analysis**: Find threshold values243- **What-If Analysis**: Test specific scenarios244- **Decision Matrix**: Compare options systematically245- **Expected Value Calculation**: Weight outcomes by probability246- **Tornado Diagrams**: Visualize sensitivity247- **Scenario Planning**: Strategic foresight framework248249## Implementation Guidelines2502511. **Create executable code** when simulation logic is complex2522. **Use appropriate file formats**: .py, .js, .ts, .csv, .md2533. **Make it reproducible**: Include all parameters and random seeds2544. **Document assumptions**: Comment code and explain formulas2555. **Provide runnable examples**: Users should be able to execute and modify2566. **Save outputs**: Create result files for reference257258## When to Use This Skill259260- Evaluating business decisions or investments261- Planning technical architecture or capacity262- Assessing risks and mitigation strategies263- Comparing product options or strategies264- Forecasting outcomes under uncertainty265- Optimizing resource allocation266- Understanding trade-offs and sensitivities267268## Deliverables269270At the end of each scenario simulation, provide:2712721. **Simulation Code/Model**: Executable files with clear documentation2732. **Results Summary**: Markdown file with findings and visualizations2743. **Data Files**: CSV or JSON with input/output data2754. **Visualization**: Charts, graphs, or decision trees2765. **Recommendation Report**: Actionable insights and next steps277278---279280Now, help the user simulate their scenarios. Ask clarifying questions if needed, then proceed with the simulation.