skills/capital/modeling-xva-adjustments/SKILL.md
Calculates comprehensive XVA including CVA, DVA, FVA, KVA, and MVA with portfolio-level analysis and hedging strategies. Use when computing XVA, modeling valuation adjustments, or analyzing funding costs.
npx skillsauth add casemark/skills modeling-xva-adjustmentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scope & segmentation — Identify netting sets, confirm CSA terms per netting set, classify trades as collateralized/uncollateralized/partially collateralized. Determine which XVA components are in scope (CVA, DVA, FVA, KVA, MVA).
Exposure simulation — Run Monte Carlo simulation to generate future portfolio values on a time grid. Compute expected positive exposure (EPE) and expected negative exposure (ENE) profiles per netting set, applying CSA margining logic (threshold, MTA, margin period of risk).
CVA calculation — Integrate discounted EPE against counterparty default probability:
DVA calculation — Mirror CVA using ENE and own default probability:
FVA calculation — Compute funding cost/benefit on expected unsecured exposure:
KVA calculation — Estimate lifetime cost of regulatory capital:
MVA calculation — Quantify cost of funding initial margin over trade life:
Aggregation & allocation — Sum components to total XVA per netting set and portfolio-wide. Allocate incremental XVA to individual trades using Euler allocation or stand-alone/incremental decomposition for pricing and desk-level P&L attribution.
Hedging strategy — Identify primary XVA risk drivers:
Sensitivity & stress testing — Run bumps on key inputs (credit spreads ±10bp, funding spreads ±5bp, rates ±25bp, correlation shifts) and report XVA Greeks (CS01, IR01, FVA01). Stress-test under adverse scenarios (counterparty downgrade, funding stress, margin call spikes).
development
name: automated-contract-summary language: en description: Generates structured executive summaries of contracts using ML — captures key terms, party obligations, risk allocations, and compliance requirements in a standardized format. Optimized for high-volume review where speed and consistency matter. tags: - summarization - agreement - corporate --- # Automated Contract Summarization Produces standardized executive summaries of contracts using machine learning, capturing essential term
tools
Extracts regulatory obligations from dense regulations across jurisdictions. Breaks down multi-level regulations into clear article-level obligations, classifies applicability to a business, and prioritizes by risk level. Use when translating regulations into actionable compliance requirements.
development
Continuously monitors regulatory landscapes for changes relevant to a specific business. Ingests global regulatory updates, filters by relevance, summarizes impact, and produces an actionable change advisory. Use when tracking regulatory developments affecting a particular product or market.
testing
Compares an organization's existing compliance controls, policies, and procedures against extracted regulatory obligations to identify coverage gaps. Produces a remediation plan with prioritized actions. Use when assessing compliance maturity or preparing for regulatory audits.