# Trader budget

> Trader budget is an open-source agent skill for finance and payments. Sizes a day-trade stock token order to your max loss and agent limits. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Merrymen-Labs/merrymen/tree/main/plugins/merrymen-trader/skills/trader-budget
- **Repository:** https://github.com/merrymen-labs/merrymen
- **GitHub stars:** 52
- **License:** MIT
- **Skill name:** trader-budget
- **Collection:** https://github.com/Merrymen-Labs/merrymen
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-budget)
- [No network calls found in its scripts](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-budget)
- [License: MIT](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-budget)

## Features

- **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

## Install

### Claude Code

This skill ships in the `merrymen-trader` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Merrymen-Labs/merrymen
/plugin install merrymen-trader@merrymen
```

Or copy only this skill to `~/.claude/skills/trader-budget`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/trader-budget` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/trader-budget` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Merrymen-Labs/merrymen.git --path plugins/merrymen-trader/skills/trader-budget
```

Or copy the folder to `~/.gemini/skills/trader-budget` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/trader-budget`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git
```

Then 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.

## 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.

## Alternatives

- [Trader broker](https://ai-powered.com/skills/trader-broker): Trader broker is an open-source agent skill for finance and payments.
- [Trader risk](https://ai-powered.com/skills/trader-risk): Trader risk is an open-source agent skill for finance and payments.
- [Trader exit](https://ai-powered.com/skills/trader-exit): Trader exit is an open-source agent skill for finance and payments.
- [Week](https://ai-powered.com/skills/week): Week is an open-source agent skill for finance and payments.
- [Trader timemachine](https://ai-powered.com/skills/trader-timemachine): Trader timemachine is an open-source agent skill for finance and payments.
- [Portfolio](https://ai-powered.com/skills/portfolio-merrymen-labs): Portfolio is an open-source agent skill for finance and payments.
- [Merrymen setup](https://ai-powered.com/skills/merrymen-setup): Merrymen setup is an open-source agent skill for finance and payments.
- [Trader alerts](https://ai-powered.com/skills/trader-alerts): Trader alerts is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/trader-budget
