decision-tree-builder
Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations
Best use case
decision-tree-builder is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations
Teams using decision-tree-builder should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/decision-tree-builder/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How decision-tree-builder Compares
| Feature / Agent | decision-tree-builder | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Decision Tree Builder
## Overview
The Decision Tree Builder skill provides automated construction and analysis of decision trees for structuring complex business decisions. It enables systematic evaluation of alternatives through probability assignments, payoff calculations, and expected value analysis, supporting both prescriptive decision-making and sensitivity analysis.
## Capabilities
- Decision node and chance node creation
- Probability assignment and validation
- Expected value calculation
- Decision path optimization
- Sensitivity analysis on probabilities
- Rollback analysis automation
- Decision tree visualization generation
- Export to standard formats (JSON, XML)
## Used By Processes
- Structured Decision Making Process
- Multi-Criteria Decision Analysis (MCDA)
- Decision Quality Assessment
## Usage
### Basic Decision Tree Construction
```python
# Define decision structure
decision_tree = {
"type": "decision",
"name": "Market Entry Strategy",
"alternatives": [
{
"name": "Enter Now",
"type": "chance",
"outcomes": [
{"name": "High Demand", "probability": 0.6, "payoff": 1000000},
{"name": "Low Demand", "probability": 0.4, "payoff": -200000}
]
},
{
"name": "Wait and See",
"type": "chance",
"outcomes": [
{"name": "Market Grows", "probability": 0.5, "payoff": 600000},
{"name": "Market Stagnates", "probability": 0.5, "payoff": 100000}
]
}
]
}
```
### Expected Value Calculation
The skill calculates expected monetary value (EMV) for each decision path:
- EMV = Sum(probability * payoff) for each chance node
- Optimal decision selected based on maximum EMV
### Sensitivity Analysis
Identify critical probability thresholds where the optimal decision changes:
- One-way sensitivity on individual probabilities
- Two-way sensitivity for correlated probabilities
- Tornado diagrams for parameter importance
### Visualization Output
Generate decision tree diagrams with:
- Clear node labeling (decision squares, chance circles, terminal triangles)
- Probability annotations on branches
- Payoff values at terminal nodes
- Highlighted optimal path
## Input Schema
```json
{
"decision_name": "string",
"alternatives": [
{
"name": "string",
"outcomes": [
{
"name": "string",
"probability": "number (0-1)",
"payoff": "number",
"nested_decision": "optional object"
}
]
}
],
"analysis_options": {
"sensitivity_analysis": "boolean",
"visualization": "boolean",
"export_format": "json|xml|png|svg"
}
}
```
## Output Schema
```json
{
"optimal_alternative": "string",
"expected_value": "number",
"decision_path": ["string"],
"sensitivity_results": {
"critical_probabilities": ["object"],
"tornado_data": ["object"]
},
"visualization_path": "string"
}
```
## Best Practices
1. Ensure probabilities at each chance node sum to 1.0
2. Include all reasonably likely outcomes, not just best/worst cases
3. Use consistent monetary units for all payoffs
4. Document assumptions behind probability estimates
5. Perform sensitivity analysis on uncertain probabilities
6. Consider non-monetary values through utility functions when appropriate
## Integration Points
- Connects with Monte Carlo Engine for probability distributions
- Feeds into Decision Visualization for reporting
- Integrates with Bayesian Network Analyzer for probability updates
- Supports Decision Journal for documentationRelated Skills
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
developer-portal-builder
Build unified developer portals with Backstage or custom frameworks
cli-framework-builder
Build command-line interfaces for SDK interaction
Tree-sitter
Expert skill for creating tree-sitter grammars for incremental parsing and syntax highlighting
probuilder
Unity ProBuilder skill for level prototyping.
behavior-trees
Behavior tree design and implementation skill for game AI. Enables creation of behavior tree structures, custom nodes, decorators, composites, and integration with game engines for NPC and enemy AI systems.
clinical-decision-support-rules
Develop and maintain clinical decision support rules including alerts, reminders, order sets, and evidence-based recommendations within EHR systems
protocol-builder
Skill for building standardized research protocols
interactive-dashboard-builder
Skill for building interactive data dashboards
qiskit-circuit-builder
IBM Qiskit integration skill for quantum circuit construction, transpilation, and execution on IBM Quantum hardware
qec-code-builder
Quantum error correction code implementation skill for fault-tolerant quantum computing
cirq-circuit-builder
Google Cirq integration skill for quantum circuit design and execution on Google quantum processors