Decision tree analysis for complex decision-making across all domains. Use when user needs to evaluate multiple options with uncertain outcomes, assess risk/reward scenarios, or structure choices systematically. Applicable to business, investment, personal decisions, operations, career choices, product strategy, and any situation requiring structured evaluation. Triggers include decision tree, should I, what if, evaluate options, compare alternatives, risk analysis.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install decision-trees或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install decision-trees⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/decision-trees/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: decision-trees description: Decision tree analysis for complex decision-making across all domains. Use when user needs to evaluate multiple options with uncertain outcomes, assess risk/reward scenarios, or structure choices systematically. Applicable to business, investment, personal decisions, operations, career choices, product strategy, and any situation requiring structured evaluation. Triggers include decision tree, should I, what if, evaluate options, compare alternatives, risk analysis. ---
Decision tree analysis: a visual tool for making decisions with probabilities and expected value.
✅ Good for:
❌ Not suitable for:
Decision tree = tree-like structure where:
Process:
EV = Σ (probability_i × value_i)
Example:
Decision: Go to party or stay home?
Decision
├─ Go to party
│ ├─ Take jacket
│ │ ├─ Cold (70%) → 9 utility (party)
│ │ └─ Warm (30%) → 9 - 2 = 7 utility (carried unnecessarily)
│ │ EV = 0.7 × 9 + 0.3 × 7 = 8.4
│ └─ Don't take jacket
│ ├─ Cold (70%) → 9 - 10 = -1 utility (froze)
│ └─ Warm (30%) → 9 utility (perfect)
│ EV = 0.7 × (-1) + 0.3 × 9 = 2.0
└─ Stay home
└─ EV = 3.0 (always)
Conclusion: Go and take jacket (EV = 8.4) > stay home (EV = 3.0) > go without jacket (EV = 2.0)
Decision: Launch new product?
Launch product
├─ Success (40%) → +$500K
└─ Failure (60%) → -$200K
EV = (0.4 × 500K) + (0.6 × -200K) = 200K - 120K = +$80K
Don't launch
└─ EV = $0
Conclusion: Launch (EV = +$80K) is better than not launching ($0).
Decision: Enter position or wait?
Enter position
├─ Rise (60%) → +$100
└─ Fall (40%) → -$50
EV = (0.6 × 100) + (0.4 × -50) = 60 - 20 = +$40
Wait
└─ No position → $0
EV = $0
Conclusion: Entering position has positive EV (+$40), better than waiting ($0).
⚠️ Critical points:
But: The method is valuable for structuring thinking, even if numbers are approximate.
Ask:
Help estimate through:
Draw tree in markdown:
Decision
├─ Option A
│ ├─ Outcome A1 (X%) → Value Y
│ └─ Outcome A2 (Z%) → Value W
└─ Option B
└─ Outcome B1 (100%) → Value V
For each option:
EV_A = (X% × Y) + (Z% × W)
EV_B = V
Option with highest EV = best choice (rationally).
But add context:
Position Sizing:
Entry Timing:
Product Launch:
Hiring Decision:
Career Change:
Real Estate:
Capacity Planning:
Vendor Selection:
Use scripts/decision_tree.py for automated EV calculations:
python3 scripts/decision_tree.py --interactive
Or via JSON:
python3 scripts/decision_tree.py --json tree.json
JSON format:
{
"decision": "Launch product?",
"options": [
{
"name": "Launch",
"outcomes": [
{"name": "Success", "probability": 0.4, "value": 500000},
{"name": "Failure", "probability": 0.6, "value": -200000}
]
},
{
"name": "Don't launch",
"outcomes": [
{"name": "Status quo", "probability": 1.0, "value": 0}
]
}
]
}
Output:
📊 Decision Tree Analysis
Decision: Launch product?
Option 1: Launch
└─ EV = $80,000.00
├─ Success (40.0%) → +$500,000.00
└─ Failure (60.0%) → -$200,000.00
Option 2: Don't launch
└─ EV = $0.00
└─ Status quo (100.0%) → $0.00
✅ Recommendation: Launch (EV: $80,000.00)
Before giving recommendation, ensure:
✅ Simple — people understand trees intuitively ✅ Visual — clear structure ✅ Works with little data — can use expert estimates ✅ White box — transparent logic ✅ Worst/best case — extreme scenarios visible ✅ Multiple decision-makers — can account for different interests
...
安装 Decision Trees 后,可以对 AI 说这些话来触发它
Help me get started with Decision Trees
Explains what Decision Trees does, walks through the setup, and runs a quick demo based on your current project
Use Decision Trees to decision tree analysis for complex decision-making across all domains
Invokes Decision Trees with the right parameters and returns the result directly in the conversation
What can I do with Decision Trees in my finance & investment workflow?
Lists the top use cases for Decision Trees, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/decision-trees/ 目录(个人级,所有项目可用),或 .claude/skills/decision-trees/(项目级)。重启 AI 客户端后,用 /decision-trees 主动调用,或让 AI 根据上下文自动发现并使用。
Decision Trees 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Decision Trees 可免费安装使用。请查阅仓库了解许可证信息。
Decision tree analysis for complex decision-making across all domains. Use when user needs to evaluate multiple options with uncertain outcomes, assess risk/reward scenarios, or structure choices systematically. Applicable to business, investment, personal decisions, operations, career choices, product strategy, and any situation requiring structured evaluation. Triggers include decision tree, should I, what if, evaluate options, compare alternatives, risk analysis.
Automate my finance & investment tasks using Decision Trees
Identifies repetitive steps in your workflow and sets up Decision Trees to handle them automatically
Decision Trees 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。