expected-value — Claude Code skill: purpose and installation
The expected-value skill weighs possible gains and losses by their probabilities to compare uncertain choices. Use it to assess a product bet, rank projects, or map a decision tree.
no license 142 installs ★ 203 updated 2026-09-01
npx skills add lyndonkl/claude --skill expected-value -a claude-codeWhat expected-value does
The skill guides an analysis from defining alternatives through listing outcomes, estimating probabilities and payoffs, and calculating expected values. It then helps interpret the result in light of risk preferences and factors such as learning or reputation, which may not translate neatly into money.
Reference materials include templates in resources/template.md, methods in resources/methodology.md, and an evaluation rubric at resources/evaluators/rubric_expected_value.json. Outcomes should be mutually exclusive and cover all possibilities, with probabilities adding up to 1.0. For rare, irreversible choices, a high expected value alone does not settle the decision; risk aversion matters too. The skill also covers decision trees, project portfolio allocation, and continuous outcomes using Monte Carlo.
What it helps with
- compare risky options by expected value
- estimate whether a product launch is worth pursuing
- allocate a budget across projects with different risk profiles
- map a sequence of choices as a decision tree
Example prompts for the agent
- Compare launching this feature with not launching it, using my probability and revenue estimates.
- Help allocate this budget across projects by expected return and risk.
- Build a decision tree for this plan and compare the options using outcome probabilities.
How to install expected-value
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill expected-value -a claude-code2Manually: put the files in place
~/.claude/skills/expected-value/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/expected-value/
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill expected-value -a codex2Manually: put the files in place
.agents/skills/expected-value/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill expected-value -a cursor2Manually: put the files in place
.cursor/skills/expected-value/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install lyndonkl/claude skills/expected-value2Manually: put the files in place
.github/skills/expected-value/SKILL.md1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill expected-value -a gemini-cli2Platform CLI
gemini skills install https://github.com/lyndonkl/claude --path skills/expected-valueManually: put the files in place
.devin/skills/expected-value/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill expected-value -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about expected-value
How do I install expected-value in Claude Code?
Run npx skills add lyndonkl/claude --skill expected-value -a claude-code. The skill file is located at ~/.claude/skills/expected-value/SKILL.md.
What does expected-value do?
It estimates the value of each alternative by weighting its possible gains and losses by their probabilities. It also prompts you to account for risk preferences and non-monetary factors.
How should I check the probabilities in an expected-value analysis?
The outcomes should not overlap and should cover every possibility. Their probabilities must add up to 1.0.