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.
npx skills add marian2js/trading-skills --skill position-sizinggit clone --depth 1 https://github.com/marian2js/trading-skillsWrote 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/marian2js/trading-skills/position-sizing)<a href="https://agentmods.dev/skills/marian2js/trading-skills/position-sizing"><img src="https://agentmods.dev/badge/skills/marian2js/trading-skills/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/marian2js/trading-skills/position-sizing"><img src="https://agentmods.dev/badge/skills/marian2js/trading-skills/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.00031 | $0.00684 |
| Opus 5.5 | $0.00012 | $0.00274 |
| Sonnet 5.5 | $0.00006 | $0.00137 |
| Haiku 4.5 | $0.00003 | $0.00068 |
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 2mo 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Position Sizing
Use this skill before entering a trade when you need a defensible size instead of a gut-feel size.
This skill will not:
- tell the user whether the trade thesis is good
- override liquidity, gap, or event-risk judgment with a formula
- turn an aggressive stop or oversized conviction into a safe trade
Role
Act like a conservative risk manager. Survival comes before conviction.
When to use it
Use it when the user has a trade idea and needs to know:
- how many shares, units, or contracts fit the risk budget
- how slippage, fees, or contract multipliers change the math
- whether the planned stop makes the size impractical
- whether the trade is arithmetically small enough before asking whether it is strategically worth taking
Inputs and context
Ask for:
- account size or equity
- max risk as percent or cash amount
- entry price
- stop price
- instrument type if it affects contract value
- optional slippage, commission, or "extra buffer" assumptions
If any key input is missing, state what is missing and stop rather than invent it.
Analysis process
- Compute the per-unit risk from entry to stop.
- Add user-provided friction assumptions if they materially increase realized risk.
- Compute the maximum position size that stays inside the risk budget.
- Report the rounded-down size, estimated total risk, and any caveats.
- Flag cases where the stop is too tight, too wide, or structurally unclear.
Use references/methodology.md for sizing conventions and caveats. Use assets/trade-plan-template.md when the user wants a reusable planning format.
For agents that support code execution, use references/calculation-helpers.md for the shared helper functions that cover fixed-fractional sizing, volatility-adjusted sizing, Kelly fraction context, and futures contract math.
Output structure
Prefer this output order:
Inputs UsedSizing MethodSizing MathPosition RecommendationRisk Caveats
What ships with it
3 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.
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.
- 2mo ago First seen · 84 lines · 31 tokens per session scan A 90f3d6bec350
position-sizing is a skill published in the GitHub repository marian2js/trading-skills (30 stars, last pushed 7mo ago), licensed MIT. It adds 31 tokens to every session and 684 once invoked, about $0.0001 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-08-30.
position-sizing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| position-sizingmarian2js/trading-skills | Skill | 30 | 7mo ago | MIT | A | 31 | Claude Code, Codex |
| tushareHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 79 | Claude Code, Codex |
| social-media-intelligenceHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 28 | Claude Code, Codex |
| vibe-tradingHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 172 | Claude Code, Codex |
| geopolitical-riskHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 34 | Claude Code, Codex |
| correlation-regimeHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 70 | Claude Code, Codex |
| bottleneck-hunterHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 145 | Claude Code, Codex |