Marginal VaR Analysis — Agentic Doc-Driven Orchestrator

Decompose parent node VaR into marginal child contributions with visualizations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill marginal-var-analysis-agentic-doc-driven-orchestrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Marginal VaR Analysis — Agentic Doc-Driven Orchestrator
Source: https://github.com/SpecForgeAI/deepagent-bot/tree/main/orchestrate/market-risk/commands/marginal-var/single-agent
Command: npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill marginal-var-analysis-agentic-doc-driven-orchestrator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables risk analysts to decompose a parent node's VaR into marginal contributions from its immediate child nodes and present the results with clear visualizations.

Core Features & Use Cases

  • Phase 1: Query VaR data for the parent and each child using /calc_var and /calc_marginal_var, with a self-check to ensure data completeness.
  • Phase 2: Compute relative contributions, diversification metrics, and concentration, then summarize results.
  • Phase 3: Generate ASCII bar charts and a donut chart to illustrate each child's share of VaR and overall risk distribution.
  • Phase 4: Present the analysis to users, including a concise summary, decomposition table, and visualizations.

Quick Start

Provide a node and date to begin the marginal VaR analysis.

Frequently Asked Questions about Marginal VaR Analysis — Agentic Doc-Driven Orchestrator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decompose VaR into marginal contributions from child nodes?

Marginal VaR decomposition calculates each child node's risk contribution to the parent VaR, computing relative shares and diversification metrics, then presenting the results with ASCII bar charts and donut charts for visual risk distribution.

What risk factors are supported for marginal VaR analysis?

Marginal VaR analysis supports FX, IR, EQ, CR, and CO risk factors using Historical Simulation VaR at 99% confidence with a 500-day lookback period to compute and visualize child node risk contributions.

How do I start marginal VaR analysis for a specific portfolio node?

Provide a parent node and an ISO date to start marginal VaR analysis, which queries VaR data for the parent and its immediate one-level children, then runs a self-check to ensure data completeness before computing risk contributions.

Does marginal VaR analysis work with multi-level portfolio hierarchies?

Marginal VaR analysis applies to a parent node with one-level immediate child nodes only, focusing on single-depth risk decomposition rather than multi-level portfolio hierarchy aggregation.

What is the best way to visualize risk contributions across different risk factors?

Visualizing risk contributions is best handled by generating ASCII bar charts and donut charts that illustrate each child's share of VaR and the overall risk distribution across FX, IR, EQ, CR, and CO risk factors.

What limitations exist when calculating VaR using Historical Simulation?

Historical Simulation VaR limitations include reliance on a 500-day lookback period and 99% confidence level, restricting analysis to one-level child nodes and five specific risk factor types without multi-level hierarchy aggregation.