agent-trading-arena: Skill for Claude Code

.claude/skills/risk-management/SKILL.md

risk-management is a skill for Claude Code from 0xhubed/agent-trading-arena. It costs 21 tokens per session (2,116 once invoked), scanned A, original, MIT.

A set of trading risk rules learned from past competition outcomes. Risk management means controlling how much money is exposed and where a trade should be stopped.

In plain words
What is it for?
It helps size positions, set stop-losses, limit trading frequency, assess market alignment, and validate conditions before or during trades.
Why use it?
It helps turn historical results into guardrails for position size, stop-loss decisions, trade frequency, and market conditions.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is 0xhubed/agent-trading-arena's own configuration. It tells Claude Code how to work on agent-trading-arena itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-trading-arena configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 0xhubed/agent-trading-arena. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/0xhubed/agent-trading-arena/main/.claude/skills/risk-management/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/0xhubed/agent-trading-arena

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xhubed/agent-trading-arena/risk-management/github.svg)](https://agentmods.dev/skills/0xhubed/agent-trading-arena/risk-management)
Your own site
<a href="https://agentmods.dev/skills/0xhubed/agent-trading-arena/risk-management"><img src="https://agentmods.dev/badge/skills/0xhubed/agent-trading-arena/risk-management/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-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xhubed/agent-trading-arena/risk-management"><img src="https://agentmods.dev/badge/skills/0xhubed/agent-trading-arena/risk-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,116 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. Third-party audits
  • Socket pass 21 Apr 2026
  • Snyk pass 21 Apr 2026
How audits are shown
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.00021 $0.02116
Opus 5 $0.00010 $0.01058
Sonnet 5 $0.00004 $0.00423
Haiku 4.5 $0.00002 $0.00212

Measured 11d ago against content hash 08bd950ee2a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

risk-management 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 11d ago.

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.

.claude/skills/risk-management/SKILL.md · 125 lines

How it starts

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

Risk Management

Last updated: 2026-03-09 20:08 UTC Active patterns: 54 Total samples: 8500 Confidence threshold: 60%

Core Principles

These rules are derived from analyzing profitable vs losing trades:

Rule Success Rate Samples Confidence Seen
Trade frequency inversely correlates wit... 95% 473 50% 1x
When ALL 5 tracked assets are positive o... 95% 58 45% 1x
Position sizing at 2% equity risk with 2... 92% 183 90% 1x
Position sizing at 2% equity risk with 2... 92% 200 95% 1x
Cap trade frequency at 10 trades/24h max... 90% 84 45% 1x
Closing LONG positions quickly to pivot ... 88% 50 95% 1x
Trade frequency must be inversely propor... 88% 109 45% 1x
Multi-timeframe bearish alignment (15m, ... 88% 383 99% 2x
In uniformly bearish markets, 'low-sever... 85% 49 85% 1x
Validation checks passing ('validation p... 85% 200 95% 1x
High trade frequency (189-200 trades/24h... 85% 389 95% 1x
When ALL 5 tracked assets are positive o... 85% 113 95% 1x
Position sizing at 2% equity risk with 2... 80% 49 85% 1x
Self-reflective position management (jou... 80% 48 80% 1x
Forum/social sentiment filtering provide... 80% 24 95% 1x
Closing SHORT positions 'to lock in gain... 78% 48 85% 1x
Low leverage (2x) on SHORT positions wit... 75% 48 85% 1x
Position sizing at 2% equity risk with 2... 75% 172 90% 1x
Low trade frequency (<40 trades/24h) pre... 75% 48 95% 1x
In uniformly bearish markets, SHORT-bias... 75% 3 41% 1x
Avoid momentum-following strategies in m... 75% 33 95% 1x
Self-reflective position management (rec... 75% 27 95% 1x
Contrarian strategies underperform in mi... 70% 16 82% 1x
Cap trade frequency at 15 trades/24h max... 70% 113 95% 1x
Cap trade frequency at 16 trades/24h max... 67% 86 65% 1x
In mixed/low-volatility markets (daily m... 67% 146 95% 1x
Self-reflective position management (jou... 65% 65 45% 1x
Multi-timeframe bearish alignment (15m, ... 50% 337 90% 1x
High trade frequency (165-172 trades/24h... 50% 337 90% 1x
High trade frequency (183 trades/24h) ca... 50% 366 90% 1x
In uniformly bearish markets with mild d... 50% 6 57% 1x
Validation checks passing ('all checks p... 41% 998 94% 2x
Closing positions due to 'conflicting ti... 35% 20 80% 1x
Trade frequency inversely correlates wit... 33% 86 65% 1x
Cutting small losses quickly (-$0.14 to ... 30% 131 90% 1x
Cutting small losses quickly (-$38 on SO... 30% 147 95% 1x
Contrarian LONG entries in bullish marke... 30% 6 62% 1x
Closing positions 'to reduce concentrati... 30% 708 99% 3x
Closing positions 'to reduce concentrati... 25% 165 90% 1x
Validation checks passing ('all checks p... 25% 501 95% 1x
High concentration warnings (127% of equ... 25% 166 95% 1x
Multi-timeframe alignment (15m, 1h, 4h) ... 15% 298 50% 1x
Low trade frequency (<20 trades/24h) in ... 15% 25 95% 1x
Position sizing at 2% equity risk with 2... 15% 166 95% 1x
2% equity risk with 2:1 reward ratio con... 15% 58 45% 1x
2% equity risk with 2:1 reward ratio FAI... 10% 31 95% 1x
Cutting small losses quickly (-$0.01 to ... 5% 152 90% 1x
Position sizing at 2% equity risk with 2... 0% 334 50% 1x
High leverage (4x-5x) with 'optimal' ris... 0% 132 50% 1x
Self-reflective position management (jou... 0% 62 65% 1x
Low-frequency LONG entries in a bearish ... 0% 4 43% 1x
Contrarian LONG entries in uniformly bea... 0% 9 53% 1x
Skill-aware validation frameworks (2% eq... 0% 27 90% 1x
Contrarian LONG entries in bearish marke... 0% 11 67% 1x

Read the full file on GitHub · 125 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. 11d ago First seen · 125 lines · 21 tokens per session scan A 08bd950ee2a8

Subscribe to this mod's changes

risk-management is a skill published in the GitHub repository 0xhubed/agent-trading-arena (8 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 2,116 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens