About position-sizing
position-sizing is a trading skill for calculating position size from an account risk budget, entry, and stop. It emphasizes conservative arithmetic, explicit assumptions, and risk caveats rather than judging the trade thesis.
Key features
- 01Risk-budget-based position sizing
- 02Per-unit risk calculation
- 03Slippage and fee adjustments
- 04Rounded size and risk reporting
- 05Stop and exposure caveats
Use cases
- 01Size a trade from account equity and a maximum loss
- 02Adjust sizing for slippage, fees, or contract multipliers
- 03Check whether a planned stop makes a position impractical
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ marian2js/ trading-skills --skill position-sizingAfter installing, type/position-sizingin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
assets/trade-plan-template.mdreferences/calculation-helpers.mdmethodology.mdDetails
From the project READMEPosition 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
Always include:
- position size
- total dollar risk
- percent of account at risk
- assumptions used
- caveats about slippage, gaps, leverage, or contract multipliers
Do not imply the size is "safe" just because it fits the arithmetic.
Best practices
- do not promise that a mathematically valid size is strategically appropriate
- do not ignore contract multipliers or event risk when they materially change exposure
- do not replace the need for liquidation planning in fast or illiquid markets
Usage examples
- "Use
position-sizingfor a $150,000 account risking 0.4% on a long entry at 84.20 with a stop at 81.90 and 0.10 slippage." - "Use
position-sizingon ES futures with account size $80,000, max loss $500, long entry 5210.25, and stop 5199.75."