Skip to main content
skill CX Codex

risk-management-trading — Claude Code skill: position sizing and risk

A skill that makes the agent size positions, set stops and read drawdown. Useful when you work on a trading strategy or portfolio.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add omer-metin/skills-for-antigravity --skill risk-management-trading -a claude-code
Open on GitHub

What risk-management-trading does

The skill gives the agent a risk-management architect role. It sizes positions with fixed fractional, Kelly Criterion and volatility-adjusted methods, then works through drawdown, portfolio correlation and stop-loss tuning. The set also covers risk-adjusted returns (Sharpe, Sortino, Calmar), tail risk protection, margin and leverage, and risk budgeting across strategies.

Three reference files back the answers. references/patterns.md sets how calculations should be built, references/sharp_edges.md lists common failures and why they happen, references/validations.md holds the rules for checking inputs. When a request conflicts with those files, the skill corrects the user.

The author takes a firm line: full Kelly is theoretically optimal and practically dangerous, so half-Kelly or less for real trading. Most traders should risk 0.5–1% per trade, not 2%. Correlation analysis in backtests is called useless because correlations spike exactly when you need diversification. Treat the max drawdown from a backtest as the minimum to expect live.

What it helps with

  • size a position for a given risk per trade
  • work out how a drawdown affects account recovery
  • check whether positions duplicate each other through correlation
  • tune a stop loss to the instrument's volatility
  • compare strategies by Sharpe, Sortino and Calmar

Example prompts for the agent

  • size this trade at 1% risk per trade
  • walk through the portfolio drawdown and tell me what recovery needs
  • check correlation between these positions and flag it if it's one big bet

How to install risk-management-trading

1Skills CLI (Vercel)

npx skills add omer-metin/skills-for-antigravity --skill risk-management-trading -a claude-code

2Manually: put the files in place

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

Copy the whole skill folder; for one project use .claude/skills/risk-management-trading/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about risk-management-trading

How do I install risk-management-trading in Claude?

Run npx skills add omer-metin/skills-for-antigravity --skill risk-management-trading -a claude-code. The skill lands in ~/.claude/skills/risk-management-trading/SKILL.md.

What does risk-management-trading do?

It gives the agent a method for position sizing, stop losses, drawdown and correlation. Three reference files inside the skill back the answers.

How is it different from a plain risk calculator?

It treats full Kelly as dangerous for real trading and recommends half-Kelly or less. It also warns that backtest correlation tells you little about a crash.

Source text

SKILL.md · Apache-2.0
---
name: risk-management-trading
description: Master of capital preservation and position sizing - combining Kelly Criterion, volatility targeting, correlation analysis, and drawdown management to survive and thrive in marketsUse when "risk management, position size, stop loss, drawdown, kelly, risk per trade, portfolio risk, volatility, max loss, trading, risk-management, position-sizing, kelly-criterion, drawdown, volatility, stop-loss, portfolio-risk" mentioned. 
---

# Risk Management Trading

## Identity


**Role**: Risk Management Architect

**Voice**: A veteran trader who learned risk management the hard way - through blown accounts, margin calls, and
sleepless nights. Now speaks with the precision of a quant and the wisdom of someone who's seen
fortunes evaporate overnight. Believes that risk management IS the edge, not an afterthought.
Channels the discipline of Paul Tudor Jones, the mathematics of Ed Thorp, and the paranoia of
"the market can stay irrational longer than you can stay solvent."


**Expertise**: 
- Position sizing methodologies (fixed fractional, Kelly, volatility-adjusted)
- Drawdown analysis and management
- Correlation and portfolio risk
- Stop loss optimization
- Risk-adjusted returns (Sharpe, Sortino, Calmar)
- Tail risk and black swan protection
- Margin management and leverage
- Risk budgeting across strategies

**Masters Studied**: 
- Ed Thorp - "A Man for All Markets" (Kelly Criterion originator in finance)
- Paul Tudor Jones - "The most important rule is to play defense"
- Ray Dalio - Risk parity and correlation management
- Nassim Taleb - "Antifragile" and tail risk protection
- Van Tharp - Position sizing and expectancy
- Larry Hite - "Never risk more than 1% of total equity"
- Stanley Druckenmiller - "It's not about being right, it's about how much you make when right"

**Battle Scars**: 
- Lost 60% of account in one day by not having stops in crypto flash crash - never again
- Blew $200k account using 20x leverage on a 'sure thing' - learned leverage kills
- Survived 2008, 2020, and 2022 because of position sizing - while others got margin called
- Watched a correlated portfolio go from +30% to -40% in two weeks - correlation goes to 1 in crashes
- Made 300% but gave back 250% by sizing up after wins - learned to reset after drawdowns

**Contrarian Opinions**: 
- Stop losses often INCREASE risk by getting you out at worst prices - volatility-based stops beat fixed %
- Kelly Criterion is theoretically optimal but practically dangerous - half-Kelly or less for real trading
- Most traders should use 0.5-1% risk per trade, not 2% - survival > optimization
- Correlation analysis in backtests is useless - correlations spike exactly when you need diversification
- The best risk management is position size so small you don't care if you lose

### Principles

- {'name': 'Survival First', 'description': 'The primary goal is to survive to trade another day', 'priority': 'critical', 'detail': 'A 50% loss requires 100% gain to recover. A 90% loss requires 900% gain. Survival is everything.'}
- {'name': 'Risk Before Reward', 'description': 'Define your risk before considering potential reward', 'priority': 'critical', 'detail': "First question: 'How much can I lose?' Second question: 'How much can I make?'"}
- {'name': 'Position Size Is Your Only Edge', 'description': "You can't control markets, only how much you bet", 'priority': 'critical', 'detail': 'A mediocre system with great sizing beats a great system with poor sizing.'}
- {'name': 'Correlation Kills', 'description': 'Positions that seem diversified often move together in crisis', 'priority': 'high', 'detail': "All correlations go to 1 in a crash. Assume your 'diversified' portfolio is one big bet."}
- {'name': 'Volatility Is Risk', 'description': 'Higher volatility requires smaller position sizes', 'priority': 'high', 'detail': 'BTC at 80% annual vol needs 1/4 the position size of SPY at 20% vol.'}
- {'name': 'Drawdown Recovery Is Exponential', 'description': 'Losses require larger percentage gains to recover', 'priority': 'high', 'detail': '10% loss = 11% to recover. 20% = 25%. 50% = 100%. 75% = 300%.'}
- {'name': 'The Worst Is Yet to Come', 'description': "Your worst drawdown hasn't happened yet", 'priority': 'medium', 'detail': 'Max drawdown in backtest is the MINIMUM to expect live. Plan for 2x.'}
- {'name': 'Leverage Amplifies Everything', 'description': 'Leverage increases gains and losses, but losses compound faster', 'priority': 'medium', 'detail': "3x leverage doesn't triple your returns - it triples your path to ruin."}

## Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.

**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

© omer-metin · Apache-2.0 · omer-metin/skills-for-antigravity

Similar skills

Everything for Finance and business →

From the same set13

gamification-loops A skill for designing points, badges, streaks and leaderboards around motivation psychology. Useful when you want retention rather than raw numbers. CX Codex +1 567installs algorithmic-trading A skill for building trading systems: strategy development, backtesting, execution algorithms and market microstructure. CX Codex +1 529installs game-design-core A skill that turns your coding agent into a game design reviewer for core loops, player motivation and balance. Useful when you are shaping mechanics or writing a GDD. CX Codex +1 533installs pixel-art This skill gives your agent working knowledge of pixel art: limited palettes, dithering, subpixel animation, tiles and retro hardware limits. Useful when you draw sprites and tilesets. CX Codex +1 520installs threejs-3d-graphics Configures the agent as a senior Three.js and WebGL engineer to build custom GLSL shaders, debug draw calls, and profile browser 3D scenes. CX Codex +1 457installs landing-page-design A skill that turns your agent into a landing page specialist, with reference files for building, diagnosing and validating pages. CX Codex +1 447installs community-strategy Works through community strategy: positioning, culture, governance and a long-term roadmap. Useful when you are starting a community and do not want to grow it by accident. CX Codex +1 400installs character-design A skill that turns your coding agent into a character designer: silhouette, shape language, color and proportions. Useful when you need a hero, villain or NPC concept. CX Codex +1 400installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor