Skip to content
Skill

Trader risk

Blocks trade orders that break your loss, size or timing limits before they are proposed

Trader risk 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 risk

Trader-risk sits between a proposed order and Merrymen. It runs a Python script (check.py) that reads the order file, the limits config, portfolio and price snapshots, and Merrymen agent status and quote results, then prints PASS or BLOCK for each order with the reason. Orders are checked in file order as if earlier passing orders had filled, so a batch that breaks a limit only together is caught.

For day trades the checks cover a required stop, maximum loss at the stop measured from the higher of the plan entry and a fresh price, minimum reward-to-risk, daily loss and trade-count limits, and an entry window in New York time. Basic checks cover blocked tickers, order size, position cap, cash buffer, short sales, options, crypto, duplicates and daily order limits. Exits such as sells that reduce a holding are never blocked by day limits.

It expects a local trader folder with JSON files and Python 3. Merrymen-specific checks read the agent snapshot, the stock-token registry and a recent quote_trade result, and warn when a token price drifts from the stock price. Verdicts are recorded so the broker skill only shows orders that passed.

When your agent uses it

Risk Manager. Checks every trade against your limits and your Merrymen agent's signed limits and stops anything over them, before it can become a Merrymen proposal. For a day trade: a stop is required, the loss at the stop must fit your max loss per trade (measured from the higher of the plan's entry and a fresh price), reward:risk must meet your minimum, the day's total risk must fit your daily loss limit, no more than your trades per day, and no new entries outside your entry window or when the market is closed. It also keeps the basics: blocked tickers, order size, position cap, cash buffer, margin, short sales, options and crypto, malformed orders, duplicates and a daily order limit. For Merrymen: the right agent, a fresh limits snapshot, paper config only with a paper agent, a permission that outlives the flat-by time, the signed per-trade limit and 24-hour budget, the registry token address, and a fresh quote whose price tracks the stock. Getting out is never blocked by a day limit. Prints PASS or BLOCK

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (57 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@merrymen

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trader-risk &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-risk" ~/.claude/skills/trader-risk &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/trader-risk inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/trader-risk 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-risk &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-risk" ~/.agents/skills/trader-risk &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/trader-risk inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/trader-risk 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-risk &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-risk" ~/.cursor/skills/trader-risk &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/trader-risk inside it instead.

Cursor docs on skills

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

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

Gemini CLI docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trader-risk &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-risk" ~/.copilot/skills/trader-risk &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/trader-risk inside it instead.

VS Code docs on skills

Get the folder:

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

Then copy merrymen/plugins/merrymen-trader/skills/trader-risk into your agent's skills folder as trader-risk. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Stop and loss check
Confirms each entry has a stop on the right side and that the loss at the stop fits the per-trade maximum.
Daily risk limits
Totals the maximum losses and trade counts of today's entries against daily limits.
Entry window control
Blocks new entries outside configured New York trading hours and on closed market days.
Basic order safeguards
Checks blocked tickers, order size, position cap, cash buffer, margin, shorts and malformed orders.
Merrymen agent checks
Verifies agent status, paper mode, permission expiry, signed limits, token address and quote freshness.
Verdict recording
Saves a fingerprint of each verdict so an edited order must pass again before use.

Good for

  • Check whether a planned day trade fits my maximum loss per trade
  • See how much of today's daily loss limit I have already used
  • Confirm an order is not a duplicate of one placed earlier today
  • Verify a Merrymen order uses the right agent and a fresh quote before proposing it
  • Find out why a proposed order was blocked and what to change

Trader risk FAQ

What does Trader risk need to run?

It runs a Python script (check.py) and reads JSON files in a local trader folder: orders, config, portfolio, prices and Merrymen snapshots.

Does Trader risk place trades?

No. It only checks orders and prints PASS or BLOCK. The skill states that trading happens only through trader-broker and only after explicit approvals.

Are sell orders always allowed?

Exits that reduce a holding are checked for format, asset and short sales only, so day-limit rules do not block getting out. Merrymen's own limits can still block some sells.

Is Merrymen support always required?

No. Merrymen checks apply only when the order uses the Merrymen broker setting.

How do I install Trader risk in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/trader-risk to use it in all your projects, or to .claude/skills/trader-risk 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 risk 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 risk?

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 risk?

The closest alternatives to Trader risk are Trader broker, Trader budget, Trader exit, Status and Week.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Merrymen-Labs/merrymen

  1. Read-only health checks and change alerts for a shared Merrymen trading agent

    • Open source
    • 52 GitHub stars
    • Developer tools
  2. Connects hosted Merrymen trading agents to an MCP host and checks setup status

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

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

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

    • Open source
    • 52 GitHub stars
    • Finance and payments
  6. Sizes a day-trade stock token order to your max loss and agent limits

    • Open source
    • 52 GitHub stars
    • Finance and payments