
Trader budget
Sizes a day-trade stock token order to your max loss and agent limits
Trader budget is an open-source agent skill for finance and payments. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 52
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Trader budget
This skill takes a trade plan with entry, stop and target and works out the largest USDG amount of a Merrymen stock token that stays inside every limit at once. The limits include your max loss per trade, a position cap, a maximum order, a cash buffer, and the spending limits signed into the Merrymen agent, such as its per-trade limit and 24-hour budget. It reports which limit set the size and writes a single proposed order to a file. If the stop is too far away for the allowed loss, it refuses instead of shrinking the order.
Setup is a one-time config file where the user sets the agent id, budget, cash buffer, loss cap, order bounds and daily risk limits. A Python script runs the sizing, with options to print the result as JSON or write the order. Optional price and portfolio files can tighten the size when the price has risen or cash is low.
It expects a plan file from the companion trader-exit skill, a Merrymen agent and token registry from trader-broker, and Python for the scripts. Nothing is sent to Merrymen from this skill; the order passes through trader-risk and trader-broker before any approval.
When your agent uses it
Budget Manager. Sizes every position to your budget, your max loss per trade and your Merrymen agent's own signed limits. Reads the trade plan from trader-exit (entry, stop, target), finds the USDG amount that fits inside every limit (max loss per trade, position cap, max order, cash after your buffer, the agent's per-trade limit, the owner-order cap and half of what is left of its 24-hour budget), says which limit decided it, and writes ONE Merrymen order (a USDG amount of one stock token, by address) to trader/orders.json. A stop too far away for your max loss is a plain refusal, not a smaller order. Nothing is sent. Use when the user says "how much should I buy", "size this trade", "I have $200 on my Merryman", "I only want to risk $2 a trade", "set my rules", "keep 10% in cash", or after /trader-exit writes a plan.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 4 files (61 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the merrymen-trader plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Merrymen-Labs/merrymen
/plugin install merrymen-trader@merrymenOr copy only this skill to ~/.claude/skills/trader-budget:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trader-budget &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-budget" ~/.claude/skills/trader-budget &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/trader-budget inside it instead.
Copy the skill folder to ~/.agents/skills/trader-budget to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trader-budget &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-budget" ~/.agents/skills/trader-budget &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/trader-budget inside it instead.
Copy the skill folder to ~/.cursor/skills/trader-budget to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trader-budget &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-budget" ~/.cursor/skills/trader-budget &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/trader-budget inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Merrymen-Labs/merrymen.git --path plugins/merrymen-trader/skills/trader-budgetOr copy the folder to ~/.gemini/skills/trader-budget yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/trader-budget:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trader-budget &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-budget" ~/.copilot/skills/trader-budget &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/trader-budget inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.gitThen copy merrymen/plugins/merrymen-trader/skills/trader-budget into your agent's skills folder as trader-budget. Agents that support SKILL.md read one folder per skill.
What it does
- Limit-based position sizing
- Calculates the USDG amount as the smallest result across loss, position, order, cash and agent limits.
- Stop-distance loss control
- Sizes each trade so that a sale at the stop loses no more than the configured maximum.
- Binding limit explanation
- Reports which single limit decided the order size so the user can see why it is that amount.
- One proposed order file
- Writes exactly one order proposal to a file for downstream review, without sending it.
- Configurable rules setup
- Guides the user through a one-time config for budget, cash buffer, daily loss and trade count caps.
- Refusal on bad plans
- Declines plans with an oversized stop, low reward-to-risk, a blocked ticker or an expired date.
Good for
- Work out how many USDG of a stock token to buy for a planned trade
- Size a trade so the loss at the stop stays under a set dollar amount
- Check whether a planned trade fits the agent's per-trade spending limit
- Keep a fixed share of the budget in cash while sizing new positions
- Write a single buy proposal for review after a trade plan is made
Trader budget FAQ
What does Trader budget need to run?
A trade plan from trader-exit, a config file with your rules, the Merrymen token registry and agent limits from trader-broker, and Python to run the sizing script.
Does Trader budget place the trade?
No. It only writes a proposed order. The order goes through trader-risk and trader-broker, and the user must approve it.
What happens if the stop is too far away?
The skill refuses and writes no order rather than making a smaller one.
Which AI clients does Trader budget work with?
The content ties it to Claude Code through a plugin marketplace and uses Claude's skill folder variable, so it is set up for Claude Code.
How do I install Trader budget in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/trader-budget to use it in all your projects, or to .claude/skills/trader-budget in one project. Or install the merrymen-trader plugin, which includes it: /plugin marketplace add Merrymen-Labs/merrymen, then /plugin install merrymen-trader@merrymen.
Does Trader budget run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Trader budget?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Trader budget?
The closest alternatives to Trader budget are Trader broker, Trader risk, Trader exit, Week and Trader timemachine.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Merrymen-Labs/merrymen

Read-only health checks and change alerts for a shared Merrymen trading agent
- Open source
- 52 GitHub stars
- Developer tools

Connects hosted Merrymen trading agents to an MCP host and checks setup status
- Open source
- 52 GitHub stars
- Finance and payments

Sets price, stop, target and market-open alerts that ring once for a trade
- Open source
- 52 GitHub stars
- Finance and payments

Summarizes a company's SEC-filed earnings numbers quarter by quarter against last year
- Open source
- 52 GitHub stars
- Finance and payments

Turns a vetted stock-token order into a Merrymen trade proposal you approve
- Open source
- 52 GitHub stars
- Finance and payments

Watches a stock's opening range and flags the bar that closes above it
- Open source
- 52 GitHub stars
- Finance and payments


