搜索

PythonReactSEOPDF
OpenClaw

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.

evgyur0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install evgyur/decision-trees

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Decision Trees — Structured Decision-Making

Decision tree analysis: a visual tool for making decisions with probabilities and expected value.

When to Use

✅ Good for:

  • Business decisions (investments, hiring, product launches)
  • Personal choices (career, relocation, purchases)
  • Trading & investing (position sizing, entry/exit)
  • Operational decisions (expansion, outsourcing)
  • Any situation with measurable consequences

❌ Not suitable for:

  • Decisions with true uncertainty (black swans)
  • Fast tactical choices
  • Purely emotional/ethical questions

Method

Decision tree = tree-like structure where:

  • Decision nodes (squares) — your actions
  • Chance nodes (circles) — random events
  • End nodes (triangles) — final outcomes

Process:

  1. Define options — all possible actions
  2. Define outcomes — what can happen after each action
  3. Estimate probabilities — how likely is each outcome (0-100%)
  4. Estimate values — utility/reward for each outcome (money, points, utility units)
  5. Calculate EV — expected value = Σ (probability × value)
  6. Choose — option with highest EV

Formula

EV = Σ (probability_i × value_i)

Example:

  • Outcome A: 70% probability, +$100 → 0.7 × 100 = $70
  • Outcome B: 30% probability, -$50 → 0.3 × (-50) = -$15
  • EV = $70 + (-$15) = $55

Classic Example (from Wikipedia)

Decision: Go to party or stay home?

Estimates:
  • Party: +9 utility (fun)
  • Home: +3 utility (comfort)
  • Carrying jacket unnecessarily: -2 utility
  • Being cold: -10 utility
  • Probability cold: 70%
  • Probability warm: 30%
Tree:
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 (al...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/evgyur/decision-trees
Version
—
Commit
742c1cd577568ba2bd0ace727767bd52c1b0544c
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Decision Trees Skill

Decision tree analysis for complex decision-making across all domains.

📊 What It Does

Helps you make structured decisions using decision tree analysis with expected value (EV) calculations. Works for any situation where you need to evaluate multiple options with uncertain outcomes.

✨ Features

  • Universal application: business, investing, personal decisions, operations, career choices
  • Expected value calculation: quantify risk/reward scenarios
  • Visual tree structure: see all options and outcomes clearly
  • Python calculator: automate EV calculations (interactive + JSON)
  • Examples across domains: trading, business strategy, personal life, operations

🎯 Use Cases

Trading & Investing
  • Position sizing (how much capital to allocate)
  • Entry timing (buy now or wait)
  • Exit strategy (take profit or hold)
Business Strategy
  • Product launch decisions
  • Hiring choices
  • Capacity planning
  • Vendor selection
Personal Decisions
  • Career changes
  • Real estate purchases
  • Major life decisions
Operations
  • Outsourcing vs in-house
  • Expansion timing
  • Resource allocation

🚀 How It Works

  1. Define options — all possible actions
  2. Define outcomes — what can happen after each action
  3. Estimate probabilities — how likely is each outcome (0-100%)
  4. Estimate values — utility/reward for each outcome (money, points, utility units)
  5. Calculate EV — expected value = Σ (probability × value)
  6. Choose — option with highest EV (with qualitative context)

📝 Example

Decision: Launch new product?

Options:

  • Launch (40% success → +$500K, 60% failure → -$200K)
  • Don't launch (100% → $0)

Calculation:

Launch EV = (0.4 × $500K) + (0.6 × -$200K) = $80K
Don't launch EV = $0

✅ Recommendation: Launch (EV: $80K)

🛠️ Python Calculator

The skill includes a Python script for automated EV calculations:

Interactive mode:
python3 scripts/decision_tree.py -...

来源内容

SKILL.md
# Decision Trees — Structured Decision-Making

Decision tree analysis: a visual tool for making decisions with probabilities and expected value.

## When to Use

✅ **Good for:**
- Business decisions (investments, hiring, product launches)
- Personal choices (career, relocation, purchases)
- Trading & investing (position sizing, entry/exit)
- Operational decisions (expansion, outsourcing)
- Any situation with measurable consequences

❌ **Not suitable for:**
- Decisions with true uncertainty (black swans)
- Fast tactical choices
- Purely emotional/ethical questions

## Method

**Decision tree** = tree-like structure where:
- **Decision nodes** (squares) — your actions
- **Chance nodes** (circles) — random events
- **End nodes** (triangles) — final outcomes

**Process:**
1. **Define options** — all possible actions
2. **Define outcomes** — what can happen after each action
3. **Estimate probabilities** — how likely is each outcome (0-100%)
4. **Estimate values** — utility/reward for each outcome (money, points, utility units)
5. **Calculate EV** — expected value = Σ (probability × value)
6. **Choose** — option with highest EV

## Formula

```
EV = Σ (probability_i × value_i)
```

**Example:**
- Outcome A: 70% probability, +$100 → 0.7 × 100 = $70
- Outcome B: 30% probability, -$50 → 0.3 × (-50) = -$15
- **EV = $70 + (-$15) = $55**

## Classic Example (from Wikipedia)

**Decision:** Go to party or stay home?

### Estimates:
- Party: +9 utility (fun)
- Home: +3 utility (comfort)
- Carrying jacket unnecessarily: -2 utility
- Being cold: -10 utility
- Probability cold: 70%
- Probability warm: 30%

### Tree:

```
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 (al...
README
# Decision Trees Skill

Decision tree analysis for complex decision-making across all domains.

## 📊 What It Does

Helps you make structured decisions using decision tree analysis with expected value (EV) calculations. Works for any situation where you need to evaluate multiple options with uncertain outcomes.

## ✨ Features

- **Universal application**: business, investing, personal decisions, operations, career choices
- **Expected value calculation**: quantify risk/reward scenarios
- **Visual tree structure**: see all options and outcomes clearly
- **Python calculator**: automate EV calculations (interactive + JSON)
- **Examples across domains**: trading, business strategy, personal life, operations

## 🎯 Use Cases

### Trading & Investing
- Position sizing (how much capital to allocate)
- Entry timing (buy now or wait)
- Exit strategy (take profit or hold)

### Business Strategy
- Product launch decisions
- Hiring choices
- Capacity planning
- Vendor selection

### Personal Decisions
- Career changes
- Real estate purchases
- Major life decisions

### Operations
- Outsourcing vs in-house
- Expansion timing
- Resource allocation

## 🚀 How It Works

1. **Define options** — all possible actions
2. **Define outcomes** — what can happen after each action
3. **Estimate probabilities** — how likely is each outcome (0-100%)
4. **Estimate values** — utility/reward for each outcome (money, points, utility units)
5. **Calculate EV** — expected value = Σ (probability × value)
6. **Choose** — option with highest EV (with qualitative context)

## 📝 Example

**Decision:** Launch new product?

**Options:**
- Launch (40% success → +$500K, 60% failure → -$200K)
- Don't launch (100% → $0)

**Calculation:**
```
Launch EV = (0.4 × $500K) + (0.6 × -$200K) = $80K
Don't launch EV = $0

✅ Recommendation: Launch (EV: $80K)
```

## 🛠️ Python Calculator

The skill includes a Python script for automated EV calculations:

### Interactive mode:
```bash
python3 scripts/decision_tree.py -...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.