Skip to content
SkillScript-led2,584 tokens in use

Futures Position Sizer

Converts a direction, entry, stop and account risk budget into a futures contract count with a verified 23-market contract spec table, fully offline.

7,427 stars on the repository MIT Licensetradermonty/claude-trading-skills · skills/futures-position-sizer

Skill label

measured from its files

What installing Futures Position Sizer costs

114tokens idle
2,584tokens in use
9,338tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/futures_position_sizer.py, scripts/futures_sizing.py.

Touches

shelldetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure22/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources12/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 39
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    scripts/futures_position_sizer.py, line 233

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community68
  • Maturity36
  • Momentum40

Futures Position Sizer calculates how many futures contracts fit a risk budget, given a direction, an entry price and a stop-loss. It uses a table of 23 markets with multiplier, tick size and tick value, so a move of one tick is priced correctly for each contract.

It runs as a Python script with the standard library only, needs no API key and makes no network calls. It can also take a contrarian-setup-gate report as input. It performs arithmetic on the numbers you supply and does not recommend trades.

What You Get

  • A contract count, or a NO_TRADE result with a stated reason
  • Risk per contract, total risk and risk as a percentage of the account
  • A JSON report file and an optional text summary
  • A listing of the verified contract spec table with the —list-specs flag
  • Warnings for risk above 2 percent and for prices off the tick grid

Common Use Cases

  • Sizing an ES or NQ trade from a known entry and stop
  • Handing off a READY_FOR_PLAN result from the contrarian setup gate for sizing
  • Checking the multiplier and tick value of a contract before planning
  • Finding out that the account cannot afford one contract at the chosen risk and stop distance

What Makes It Unique

The skill is separate from the equity position sizer because futures multipliers differ so widely. It uses exact rational arithmetic and always rounds the contract count down, so total risk never exceeds the budget. Bond futures prices that fall off the 32nds tick grid are rejected, which catches the common mistake of typing 110.16 for 110’16. Margin is never estimated.

Under The Hood

Claude runs a Python script from the skill folder through the shell. The script uses only the standard library, reads the contract spec table built into its own code and, in gate mode, reads a local JSON report. It makes no network calls and needs no credentials. It writes a JSON result file to the output folder you give it and prints a text summary.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers