claudecodex

risk-desk

Portfolio risk an agent can drive, from supplied data only: historical and model VaR and Expected Shortfall with backtests, signed linear exposure, Greeks and full revaluation of European options, VaR and ES attribution, limits and pre-trade what-if, liquidity-adjusted VaR, explicit, historical and reverse stress scenarios that carry no probability, SA-CCR and exposure profiles, portfolio credit VaR, FRTB capital pieces, and XVA through a local Open Source Risk Engine project. Research software, not investment advice.

3 on GitHubby Iman Samizadehv0.2.0PolyForm-Noncommercial-1.0.0updated 3 days agofinance
/

Plugin risk-desk from marketplace risk-desk in Iman/agent-driven-risk-desk-and-skills. Commands read from the repo's manifest — 2 days ago.

This plugin runs code on your machine — it starts local MCP servers. The exact commands are listed below; read them before installing.

What it installs

Skills (14)

  • risk-attribution

    Estimate an asset covariance matrix from a supplied return history (sample, EWMA or Ledoit-Wolf), split portfolio VaR and Expected Shortfall into per-position Euler contributions (parametric normal, and historical-simulation ES), give incremental VaR per position, and regress asset returns on suppli

  • risk-backtest

    Backtest a supplied VaR forecast series, and optionally an Expected Shortfall series, against realised P&L. Reports exceptions, the Kupiec proportion-of-failures test, the Christoffersen independence and conditional coverage tests, the Basel MAR99 traffic-light zone for one-day 99% VaR, and the Acer

  • risk-counterparty

    Calculate Basel SA-CCR exposure at default for one derivative netting set (CRE52), or summarise a simulated exposure profile such as an ORE netting-set exposure report into peak PFE, EPE, Effective EE and Effective EPE (CRE50, CRE53). Use for regulatory counterparty exposure measures. Not for CVA or

  • risk-credit

    Calculate portfolio credit VaR from obligor exposure, PD and LGD, either with the Vasicek asymptotic single risk factor quantile (the model behind the Basel IRB formula, CRE31) or with a seeded default-mode one-factor Gaussian copula Monte Carlo for a finite portfolio, giving expected loss, unexpect

  • risk-data-import

    Turn a caller's CSV, spreadsheet or JSON of positions, P&L, prices or exposures into a Risk Desk request contract, repairing clear format and unit errors and reporting each repair. Use when a user attaches a file and asks for a risk figure, asks how to format their data, or a tool rejected their inp

  • risk-derivatives

    Greeks, spot and vol scenario grids, and historical full-revaluation P&L for a book that mixes linear positions with European calls and puts on spot (Black-Scholes-Merton) or futures (Black-76) underlyings. Use when a book holds options and the question is cash delta, gamma, vega, theta or rho expos

  • risk-frtb

    Compute Basel FRTB market risk capital pieces from figures a bank has already produced. It covers the internal models approach (liquidity-adjusted, stress-calibrated Expected Shortfall and IMCC, then aggregate capital with the multiplier, the amber-desk surcharge and RWA), the desk eligibility tests

  • risk-limits

    Check a limit set (gross, net, leverage, an asset's gross share, VaR, Expected Shortfall, a named stress loss) against Risk Desk exposure, tail and stress results, and run a pre-trade what-if that revalues the book with proposed trades and checks the limits after. Use when the user asks whether a bo

  • risk-liquidity

    Estimate days to liquidate each asset at a participation rate of average daily traded value, the schedule of what is still held by day, the exogenous bid-ask spread cost of liquidation, and liquidity-adjusted VaR after Bangia, Diebold, Schuermann and Stroughair (1999). Use when the user asks how lon

  • risk-portfolio

    Aggregate gross and net exposure, gross and net leverage against a supplied NAV, and each asset's share of gross for signed linear positions in one base currency (risk_exposure). Use when the user asks for gross or net exposure, leverage, or which asset is the biggest share of the book. Not for opti

  • risk-setup

    Install and verify the Risk Desk runtime when its CLI or MCP tools are missing, an optional extra (xva for ORE, dev for tests) is absent, or the Option Desk engine wheel will not resolve. Includes a doctor script that reports what is installed and whether risk_desk_status answers, without installing

  • risk-stress

    Revalue linear positions under explicitly supplied asset-return scenarios, replay a dated historical window from the user's own price data, list the dated scenario library (Lehman 2008, COVID 2020, UK gilt and LDI 2022), find the most plausible shock that produces a target loss (reverse stress) unde

  • risk-tail

    Calculate VaR and Expected Shortfall from supplied horizon P&L, either historical only (risk_tail) or side by side under normal, Student-t, extreme value, GARCH filtered historical, GARCH-EVT and GARCH-t Monte Carlo models (risk_tail_models). Use for loss quantiles, tail severity and model compariso

  • risk-xva

    Run a trusted local ORE (Open Source Risk Engine) project for counterparty exposure and valuation adjustments (risk_xva), and read its XVA and exposure reports. Use for ORE CVA, DVA, funding and other XVA reports, or to produce the netting-set exposure profile that risk_exposure_profile summarises.

Slash commands (10)

  • /risk-desk:risk-backtest

    Backtest a VaR forecast series against realised P&L, with the exception count and the test verdicts read before any judgement

  • /risk-desk:risk-daily

    Morning risk pack on the caller's files: exposure, tail models, backtest status, stress and limits, written to one report page

  • /risk-desk:risk-dashboard

    Serve the results in a browser on a loopback address, and explain the refusal if it will not start

  • /risk-desk:risk-exposure

    Gross and net exposure, leverage against NAV, and the largest share of gross

  • /risk-desk:risk-limits

    Grade a limit set against Risk Desk exposure, tail and stress results, with every limit that was not evaluated named

  • /risk-desk:risk-report

    Write one self-contained HTML page from the stress, tail and exposure results

  • /risk-desk:risk-stress

    Apply explicit shocks to every position and report the loss, the stressed NAV and the worst contributions

  • /risk-desk:risk-tail

    Historical VaR and Expected Shortfall from supplied P&L, with the sample size read before the numbers

  • /risk-desk:risk-whatif

    Apply proposed trades to a book and compare exposure, stress, tail and limits before and after, without placing anything

  • /risk-desk:risk-xva

    Run a trusted local ORE project for counterparty exposure and XVA, refusing rather than quoting when it errors

Subagents (4)

  • risk-data-auditor

    Check the freshness, completeness and internal consistency of risk inputs and results before anyone reports from them. Use before publishing or acting on a figure, after a batch run, when a number looks surprising, or when the user asks whether the input is any good.

  • risk-model-validator

    Adversarially validate a Risk Desk model result before it is relied on. Re-derives the figure from the saved artifact and its input, runs the backtests, compares challenger models, and states what can make the result wrong. Use when a VaR, ES, attribution, credit VaR, SA-CCR or FRTB figure is about

  • risk-reviewer

    Adversarially review a risk figure before anyone acts on it. Attacks whether the number is trustworthy at all rather than whether the arithmetic is right, and states what has to be true for it to be wrong. Use when a VaR, an Expected Shortfall or a stress loss is about to inform a decision, or when

  • stress-scenario-designer

    Design historical, hypothetical and reverse stress scenarios for a given book, using only the caller's own data and Risk Desk's dated scenario library. Use when the user asks what scenarios to run, what can hurt this book, what move produces a given loss, or how a dated crisis replays on their posit

MCP servers (1)

  • riskdesk

    runs: riskdesk-mcp

View source on GitHub riskdesk.avidquant.com

More from Iman/agent-driven-risk-desk-and-skills

All 2 plugins →

risk-desk-hosted

claudecodex

Portfolio risk over the hosted Risk Desk MCP at riskdesk.avidquant.com, from data you supply: historical and model VaR and Expected Shortfall with backtests, exposure, option Greeks and revaluation, risk attribution, limits and what-if, liquidity-adjusted VaR, explicit, historical and reverse stress, SA-CCR and exposure profiles, credit VaR and FRTB capital pieces. No market data is fetched and no local install is needed. ORE XVA is local only. Research software, not investment advice.

12 skills · 1 MCP server

3

Similar plugins

Neural trading strategies — self-learning LSTM/Transformer/N-BEATS models with Rust/NAPI backtesting

9 skills · 1 command · 4 agents

ruvnet/ruflo 81,589

Official Bigdata.com plugin providing financial research, analytics, and intelligence tools powered by Bigdata MCP.

24 skills · 1 MCP server

anthropics/claude-plugins-official 47,076

The official CCXT MCP server plus the ccxt-mcp usage skill — market data, balances and opt-in trading across 100+ crypto exchanges and prediction markets, with keys kept local.

1 MCP server

ccxt/ccxt 44,873

Quantitative analysis, algorithmic trading strategies, financial modeling, portfolio risk management, and backtesting

2 skills · 2 agents

wshobson/agents 42,461

Fund administration and finance ops: GL reconciliation, break tracing, accruals, roll-forwards, variance commentary, NAV tie-out

6 skills

anthropics/financial-services 41,259

Pre-built small business workflows to help you run and grow your business. Supports a majority of the tools you already use. You approve every step that touches money or customers. Install and then ask Claude to help you get onboarded.

44 skills · 35 MCP servers

anthropics/knowledge-work-plugins 35,601

Maintain risk-desk?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins2 plugins