risk-manager

risk-manager is a skill for Claude Code, Codex from nirholas/three.ws. It costs 90 tokens per session (1,190 once invoked), scanned A, original, Apache-2.0.

A pre-trade risk check that calculates position size, stop-loss exposure, concentration and portfolio drawdown before a trade. A stop-loss is an instruction or price level intended to limit a loss.

In plain words
What is it for?
It helps assess buys, sells, swaps and position changes, including the amount to trade, the loss at the stop and the portfolio exposure afterward.
Why use it?
Excitement or urgency can lead to trades that risk too much of a portfolio. It makes the proposed loss and exposure visible and can reject or reduce trades that break the stated limits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps assess buys, sells, swaps and position changes, including the amount to trade, the loss at the stop and the portfolio exposure afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/risk-manager
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 nirholas/three.ws --skill risk-manager
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/risk-manager/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/risk-manager)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/risk-manager"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/risk-manager/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 risk-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/risk-manager"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/risk-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,190 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.00090 $0.01190
Opus 5.5 $0.00036 $0.00476
Sonnet 5.5 $0.00018 $0.00238
Haiku 4.5 $0.00009 $0.00119

Measured 2mo ago against content hash 6582ccf73837, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

risk-manager 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/position-size.mjs), 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.

community-skills/skills/risk-manager/SKILL.md · 72 lines

How it starts

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

Risk manager

You are the risk desk. Before any trade is discussed, executed or recommended, you run the numbers below and show them. You never skip the check because the user is excited, in a hurry, or says the trade is small.

Mandatory output format

Every reply to a trade request (buy, sell, swap, ape, add to or trim a position) starts with this block, before anything else, in exactly this shape:

RISK CHECK
- Position: <size> (<percent of portfolio>)
- Stop: <price or percent> (<distance below entry>)
- Max loss at stop: <amount> (<percent of portfolio>)
- Portfolio exposure after trade: <percent in this token>
- Verdict: GO | REDUCE | NO-GO, <one-line reason>

Then, and only then, the rest of your answer. When a number is unknown, write unknown in that line and ask for it right after the block. With a verdict of REDUCE, give the reduced size. With NO-GO, say what would have to change for the trade to pass.

The rules

  1. Risk per trade: 1% of portfolio. The size is whatever loses 1% of the portfolio if the stop is hit: size = (portfolio x 0.01) / stop distance. A trade that risks more than 2% is NO-GO whatever the conviction.
  2. Every position needs a stop. No stop means no size can be computed, so the verdict is at best REDUCE to a token amount you would accept losing entirely, capped at 1% of the portfolio. For new launches and anything under $50k liquidity, assume the stop can gap: treat the whole position as the risk.
  3. Concentration: at most 10% of the portfolio in one token, 5% in any token launched less than 7 days ago. Existing holdings count toward the cap.
  4. Daily loss limit: 3% of the portfolio. After realized losses reach 3% in a day, every new entry is NO-GO until the next day.
  5. Drawdown brake. At 10% below the portfolio's peak, halve the risk per trade. At 20% below, no new positions until the owner explicitly resets.
  6. Liquidity. Size must stay under 2% of the pool's liquidity, or the exit will cost more than the stop.
  7. Correlation. Several positions in the same narrative or sector count as one position for the concentration cap.

Read the full file on GitHub · 72 lines

Files

What ships with it

2 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. 2mo ago First seen · 72 lines · 90 tokens per session scan A 6582ccf73837

Subscribe to this mod's changes

risk-manager is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 90 tokens to every session and 1,190 once invoked, about $0.0004 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-09-23.

Related

risk-manager compared with skills from other repositories

risk-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
risk-managernirholas/three.wsSkill287yesterdayApache-2.0A90Claude Code, Codex
pay-x402-servicenirholas/x402-payments-mcpSkill919d agoApache-2.0A51Claude Code
x402-proxycascade-protocol/x402-proxySkill104d agoApache-2.0A98Claude Code, Codex
birdeyesendaifun/skillsSkill1284mo agoApache-2.0A64Claude Code, Codex
granite-pay-per-callnirholas/ibm-x402-mcpSkill919d agoApache-2.0A49Claude Code
gblin-agent-treasurygblinproject/gblin-treasury-risk-regimeSkill111d agoMITA133Claude Code
pump-fee-systemnirholas/pump-fun-sdkSkill1523d agononeA39Claude Code, Codex