decision-tree

decision-tree is a skill for Claude Code, Codex from deciqAI/knowledge-skills. It costs 112 tokens per session (1,988 once invoked), scanned A, original, MIT.

A diagram and calculation method for decisions that happen in stages. It shows choices you control, uncertain outcomes, their probabilities, and the resulting gains or costs.

In plain words
What is it for?
Use it to compare investments, business strategies, or other choices where you decide, learn what happens, and may decide again. It is most useful when outcomes can be estimated and payoffs can be measured.
Why use it?
It makes hidden assumptions visible, so people can discuss the likelihood and value of each possible path instead of relying only on intuition.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/deciqai/knowledge-skills/decision-tree
Any agent
npx skills add deciqAI/knowledge-skills --skill decision-tree
Clone the repo
git clone --depth 1 https://github.com/deciqAI/knowledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for decision-tree

README.md
[![agentmods](https://agentmods.dev/badge/skills/deciqai/knowledge-skills/decision-tree.svg)](https://agentmods.dev/skills/deciqai/knowledge-skills/decision-tree)
Your own site
<a href="https://agentmods.dev/skills/deciqai/knowledge-skills/decision-tree"><img src="https://agentmods.dev/badge/skills/deciqai/knowledge-skills/decision-tree.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.01988
Opus 5 $0.00056 $0.00994
Sonnet 5 $0.00022 $0.00398
Haiku 4.5 $0.00011 $0.00199

Measured 6d ago against content hash 82debb014e3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

decision-tree scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

decision-tree/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Decision Tree

Overview

A decision tree maps a multi-stage decision: decision nodes (squares) for choices you control, chance nodes (circles) for outcomes you don't, probabilities on every branch, payoffs at the leaves — then rollback right-to-left to get expected value at the root. First systematized by John F. Magee (HBR, 1964); formalized by Howard Raiffa (1968). Its biggest value: converting "I feel we should expand" into "what probability do you assign to high demand?" — making every assumption explicit and contestable.

Composes with expected-value-and-kelly (EV scaffold + bet sizing), probabilistic-thinking (calibration per node), inversion (rollback = working outcomes backward), mece (branches must be MECE so probabilities sum to 1.0).

When to Use

  • Decision has sequential stages (decide → learn → decide again)
  • Outcomes uncertain; probabilities can be estimated (even roughly)
  • Payoffs quantifiable (NPV, revenue, cost, lives saved)
  • Multiple stakeholders need a shared visual model to align on assumptions
  • Sizing a big irreversible bet under AI uncertainty — build vs. buy vs. wait on AI capex, a fab investment, or committing while AI adoption / AI valuations are unproven

Not when: one-shot choice with no stages; probabilities unestimable; payoffs purely qualitative; branch set too large (use scenario planning instead).

Coaching Novices (Adaptive Front Door)

  • Engine mode: user has a concrete multi-stage decision → run The Process directly.
  • Coach mode: user is unfamiliar or has no concrete case → guide step by step.

In Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.

  1. One-line: a decision tree converts "I feel" into "what probability do you assign?" — making assumptions explicit so they can be argued about.
  2. Check fit. Sequential stages? Uncertain outcomes? Quantifiable payoffs? If yes to all three, a tree applies.
  3. Elicit their real case. What's the initial choice? What uncertain outcomes follow? What payoffs result?

[WAIT — do not advance until user responds]

  1. Run The Process one step at a time with their input — draw structure, assign probabilities, assign payoffs, roll back.

[WAIT — do not advance until user responds]

  1. Close by naming the insight: the threshold at which the recommendation flips, and whether to gather more data.

[WAIT — do not advance until user responds]

Read the full file on GitHub · 123 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 123 lines · 112 tokens per session scan A 82debb014e3e

Subscribe to this mod's changes

decision-tree is a skill published in the GitHub repository deciqAI/knowledge-skills (10 stars, last pushed 4d ago), licensed MIT. It adds 112 tokens to every session and 1,988 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

edge-tts

Text-to-speech conversion using uvx edge-tts for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS…

aahl/skills · 85 tokens

mcp-deepwiki

Skills for accessing and searching docs in DeepWiki/GitHub’s public code repositories can help users understand open-source project source codes, and users can also ask questions directly about the code docs.

aahl/skills · 44 tokens

tianqi

查询中国地区的天气预报,支持15天及逐小时预报、各种生活指数.

aahl/skills · 24 tokens

maishou

商品价格全网对比技能,获取商品在淘宝(Taobao)、天猫(TMall)、京东(JD.com)、拼多多(PinDuoDuo)、抖音(Douyin)、快手(KaiShou)的最优价格、优惠券,当用户想购物或者获取优惠信息时使用。Get the best price, coupons for goods on Chinese e-commerce platforms, compare product prices, and use when users want to shop or get discount information.

aahl/skills · 103 tokens

crypto-report

Get cryptocurrency market data. Get Binance AI analysis report. Get blockchain news updates.

aahl/skills · 19 tokens

compliance-check

Compliance pre-flight for a feature, campaign, or initiative — maps the data and activity involved, checks applicable regimes (privacy/GDPR-style, consumer protection, marketing rules, sector-specific), lists required approvals and notices, builds a gap list with remediation owners, and ends in a go/no-go…

alebgl77/claude-inc · 98 tokens