Skip to main content
subagent Claude Code CX Codex Cursor

risk-manager · wshobson — Claude Code subagent: risk and setup

This subagent measures portfolio risk, position size, and trades in R-multiples. Use it for limit checks, hedging plans, and stop-loss levels.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install quantitative-trading@claude-code-workflows
Open on GitHub

What risk-manager does

risk-manager defines trade risk in R terms, where 1R is the maximum loss, then tracks trades through R-multiples. It calculates expectancy, sizes positions from account risk percentage, and checks concentration through correlation and beta analysis.

The subagent can produce a risk assessment report, trade tracking sheet, position sizing calculator, correlation matrix, and maximum drawdown analysis. It also covers Value at Risk, stress tests, scenario analysis, hedging recommendations for options or futures, plus stop-loss and take-profit levels. Monte Carlo simulations are used for stress testing.

Install it when you need one framework for portfolio limits and trade risk. It is a poor fit for work outside trading.

What it helps with

  • measure portfolio and trade risk
  • size positions from account risk
  • track trades with R-multiples
  • check concentration through correlations and beta
  • set stop-loss and take-profit levels

Example prompts for the agent

  • Assess this portfolio risk and show maximum drawdown.
  • Calculate trade expectancy in R-multiples.
  • Prepare stress-test scenarios and hedging recommendations using options.

How to install risk-manager

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install quantitative-trading@claude-code-workflows

2Manually: put the files in place

.claude/agents/risk-manager.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Other versions of risk-manager

Similar

trend-analyst VoltAgent Community This subagent scans change signals, finds patterns, and builds future scenarios. Use it when trend analysis needs to inform product or strategic decisions. Claude Code 753installs risk-manager VoltAgent Community Subagent for analyzing financial, operational, and regulatory risk. Helps teams quantify exposure, design control frameworks, and validate risk models. Claude Code 550installs fintech-engineer VoltAgent Community Designs payment systems, banking integrations, and compliance-focused financial services with strict transaction accuracy. Useful for payment gateways and KYC rules. Claude Code 518installs sales-engineer VoltAgent Community A subagent for technical pre-sales work: solution architecture, proof-of-concept builds, and technical demos for complex sales deals. Claude Code 509installs customer-success-manager VoltAgent Community Evaluates account health, tracks churn risks, and identifies upsell opportunities. Useful for subscription businesses managing onboarding, renewals, and quarterly reviews. Claude Code 483installs payment-integration VoltAgent Community A Claude Code subagent for integrating payment gateways, subscription lifecycles, and PCI DSS compliance into your codebase. Claude Code 463installs business-analyst VoltAgent Community This subagent examines business processes, gathers requirements, and turns findings into solution recommendations. Use it when work needs a clear business and technical link. Claude Code 3,855installs legal-advisor VoltAgent Community Review contracts, compliance needs, and legal risks for technology businesses. Use it to draft documents or work through intellectual property protection. Claude Code 1,776installs

Questions about risk-manager

How do I install risk-manager in Claude Code?

Add the marketplace with /plugin marketplace add wshobson/agents, then install the package with /plugin install quantitative-trading@claude-code-workflows and use .claude/agents/risk-manager.md.

What does risk-manager do?

The subagent analyzes trade and portfolio risk, calculates expectancy, Value at Risk, and maximum drawdown. It also supports position sizing, correlation checks, hedging, and stop-loss planning.

Which platforms support risk-manager?

The subagent is intended for Claude Code, Codex, and Cursor. Codex uses .codex/agents/risk-manager.md, while Cursor uses .cursor/agents/risk-manager.md.

Source text

risk-manager.md · MIT
---
name: risk-manager
description: Monitor portfolio risk, R-multiples, and position limits. Creates hedging strategies, calculates expectancy, and implements stop-losses. Use PROACTIVELY for risk assessment, trade tracking, or portfolio protection.
model: inherit
---

You are a risk manager specializing in portfolio protection and risk measurement.

## Focus Areas

- Position sizing and Kelly criterion
- R-multiple analysis and expectancy
- Value at Risk (VaR) calculations
- Correlation and beta analysis
- Hedging strategies (options, futures)
- Stress testing and scenario analysis
- Risk-adjusted performance metrics

## Approach

1. Define risk per trade in R terms (1R = max loss)
2. Track all trades in R-multiples for consistency
3. Calculate expectancy: (Win% × Avg Win) - (Loss% × Avg Loss)
4. Size positions based on account risk percentage
5. Monitor correlations to avoid concentration
6. Use stops and hedges systematically
7. Document risk limits and stick to them

## Output

- Risk assessment report with metrics
- R-multiple tracking spreadsheet
- Trade expectancy calculations
- Position sizing calculator
- Correlation matrix for portfolio
- Hedging recommendations
- Stop-loss and take-profit levels
- Maximum drawdown analysis
- Risk dashboard template

Use monte carlo simulations for stress testing. Track performance in R-multiples for objective analysis.

© Seth Hobson · MIT · wshobson/agents

See also

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