calc_var

Calculate Value-at-Risk for a numeric node_id and as-of date.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill calc-var
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: calc_var
Source: https://github.com/SpecForgeAI/deepagent-bot/tree/main/skills/calc_var
Command: npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill calc-var

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Calculates Value-at-Risk (VaR) for a business node by requiring a numeric node_id and an as-of date, avoiding free-text desk names.

Core Features & Use Cases

  • Strict input validation: node_id must be numeric; otherwise the skill returns a MISSING_NODE_ID error.
  • Date parsing: supports yesterday, last friday, or explicit dates in common formats.
  • Output & error handling: writes results to the output/ directory and returns standardized JSON with status codes.
  • Use Case: calculate VaR for node 102393 on 2026-02-06.

Quick Start

Run the skill with a numeric node_id and an as-of date (for example, 102393 and 2026-02-06) to compute VaR and write outputs to output/.

Frequently Asked Questions about calc_var

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

FAQPage Schema
How do I calculate Value-at-Risk for a specific business node and date?

To calculate Value-at-Risk, you provide a numeric node_id and an as-of date. The system enforces strict input validation, computes the VaR, and writes the results to the output/ directory.

Can I use a desk name instead of a numeric ID for VaR calculation?

No, you cannot use a desk name for VaR calculation because the system requires a numeric node_id. You must resolve desk names to a numeric node_id using a resolver tool beforehand to avoid a MISSING_NODE_ID error.

What date formats does VaR validation support for as-of dates?

VaR validation supports explicit YYYY-MM-DD values and natural language phrases like yesterday or last friday. This strict date parsing ensures accurate historical risk measurement inputs.

How are VaR calculation errors handled when inputs are invalid?

When VaR calculation inputs are invalid, the system enforces a strict contract and returns standardized JSON with status codes. For example, a non-numeric node_id triggers a MISSING_NODE_ID error.

Why does my Value-at-Risk calculation return a MISSING_NODE_ID error?

Your Value-at-Risk calculation returns a MISSING_NODE_ID error because strict validation requires a numeric node_id. Free-text desk names are rejected, so you must resolve them to numbers first.

Where are Value-at-Risk results saved after a successful calculation?

Value-at-Risk results are saved to the output/ directory after a successful calculation. The system returns standardized JSON with status codes alongside writing these files.