Borrowing it
Nothing to install: this file belongs to heurist-network/heurist-finance. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/heurist-network/heurist-finance/main/.claude/skills/position-sizing/SKILL.mdgit clone --depth 1 https://github.com/heurist-network/heurist-financeWrote 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.
[](https://agentmods.dev/skills/heurist-network/heurist-finance/position-sizing)<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/position-sizing"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/position-sizing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/position-sizing"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/position-sizing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.01343 |
| Opus 5.5 | $0.00032 | $0.00537 |
| Sonnet 5.5 | $0.00016 | $0.00269 |
| Haiku 4.5 | $0.00008 | $0.00134 |
Grade A, and why
position-sizing 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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Position Sizing
Shared plumbing and output contract: ../_shared/analyst-core.md. Sizing is the one decision that operates on every trade, and the one public skills reduce to "risk 2%." The truths that matter: sizing errors compound geometrically (oversizing a positive-edge strategy can produce ruin), and every sizing formula's inputs are estimates — so the meta-rule is to size for the uncertainty in the estimate, not the estimate.
The three frameworks (use ≥2, take the smaller answer)
1. Fractional Kelly. Kelly fraction f* = p − q/b (p win prob, q=1−p, b win/loss ratio) maximizes long-run growth if the inputs are exact. They never are — and Kelly is brutally asymmetric to input error: betting 2× true Kelly produces zero long-run growth with wild swings. Practitioner consensus (Thorp; MacLean/Ziemba): ¼ to ½ Kelly, which keeps ~75%+ of the growth at ~25% of the variance. Workflow: estimate p and b from the scenario table (judgmental — label it), compute f*, quote ¼–½ of it, and show the sensitivity ("if your 60% win estimate is really 50%, Kelly goes negative — that's how little room this edge has"). A 3-scenario table collapses to binary Kelly inputs by folding: p = combined probability of the profitable scenarios, b = probability-weighted average gain of those ÷ probability-weighted average loss of the rest — label the collapse.
2. Volatility targeting. Size ∝ target_vol / realized_vol of the position (compute 63-day realized from prices SYM --out FILE; cap the multiplier at 1). Portfolio target for an active retail book: ~10–15% annualized. This is the fix that roughly doubled momentum's Sharpe in the academic record (Barroso & Santa-Clara; Moreira & Muir generalize it) — its real function is forcing smaller size in exactly the high-vol conditions where conviction feels highest. A 60-vol name gets a third of a 20-vol name's dollars at equal conviction, no exceptions by vibes.
3. Stop-based risk budgeting (the field-practical one): position = (account × risk-per-trade) ÷ (entry − invalidation). Risk 0.5–1.5% of account per idea for an active book — but the number that actually governs is portfolio heat: the sum of open risk across positions, ≤ ~5–6%. Heat is what the "2% rule" misses: six uncorrelated 1% risks are 6% heat; six correlated 1% risks are one 6% bet (see below). The invalidation price comes from the thesis (technical-evidence for placement discipline), never from the desired position size — sizing to a stop you moved to afford the size is the tail wagging the dog.
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.
- 13d ago First seen · 35 lines · 81 tokens per session scan A 28e3d95b063a
position-sizing is a skill published in the GitHub repository heurist-network/heurist-finance (11 stars, last pushed 14d ago), licensed MIT. It adds 81 tokens to every session and 1,343 once invoked, about $0.0003 per session on Opus 5.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-10-24.
position-sizing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| position-sizingheurist-network/heurist-finance | Skill | 11 | 14d ago | MIT | A | 81 | Claude Code |
| sector-rotationHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 39 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 2d ago | MIT | A | 110 | Claude Code |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 3.7k | 2d ago | MIT | A | 28 | Claude Code, Codex |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.5k | yesterday | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| multi-expert-analyzerdigoal/blog | Skill | 8.6k | 2d ago | GPL-2.0 | A | 292 | Codex |