Position Sizing logo

Position Sizing

Community
marian2js
position-sizing

Use when the user needs a conservative position size from account equity, risk budget, entry, stop, and trading friction before entering a trade.

Overview

Publishermarian2js
Repositorytrading-skills
Skill nameposition-sizing
Stars
31
Forks
9
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by marian2js on GitHub. Read the source before you install it.

Installation

Install the Position Sizing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/marian2js/trading-skills/tree/main/skills/trade-construction/position-sizing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marian2js/trading-skills.git /tmp/trading-skills
mkdir -p .claude/skills
cp -r /tmp/trading-skills/skills/trade-construction/position-sizing .claude/skills/position-sizing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Position Sizing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Position Sizing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Position Sizing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

  1. Compute the per-unit risk from entry to stop.
  2. Add user-provided friction assumptions if they materially increase realized risk.
  3. Compute the maximum position size that stays inside the risk budget.
  4. Report the rounded-down size, estimated total risk, and any caveats.
  5. 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:

  1. Inputs Used
  2. Sizing Method
  3. Sizing Math
  4. Position Recommendation
  5. Risk 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-sizing for 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-sizing on ES futures with account size $80,000, max loss $500, long entry 5210.25, and stop 5199.75."

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Position Sizing AI skill do?

Use when the user needs a conservative position size from account equity, risk budget, entry, stop, and trading friction before entering a trade.

Why use Position Sizing on TypingMind?

Because you install it once and use it with any model. Position Sizing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Position Sizing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/marian2js/trading-skills/tree/main/skills/trade-construction/position-sizing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Position Sizing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Position Sizing?

As many as you like. As long as a model supports skills, you can use Position Sizing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Position Sizing AI skill free?

Yes. It is published on GitHub by marian2js under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇