Portfolio
anthropics/claude-for-legal
Track the IP portfolio — registrations, renewals, maintenance fees, and use declarations.
Calculate Value at Risk to estimate maximum portfolio loss at a given confidence level.
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install asgard-ai-platform/skills algo-risk-var --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/algo-risk-var .claude/skills/algo-risk-var && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .claude/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-varType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install asgard-ai-platform/skills algo-risk-var --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/algo-risk-var .agents/skills/algo-risk-var && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .agents/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install asgard-ai-platform/skills algo-risk-var --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/algo-risk-var .cursor/skills/algo-risk-var && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .cursor/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/asgard-ai-platform/skills.git --path algo-risk-var--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install asgard-ai-platform/skills algo-risk-var --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/algo-risk-var .gemini/skills/algo-risk-var && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .gemini/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install asgard-ai-platform/skills algo-risk-varInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/algo-risk-var .github/skills/algo-risk-var && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .github/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add asgard-ai-platform/skills --skill algo-risk-var -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install asgard-ai-platform/skills algo-risk-var --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/algo-risk-var .opencode/skills/algo-risk-var && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "algo-risk-var" agent skill from https://github.com/asgard-ai-platform/skills/tree/main/algo-risk-var into .opencode/skills/algo-risk-var/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "algo-risk-var", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
algo-risk-varCalculate Value at Risk to estimate maximum portfolio loss at a given confidence level.
Algo Risk Var is an agent skill from asgard-ai-platform/skills. Calculate Value at Risk to estimate maximum portfolio loss at a given confidence level. Use this skill when the user needs to quantify downside risk, set risk limits, or report regulatory risk measures — even if they say 'worst case loss', 'portfolio risk', or 'how much could we lose'.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `examples/sample_scenario.md`, `references/backtesting.md` and `references/expected-shortfall.md`).
The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Algo Risk Var loads about 1.2k tokens when it runs, and up to ~5.5k if it reads all its reference files. Until then it costs about 75 tokens; SKILL.md has 480 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 480 words, ~1,187 tokens.
.claude/skills/algo-risk-var/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.VaR estimates the maximum loss a portfolio can suffer over a given time horizon at a specified confidence level. Example: "95% 1-day VaR of $1M" means there's a 5% chance of losing more than $1M in one day. Three methods: parametric (normal), historical simulation, Monte Carlo.
Trigger conditions:
When NOT to use:
IRON LAW: VaR Does NOT Tell You How Bad It Gets BEYOND the Threshold
VaR says "95% of the time, losses won't exceed $X." It says NOTHING
about the 5% worst case. A portfolio can have low VaR but catastrophic
tail losses. Always supplement with Expected Shortfall (CVaR) which
measures the average loss in the tail.Collect: portfolio positions, historical returns (min 250 days for 1Y), confidence level (typically 95% or 99%), time horizon (1 day or 10 days). Gate: Sufficient return history, positions valued at current market.
Parametric VaR: VaR = -μ + zα × σ (assumes normal returns). For portfolio: use covariance matrix for portfolio σ.
Historical Simulation: 1. Compute daily P&L from historical returns. 2. Sort P&L ascending. 3. VaR = the (1-α) percentile loss.
Monte Carlo: 1. Fit return distribution (or use historical). 2. Simulate 10,000+ portfolio paths. 3. VaR = (1-α) percentile of simulated losses.
Backtest: count how often actual losses exceed VaR over the past year. At 95% confidence, exceedances should be ~5%. Use Kupiec or Christoffersen test. Gate: Backtest exceedance rate within acceptable bounds.
Return VaR estimate with backtest results.
{
"var": {"amount": 1250000, "confidence": 0.95, "horizon_days": 1, "currency": "TWD"},
"cvar": {"amount": 1800000},
"backtest": {"exceedances": 13, "expected": 12.5, "days_tested": 250, "pass": true},
"metadata": {"method": "historical_simulation", "portfolio_value": 50000000}
}Input: Portfolio value = $1,000,000. Last 20 sorted daily returns (descending loss):
[-0.050, -0.040, -0.035, -0.030, -0.025, -0.020, -0.015, -0.010, -0.005, 0.000,
0.005, 0.010, 0.015, 0.020, 0.025, 0.030, 0.035, 0.040, 0.045, 0.050]Confidence = 95%, horizon = 1 day.
Expected (Historical Simulation):
Verify: VaR ≤ CVaR always (tail loss ≥ threshold loss). Count of losses > VaR should be ≤ 5% of observations (1 of 20).
| Input | Expected | Why |
|---|---|---|
| Normal market conditions | VaR looks adequate | But misses tail events |
| 2008-like crisis in history | Higher VaR from historical method | Captures fat tails if crisis is in window |
| Very short history (30 days) | Unreliable VaR | Insufficient data for tail estimation |
references/expected-shortfall.mdreferences/backtesting.md© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in algo-risk-var of asgard-ai-platform/skills.
Open the folder on GitHubat commit 4e7f4f8
Algo Risk Var next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Algo Risk Var this skillasgard-ai-platform/skills | 242 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Portfolioanthropics/claude-for-legal | 9.6k | 3 repos | ~5.3k | Automated safety check: Pass | Apache-2.0 | |
| Trader Portfolioruvnet/ruflo | 74k | — | ~475 | Automated safety check: Notes | MIT | |
| Portfolio Risk Metricswshobson/agents | 40k | 12 repos | ~502 | Automated safety check: Pass | MIT | |
| Task Effort EstimatorDonchitos/Claude-Code-Game-Studios | 26k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Progressive Estimationsickn33/agentic-awesome-skills | 47k | 2 repos | ~863 | Automated safety check: Pass | MIT |
anthropics/claude-for-legal
Track the IP portfolio — registrations, renewals, maintenance fees, and use declarations.
ruvnet/ruflo
Optimize portfolio allocation using npx neural-trader mean-variance engine with risk constraints and rebalancing plan
wshobson/agents
Covers portfolio risk measurement with VaR, CVaR, Sharpe, Sortino and drawdown, plus guidance on limits, stress tests and tail risk.
Donchitos/Claude-Code-Game-Studios
Estimates the effort for a game development task from code complexity, scope, risk and past sprint data, returning a range with a confidence level.
sickn33/agentic-awesome-skills
Estimate AI-assisted and hybrid human+agent development work with research-backed PERT statistics and calibration feedback loops
xbtlin/ai-berkshire
Reviews an investment portfolio holding by holding and as a whole: position health, concentration, overlap and opportunity cost, from a holdings list or saved portfolio file.
asgard-ai-platform/skills
Implement BM25 ranking function for e-commerce product search relevance scoring.
asgard-ai-platform/skills
Calculate Cpk process capability index to assess whether a process meets specification requirements.
asgard-ai-platform/skills
Calculate price elasticity of demand to quantify how price changes affect sales volume.
asgard-ai-platform/skills
Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.
asgard-ai-platform/skills
Implement Elo rating system to rank items or players from pairwise comparison outcomes.
asgard-ai-platform/skills
Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.
Calculate Value at Risk to estimate maximum portfolio loss at a given confidence level. Algo Risk Var is an agent skill from asgard-ai-platform/skills. Calculate Value at Risk to estimate maximum portfolio loss at a given confidence level.
Algo Risk Var fits situations like: the user needs to quantify downside risk; set risk limits; report regulatory risk measures — even if they say worst case loss; how much could we lose.
Run `npx skills add asgard-ai-platform/skills --skill algo-risk-var -a claude-code`. Or copy the skill folder (algo-risk-var in asgard-ai-platform/skills) into .claude/skills/algo-risk-var in your project. Claude Code loads it when a task matches its description.
Run `npx skills add asgard-ai-platform/skills --skill algo-risk-var -a codex`. Or copy the skill folder (algo-risk-var in asgard-ai-platform/skills) into .agents/skills/algo-risk-var in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill algo-risk-var -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algo-risk-var, .gemini/skills/algo-risk-var, .github/skills/algo-risk-var and .opencode/skills/algo-risk-var in your project.
SKILL.md names no scripts, command-line tools or credentials: Algo Risk Var is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Algo Risk Var is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Algo Risk Var: Portfolio (anthropics/claude-for-legal, 9.6k stars), Trader Portfolio (ruvnet/ruflo, 74k stars), Portfolio Risk Metrics (wshobson/agents, 40k stars) and Task Effort Estimator (Donchitos/Claude-Code-Game-Studios, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.
Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.