trader-budget

trader-budget is a skill for Claude Code from millw14/merrymen. It costs 213 tokens per session (2,791 once invoked), scanned A, original, MIT.

A trade-sizing tool that turns an entry, stop and target into a dollar-sized stock-token order. It applies your loss, position, cash and agent limits, then writes a proposal rather than placing a trade.

In plain words
What is it for?
Use it to calculate how much USDG to buy for a planned day trade and save the resulting order for risk checks.
Why use it?
It removes the manual calculation needed to keep a trade within several spending and loss rules. It also makes clear that limiting a loss does not make a trade profitable.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the merrymen-trader plugin — 11 skills shipped together

Good fit Use it to calculate how much USDG to buy for a planned day trade and save the resulting order for risk checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/millw14/merrymen/trader-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add millw14/merrymen --skill trader-budget
Clone the repo
git clone --depth 1 https://github.com/millw14/merrymen

Made for: Claude Code.

Or install merrymen-trader, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trader-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/millw14/merrymen/trader-budget/github.svg)](https://agentmods.dev/skills/millw14/merrymen/trader-budget)
Your own site
<a href="https://agentmods.dev/skills/millw14/merrymen/trader-budget"><img src="https://agentmods.dev/badge/skills/millw14/merrymen/trader-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trader-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/millw14/merrymen/trader-budget"><img src="https://agentmods.dev/badge/skills/millw14/merrymen/trader-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 213 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00213 $0.02791
Opus 5.5 $0.00085 $0.01116
Sonnet 5.5 $0.00043 $0.00558
Haiku 4.5 $0.00021 $0.00279

Measured yesterday against content hash 9705a2165afe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trader-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (size.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/merrymen-trader/skills/trader-budget/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

trader-budget

The Budget Manager turns a plan ("buy TSLA at 364.18, stop 358.32") into an exact order ("buy 23.75 USDG of the TSLA stock token"), inside rules the user sets once. The stop decides the size: the further away the stop, the smaller the amount. Merrymen buys a dollar amount, so the size is in cents, not whole shares, and the agent's own signed limits are limits here too. It writes a proposal only. trader-risk checks it and trader-broker asks the user yes or no. Day trading loses most people money. Sizing to a max loss keeps each loss small; it does not make a trade win.

${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).

python3 "${CLAUDE_SKILL_DIR}/size.py"                        # trader/plan.json + trader/config.json
python3 "${CLAUDE_SKILL_DIR}/size.py" --write                # write trader/orders.json
python3 "${CLAUDE_SKILL_DIR}/size.py" --json                 # the sizing as JSON

--now "2026-10-19 10:15" pins the clock (New York time). A plan for another day is refused: make a new one with trader-exit.

What it reads and writes

file what
trader/config.json the rules (start from config.example.json in this folder)
trader/plan.json the trade: entry, stop, target, setup, flat-by time (trader-exit writes it)
trader/merrymen/tokens.json Merrymen's stock tokens: the address for the symbol (trader-broker, step 1)
trader/merrymen/agent.json the agent's signed limits and what is left today (trader-broker, step 1)
trader/prices.json optional: a fresh price above the plan's entry means a bigger risk (trader-alerts writes it)
trader/portfolio.json optional: its cash caps the size (trader-broker keeps it)
trader/orders.json the one proposed order it writes with --write

Step 1: set the rules once

If trader/config.json does not exist, copy config.example.json into trader/config.json and ask the user for each value in plain words:

Read the full file on GitHub · 185 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 185 lines · 213 tokens per session scan A 9705a2165afe

Subscribe to this mod's changes

trader-budget is a skill published in the GitHub repository millw14/merrymen (55 stars, last pushed yesterday), licensed MIT. It adds 213 tokens to every session and 2,791 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.

Related

trader-budget compared with skills from other repositories

trader-budget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trader-budgetmillw14/merrymenSkill55yesterdayMITA213Claude Code
sec_edgar0xmariowu/AutosearchSkill566d agoMITA35Claude Code
xueqiu0xmariowu/AutosearchSkill566d agoMITA30Claude Code
award-travelAwardTravelFinder/mcpSkill1620d agoMITA164Claude Code
find-my-bookings-and-balancesAwardTravelFinder/mcpSkill1620d agoMITA97Claude Code
setupAwardTravelFinder/mcpSkill1620d agoMITA77Claude Code
cancel-or-change-awardAwardTravelFinder/mcpSkill1620d agoMITA69Claude Code