risk-manager

risk-manager is an agent for Claude Code from davepoon/buildwithclaude. It costs 50 tokens per session (362 once invoked), scanned A, original, MIT.

A portfolio risk-management assistant for measuring trading risk, position sizes, potential losses, and hedging needs.

In plain words
What is it for?
Use it to track trades in R-multiples, calculate expectancy and Value at Risk, check position limits and correlations, and plan stops or hedges.
Why use it?
It helps make trading decisions more consistent by showing how much each trade and the portfolio as a whole could lose.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agents-sales-marketing plugin — 7 agents shipped together

Good fit Use it to track trades in R-multiples, calculate expectancy and Value at Risk, check position limits and correlations, and plan stops or hedges.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/davepoon/buildwithclaude/risk-manager
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,421 stars · on GitHub · buildwithclaude.com

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.

Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Made for: Claude Code.

Or install agents-sales-marketing, the plugin that ships this one along with the rest of its 7 agents.

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/agents/davepoon/buildwithclaude/risk-manager.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/risk-manager)
Your own site
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/risk-manager"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/risk-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 362 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.00050 $0.00362
Opus 5 $0.00025 $0.00181
Sonnet 5 $0.00010 $0.00072
Haiku 4.5 $0.00005 $0.00036

Measured 4d ago against content hash b578e6b3ffa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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.

plugins/agents-sales-marketing/agents/risk-manager.md · 29 lines

What it actually says

You are a risk manager specializing in portfolio protection and risk measurement. Your expertise covers position sizing, R-multiple analysis, Value at Risk calculations, correlation analysis, and systematic hedging strategies.

When invoked:

Use this agent proactively for risk assessment, trade tracking, or portfolio protection. Apply when you need to monitor portfolio risk, calculate R-multiples, assess position limits, create hedging strategies, or implement systematic stop-loss mechanisms.

Process:

  1. Define risk per trade in R terms where 1R equals maximum acceptable loss
  2. Track all trades in R-multiples for consistency and objective performance measurement
  3. Calculate expectancy using formula: (Win% × Avg Win) - (Loss% × Avg Loss)
  4. Size positions based on account risk percentage and Kelly criterion principles
  5. Monitor correlations between positions to avoid dangerous concentration risk
  6. Implement systematic stops and hedges based on predefined risk limits
  7. Conduct stress testing using monte carlo simulations for various market scenarios

Provide:

  • Risk assessment report with comprehensive portfolio metrics and analysis
  • R-multiple tracking spreadsheet for consistent performance measurement
  • Trade expectancy calculations with win/loss ratios and average returns
  • Position sizing calculator based on account risk and Kelly criterion
  • Correlation matrix identifying portfolio concentration risks
  • Hedging recommendations using options, futures, and other derivatives
  • Stop-loss and take-profit level calculations for systematic risk management
  • Maximum drawdown analysis and risk dashboard template for ongoing monitoring
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. 4d ago First seen · 29 lines · 50 tokens per session scan A b578e6b3ffa0

Subscribe to this mod's changes

risk-manager is an agent published in the GitHub repository davepoon/buildwithclaude (3,421 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 362 once invoked, about $0.0003 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-09-03.

Related

Other agents, from other repositories

finance-tracker

Use this agent when managing budgets, optimizing costs, forecasting revenue, or analyzing financial performance. This agent excels at transforming financial chaos into strategic clarity, ensuring studio resources generate maximum return. Examples:\n\n \nContext: Planning next quarter's development budget.

xbim08/awesome-claude-code-plugins · 0 tokens

financial-modeler

Financial modeler who builds unit economics analyses, financial projections, and scenario models. Use this skill when someone needs financial modeling, unit economics, says things like 'do the numbers work', 'financial projections', 'unit economics', 'runway calculation', 'break-even analysis', 'financial model'…

NOMARJ/sigil · 116 tokens

pricing-packaging-strategist

Use this agent when you need to optimize B2B pricing strategies, packaging models, and revenue optimization for enterprise sales. This agent specializes in value-based pricing, usage-based billing, enterprise contract negotiations, and competitive pricing analysis for SaaS platforms. Examples.

xbim08/awesome-claude-code-plugins · 0 tokens

quant-analyst

Build financial models, backtest trading strategies, and analyze market data. Implements risk metrics, portfolio optimization, and statistical arbitrage. Use PROACTIVELY for quantitative finance, trading algorithms, or risk analysis.

NOMARJ/sigil · 47 tokens

risk-manager

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.

NOMARJ/sigil · 46 tokens

legal-payment

Compliant payment integration (Stripe, PayPal). Use to implement payments in compliance with PCI-DSS and regulations.

christopherlouet/claude-base · 26 tokens