[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F99GK5VC1WHV4RXG38G781":3,"skill-same:01M7F99GK5VC1WHV4RXG38G781":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":14,"repositoryHtmlUrl":48,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M7F99GK5VC1WHV4RXG38G781","managing-xva-calculations",null,"Structures CVA, DVA, FVA, and KVA calculation with methodology selection and counterparty exposure modeling. Use when calculating XVA, pricing counterparty credit risk, or analyzing funding valuation adjustments.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Ffinance\u002Fmanaging-xva-calculations\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: managing-xva-calculations\nlanguage: en\ndescription: Structures CVA, DVA, FVA, and KVA calculation with methodology selection and counterparty exposure modeling. Use when calculating XVA, pricing counterparty credit risk, or analyzing funding valuation adjustments.\ntags:\n  - management\n  - quantitative-finance\n  - risk\n  - credit\nmetadata:\n  author: casemark\n  practice_areas:\n    - Derivatives\n    - Quantitative Analysis\n    - Structured Products\n  document_types:\n    - Management Report\n  skill_modes:\n    - Management\n    - Coordination\nsource: \"https:\u002F\u002Fgithub.com\u002FCaseMark\u002Fskills\"\nsource_repository: \"CaseMark\u002Fskills\"\nsource_path: \"skills\u002Ffinance\u002Fmanaging-xva-calculations\u002FSKILL.md\"\nlicense: \"Apache-2.0\"\nimported_at: \"2026-09-20\"\n---\n# Managing XVA Calculations\n\nStructures CVA, DVA, FVA, and KVA calculation with methodology selection and counterparty exposure modeling.\n\n## When To Use\n\n- Pricing or re-pricing OTC derivatives where counterparty credit risk adjustments are material\n- Computing desk-level or portfolio-level XVA charges for P&L attribution\n- Selecting or validating methodology choices (SA-CCR vs. IMM, analytic vs. Monte Carlo)\n- Reconciling front-office XVA with risk-neutral CVA\u002FDVA reported to finance\n- Responding to model validation or audit queries on XVA assumptions\n- Assessing incremental XVA impact for new trades, novations, or collateral restructuring\n\n## Inputs To Gather\n\n- **Trade population**: Netting set definitions, CSA\u002FISDA terms, collateral thresholds, minimum transfer amounts, margin frequency\n- **Market data**: Yield curves, credit spreads (CDS or mapped proxies), FX\u002Fequity\u002Fcommodity vols, correlation matrices\n- **Counterparty data**: Credit ratings, PD term structures, LGD assumptions, wrong-way risk indicators\n- **Funding curves**: Treasury funding spreads, secured vs. unsecured funding basis, internal FTP rates\n- **Capital parameters**: RWA methodology (SA-CCR or IMM), cost-of-capital rate, regulatory alpha multiplier [VERIFY — jurisdiction-specific]\n- **Collateral terms**: Eligible collateral types, haircut schedules, rehypothecation rights, variation margin vs. initial margin treatment\n- **Simulation parameters**: Number of Monte Carlo paths, time grid granularity, diffusion model choices, close-out period assumption\n\n## Workflow\n\n1. **Define netting and margining structure**\n   - Map trades to legal netting sets under enforceable ISDA\u002FCSA agreements\n   - Confirm collateral terms: threshold, MTA, rounding, independent amounts\n   - Identify any one-way CSAs, break clauses, or optionality affecting exposure profiles\n   - Flag netting opinions that are missing or expired [VERIFY — enforceability by jurisdiction]\n\n2. **Generate exposure profiles**\n   - Select simulation approach: full Monte Carlo revaluation, regression-based (e.g., Longstaff-Schwartz for American-style features), or analytic approximation for vanilla books\n   - Define time grid — finer near term (weekly to 1Y), coarser long term (quarterly\u002Fannual beyond 5Y)\n   - Simulate risk factor paths under risk-neutral measure for pricing, real-world measure if needed for KVA\u002Fregulatory\n   - Compute per-path, per-time-step MtM; apply netting and collateral modeling to produce Expected Exposure (EE), Expected Positive Exposure (EPE), and Expected Negative Exposure (ENE)\n   - Derive Potential Future Exposure (PFE) at required quantiles (typically 95th or 97.5th)\n\n3. **Compute individual XVA components**\n   - **CVA**: Integrate discounted EPE against counterparty default probability and LGD. For Basel III SA-CVA, apply prescribed risk weights and correlation parameters [VERIFY — SA-CVA vs. BA-CVA eligibility under local regulation]\n   - **DVA**: Mirror calculation using ENE and own-default probability. Determine whether DVA is recognized in regulatory capital vs. only in accounting P&L [VERIFY — prudential treatment varies by jurisdiction]\n   - **FVA**: Decompose into Funding Benefit Adjustment (FBA) on negative exposure and Funding Cost Adjustment (FCA) on positive exposure. Apply unsecured funding spread net of collateral offsets. Address controversy: ensure FVA is not double-counting DVA\n   - **ColVA**: Calculate cost\u002Fbenefit of posting collateral — opportunity cost of segregated IM, carry on rehypothecable VM\n   - **KVA**: Estimate lifetime cost of regulatory capital (RWA × cost-of-capital rate) discounted over the portfolio's expected life. Requires forward projection of capital under chosen methodology (SA-CCR alpha factor = 1.4 unless internal model approved)\n   - **MVA**: Compute cost of posting initial margin under UMR\u002Fcleared margin rules; project IM using ISDA SIMM or CCP schedule\n\n4. **Aggregate and attribute**\n   - Roll up netting-set-level XVA to counterparty, desk, business line, and firm-wide totals\n   - Perform incremental XVA analysis: marginal contribution of individual trades to portfolio-level CVA\u002FFVA\n   - Calculate XVA sensitivities (CS01, IR delta, vega) for hedging desk consumption\n   - Reconcile front-office XVA (risk-neutral, continuous) with accounting CVA (fair-value, quarterly) and regulatory CVA capital charge\n\n5. **Report and escalate**\n   - Produce XVA P&L explain: decompose period-over-period changes into market risk, credit migration, new trades, trade maturity\u002Fsettlement, and methodology changes\n   - Flag counterparties where CVA exceeds materiality thresholds or PFE breaches credit limits\n   - Identify wrong-way risk concentrations (e.g., FX derivatives with EM sovereign counterparties)\n   - Document all model choices, overrides, and proxy mappings for audit trail\n\n## Output\n\n- **XVA summary table**: CVA, DVA, FVA (FCA + FBA), ColVA, KVA, MVA by netting set and counterparty, with total portfolio XVA\n- **Exposure profile charts**: EPE, ENE, and PFE term structures per netting set\n- **P&L attribution**: Period-over-period XVA movement broken into risk drivers\n- **Sensitivity report**: CS01, IR01, and vega for CVA hedging\n- **Methodology memo**: Simulation parameters, model choices, proxy mappings, and known limitations\n- **Exception log**: Counterparties with material wrong-way risk, missing netting opinions, or stale credit data\n\n## Quality Checks\n\n- Confirm netting set definitions match signed ISDA\u002FCSA documentation — mismatched netting inflates or deflates exposure\n- Validate that EPE converges with increasing Monte Carlo paths (run convergence test; target coefficient of variation \u003C 2% on portfolio CVA)\n- Cross-check CVA against market-implied CDS spreads × EPE as a sanity benchmark\n- Verify FVA does not double-count DVA — if both are reported, confirm the exposure legs are correctly separated\n- Ensure KVA capital projection is consistent with the regulatory methodology actually approved for the entity [VERIFY — IMM vs. SA-CCR status]\n- Reconcile sum of incremental XVAs to standalone portfolio XVA (non-linearity is expected but should be documented)\n- Confirm collateral modeling reflects actual operational margin call frequency, not just contractual terms\n- Review proxy credit spread mappings — ensure sector\u002Fregion\u002Frating proxies are reasonable and documented\n","# Managing XVA Calculations\n\nStructures CVA, DVA, FVA, and KVA calculation with methodology selection and counterparty exposure modeling.\n\n## When To Use\n\n- Pricing or re-pricing OTC derivatives where counterparty credit risk adjustments are material\n- Computing desk-level or portfolio-level XVA charges for P&L attribution\n- Selecting or validating methodology choices (SA-CCR vs. IMM, analytic vs. Monte Carlo)\n- Reconciling front-office XVA with risk-neutral CVA\u002FDVA reported to finance\n- Responding to model validation or audit queries on XVA assumptions\n- Assessing incremental XVA impact for new trades, novations, or collateral restructuring\n\n## Inputs To Gather\n\n- **Trade population**: Netting set definitions, CSA\u002FISDA terms, collateral thresholds, minimum transfer amounts, margin frequency\n- **Market data**: Yield curves, credit spreads (CDS or mapped proxies), FX\u002Fequity\u002Fcommodity vols, correlation matrices\n- **Counterparty data**: Credit ratings, PD term structures, LGD assumptions, wrong-way risk indicators\n- **Funding curves**: Treasury funding spreads, secured vs. unsecured funding basis, internal FTP rates\n- **Capital parameters**: RWA methodology (SA-CCR or IMM), cost-of-capital rate, regulatory alpha multiplier [VERIFY — jurisdiction-specific]\n- **Collateral terms**: Eligible collateral types, haircut schedules, rehypothecation rights, variation margin vs. initial margin treatment\n- **Simulation parameters**: Number of Monte Carlo paths, time grid granularity, diffusion model choices, close-out period assumption\n\n## Workflow\n\n1. **Define netting and margining structure**\n   - Map trades to legal netting sets under enforceable ISDA\u002FCSA agreements\n   - Confirm collateral terms: threshold, MTA, rounding, independent amounts\n   - Identify any one-way CSAs, break clauses, or optionality affecting exposure profiles\n   - Flag netting opinions that are missing or expired [VERIFY — enforceability by jurisdiction]\n\n2. **Generate exposure profiles**\n   - Select simulation approach: full Monte Carlo revaluation, regression-based (e.g., Longstaff-Schwartz for American-style features), or analytic approximation for vanilla books\n   - Define time grid — finer near term (weekly to 1Y), coarser long term (quarterly\u002Fannual beyond 5Y)\n   - Simulate risk factor paths under risk-neutral measure for pricing, real-world measure if needed for KVA\u002Fregulatory\n   - Compute per-path, per-time-step MtM; apply netting and collateral modeling to produce Expected Exposure (EE), Expected Positive Exposure (EPE), and Expected Negative Exposure (ENE)\n   - Derive Potential Future Exposure (PFE) at required quantiles (typically 95th or 97.5th)\n\n3. **Compute individual XVA components**\n   - **CVA**: Integrate discounted EPE against counterparty default probability and LGD. For Basel III SA-CVA, apply prescribed risk weights and correlation parameters [VERIFY — SA-CVA vs. BA-CVA eligibility under local regulation]\n   - **DVA**: Mirror calculation using ENE and own-default probability. Determine whether DVA is recognized in regulatory capital vs. only in accounting P&L [VERIFY — prudential treatment varies by jurisdiction]\n   - **FVA**: Decompose into Funding Benefit Adjustment (FBA) on negative exposure and Funding Cost Adjustment (FCA) on positive exposure. Apply unsecured funding spread net of collateral offsets. Address controversy: ensure FVA is not double-counting DVA\n   - **ColVA**: Calculate cost\u002Fbenefit of posting collateral — opportunity cost of segregated IM, carry on rehypothecable VM\n   - **KVA**: Estimate lifetime cost of regulatory capital (RWA × cost-of-capital rate) discounted over the portfolio's expected life. Requires forward projection of capital under chosen methodology (SA-CCR alpha factor = 1.4 unless internal model approved)\n   - **MVA**: Compute cost of posting initial margin under UMR\u002Fcleared margin rules; project IM using ISDA SIMM or CCP schedule\n\n4. **Aggregate and attribute**\n   - Roll up netting-set-level XVA to counterparty, desk, business line, and firm-wide totals\n   - Perform incremental XVA analysis: marginal contribution of individual trades to portfolio-level CVA\u002FFVA\n   - Calculate XVA sensitivities (CS01, IR delta, vega) for hedging desk consumption\n   - Reconcile front-office XVA (risk-neutral, continuous) with accounting CVA (fair-value, quarterly) and regulatory CVA capital charge\n\n5. **Report and escalate**\n   - Produce XVA P&L explain: decompose period-over-period changes into market risk, credit migration, new trades, trade maturity\u002Fsettlement, and methodology changes\n   - Flag counterparties where CVA exceeds materiality thresholds or PFE breaches credit limits\n   - Identify wrong-way risk concentrations (e.g., FX derivatives with EM sovereign counterparties)\n   - Document all model choices, overrides, and proxy mappings for audit trail\n\n## Output\n\n- **XVA summary table**: CVA, DVA, FVA (FCA + FBA), ColVA, KVA, MVA by netting set and counterparty, with total portfolio XVA\n- **Exposure profile charts**: EPE, ENE, and PFE term structures per netting set\n- **P&L attribution**: Period-over-period XVA movement broken into risk drivers\n- **Sensitivity report**: CS01, IR01, and vega for CVA hedging\n- **Methodology memo**: Simulation parameters, model choices, proxy mappings, and known limitations\n- **Exception log**: Counterparties with material wrong-way risk, missing netting opinions, or stale credit data\n\n## Quality Checks\n\n- Confirm netting set definitions match signed ISDA\u002FCSA documentation — mismatched netting inflates or deflates exposure\n- Validate that EPE converges with increasing Monte Carlo paths (run convergence test; target coefficient of variation \u003C 2% on portfolio CVA)\n- Cross-check CVA against market-implied CDS spreads × EPE as a sanity benchmark\n- Verify FVA does not double-count DVA — if both are reported, confirm the exposure legs are correctly separated\n- Ensure KVA capital projection is consistent with the regulatory methodology actually approved for the entity [VERIFY — IMM vs. SA-CCR status]\n- Reconcile sum of incremental XVAs to standalone portfolio XVA (non-linearity is expected but should be documented)\n- Confirm collateral modeling reflects actual operational margin call frequency, not just contractual terms\n- Review proxy credit spread mappings — ensure sector\u002Fregion\u002Frating proxies are reasonable and documented\n",{"name":5,"tags":24,"source":29,"license":15,"language":30,"metadata":31,"description":7,"imported_at":42,"source_path":43,"source_repository":44},[25,26,27,28],"management","quantitative-finance","risk","credit","https:\u002F\u002Fgithub.com\u002FCaseMark\u002Fskills","en",{"author":32,"skill_modes":33,"document_types":36,"practice_areas":38},"casemark",[34,35],"Management","Coordination",[37],"Management Report",[39,40,41],"Derivatives","Quantitative Analysis","Structured Products","2026-09-20","skills\u002Ffinance\u002Fmanaging-xva-calculations\u002FSKILL.md","CaseMark\u002Fskills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Ffinance\u002Fmanaging-xva-calculations","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill managing-xva-calculations",{"tool":57,"command":58},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill managing-xva-calculations",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill managing-xva-calculations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Ffinance\u002Fmanaging-xva-calculations\u002FSKILL.md",true,[],[66,74,81,88,95,102],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]