协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
decision-tree-builder【开发与工程】Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: decision-tree-builder description: Automated decision tree construction skill for structuring complex decisions with probabilities, payoffs, and expected value calculations allowed-tools:
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.
# 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}
]
}
]
}
The skill calculates expected monetary value (EMV) for each decision path:
Identify critical probability thresholds where the optimal decision changes:
Generate decision tree diagrams with:
{
"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"
}
}
{
"optimal_alternative": "string",
"expected_value": "number",
"decision_path": ["string"],
"sensitivity_results": {
"critical_probabilities": ["object"],
"tornado_data": ["object"]
},
"visualization_path": "string"
}