Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .claude/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
Type 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.
skills CLI
$ npx skills add wentorai/research-plugins --skill risk-modeling-guide -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .agents/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
skills CLI
$ npx skills add wentorai/research-plugins --skill risk-modeling-guide -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .cursor/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add wentorai/research-plugins --skill risk-modeling-guide -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .gemini/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
Installs 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).
skills CLI
$ npx skills add wentorai/research-plugins --skill risk-modeling-guide -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .github/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
skills CLI
$ npx skills add wentorai/research-plugins --skill risk-modeling-guide -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "risk-modeling-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/finance/risk-modeling-guide into .opencode/skills/risk-modeling-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "risk-modeling-guide", 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.
Facts
Skill name
risk-modeling-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2.1k tokens
SKILL.md length
208 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT
At a glance
Financial risk modeling including VaR, stress testing, and credit risk
Tasks that involve Threat modeling
SKILL.md covers Market Risk: Value at Risk, Credit Risk Modeling, Stress Testing and Regulatory Framework, plus 1 more section
Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
Tasks that involve Load testing
What it does
Risk Modeling Guide is an agent skill from wentorai/research-plugins. Financial risk modeling including VaR, stress testing, and credit risk
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Threat modeling, Load testing and Banking and insurance. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
When your agent uses it
Tasks that involve Threat modeling
Tasks that involve Load testing
Tasks that involve Banking and insurance
Example prompts
“/risk-modeling-guide”
Requirements
Python 3
What it can do on your machine
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
Tool permissions
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.
Runs code
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Risk Modeling Guide loads about 2.1k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 208 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~23
When it runs· the whole SKILL.md, loaded when a task matches
~2.1k
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.
Safety
Auto-check passed
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.
Download SKILL.mdSave it as .claude/skills/risk-modeling-guide/SKILL.md (or your agent's skills folder).
name
risk-modeling-guide
description
Financial risk modeling including VaR, stress testing, and credit risk
Risk Modeling Guide
A skill for quantitative financial risk modeling, covering Value at Risk, Expected Shortfall, credit risk, stress testing, and Monte Carlo simulation methods. Essential for financial engineering research and regulatory risk analysis.
Market Risk: Value at Risk
VaR Methodologies
Method
Description
Pros
Cons
Historical simulation
Replay past returns
No distributional assumption
Assumes past repeats
Variance-covariance
Assume normal returns
Fast, analytical
Underestimates tail risk
Monte Carlo simulation
Simulate from fitted model
Flexible distributions
Computationally expensive
Filtered historical simulation
GARCH + historical innovations
Captures volatility clustering
More complex
Implementation
python
import numpy as np
import pandas as pd
from scipy.stats import norm, t as t_dist
def historical_var(returns: np.ndarray, confidence: float = 0.99,
horizon_days: int = 1) -> dict:
"""
Compute Value at Risk using historical simulation.
returns: array of daily log returns
confidence: confidence level (e.g., 0.99 for 99% VaR)
horizon_days: risk horizon in days
"""
# Scale returns to horizon
if horizon_days > 1:
# Rolling sum for overlapping returns
scaled_returns = pd.Series(returns).rolling(horizon_days).sum().dropna().values
else:
scaled_returns = returns
alpha = 1 - confidence
var = -np.percentile(scaled_returns, alpha * 100)
es = -np.mean(scaled_returns[scaled_returns <= -var])
return {
"VaR": round(var, 6),
"Expected_Shortfall": round(es, 6),
"confidence": confidence,
"horizon_days": horizon_days,
"n_observations": len(scaled_returns),
}
def parametric_var(returns: np.ndarray, confidence: float = 0.99,
distribution: str = "normal") -> dict:
"""
Parametric VaR assuming normal or Student-t distribution.
"""
mu = np.mean(returns)
sigma = np.std(returns, ddof=1)
if distribution == "normal":
z = norm.ppf(1 - confidence)
var = -(mu + sigma * z)
# Analytical ES for normal
es = -mu + sigma * norm.pdf(norm.ppf(1 - confidence)) / (1 - confidence)
elif distribution == "student-t":
# Fit Student-t
df, loc, scale = t_dist.fit(returns)
z = t_dist.ppf(1 - confidence, df)
var = -(loc + scale * z)
# ES for Student-t
t_pdf = t_dist.pdf(t_dist.ppf(1 - confidence, df), df)
es = -loc + scale * (t_pdf / (1 - confidence)) * ((df + z**2) / (df - 1))
else:
raise ValueError(f"Unknown distribution: {distribution}")
return {
"VaR": round(var, 6),
"Expected_Shortfall": round(es, 6),
"distribution": distribution,
"mean": round(mu, 6),
"std": round(sigma, 6),
}
Monte Carlo VaR
python
def monte_carlo_var(returns: np.ndarray, n_simulations: int = 100000,
confidence: float = 0.99,
horizon_days: int = 10) -> dict:
"""
Monte Carlo VaR using GBM (Geometric Brownian Motion).
"""
mu = np.mean(returns)
sigma = np.std(returns, ddof=1)
# Simulate daily returns for the horizon
rng = np.random.default_rng(42)
simulated = rng.normal(
mu * horizon_days,
sigma * np.sqrt(horizon_days),
size=n_simulations,
)
alpha = 1 - confidence
var = -np.percentile(simulated, alpha * 100)
es = -np.mean(simulated[simulated <= -var])
return {
"VaR": round(var, 6),
"Expected_Shortfall": round(es, 6),
"n_simulations": n_simulations,
"confidence": confidence,
"horizon_days": horizon_days,
}
Credit Risk Modeling
Probability of Default Estimation
python
from sklearn.linear_model import LogisticRegression
def build_pd_model(features: pd.DataFrame,
default_flag: pd.Series) -> dict:
"""
Build a Probability of Default (PD) model using logistic regression.
Common features: debt-to-income, credit utilization, payment history,
employment length, loan amount.
"""
model = LogisticRegression(max_iter=1000, class_weight="balanced")
model.fit(features, default_flag)
# Coefficient interpretation
coef_df = pd.DataFrame({
"feature": features.columns,
"coefficient": model.coef_[0],
"odds_ratio": np.exp(model.coef_[0]),
}).sort_values("coefficient", ascending=False)
# Model discrimination
from sklearn.metrics import roc_auc_score
pred_proba = model.predict_proba(features)[:, 1]
auc = roc_auc_score(default_flag, pred_proba)
return {
"auc": round(auc, 4),
"coefficients": coef_df.to_dict("records"),
"intercept": round(model.intercept_[0], 4),
}
Loss Given Default and EAD
python
def compute_expected_loss(pd_score: float, lgd: float,
ead: float) -> dict:
"""
Compute Expected Loss = PD x LGD x EAD.
pd_score: probability of default (0-1)
lgd: loss given default (0-1, fraction of exposure lost)
ead: exposure at default (dollar amount)
"""
el = pd_score * lgd * ead
return {
"PD": pd_score,
"LGD": lgd,
"EAD": ead,
"Expected_Loss": round(el, 2),
"Unexpected_Loss_99": round(el * 2.33 * np.sqrt(pd_score * (1 - pd_score)), 2),
}
Stress Testing
Scenario-Based Stress Tests
python
def run_stress_test(portfolio_returns: pd.DataFrame,
scenarios: dict[str, dict]) -> pd.DataFrame:
"""
Apply macroeconomic stress scenarios to a portfolio.
scenarios: {name: {factor: shock_value}} where factors are
macroeconomic variables (interest_rate, gdp_growth, unemployment, etc.)
"""
# Factor sensitivities (betas from regression)
# In practice, estimated via historical regression
factor_betas = {
"interest_rate": -0.15, # portfolio loses 15bp per 1% rate increase
"gdp_growth": 0.08, # gains 8bp per 1% GDP growth
"unemployment": -0.12, # loses 12bp per 1% unemployment increase
"equity_market": 0.45, # 45bp per 1% equity market move
"credit_spread": -0.25, # loses 25bp per 1% spread widening
}
results = []
for name, shocks in scenarios.items():
portfolio_impact = 0
for factor, shock in shocks.items():
beta = factor_betas.get(factor, 0)
portfolio_impact += beta * shock
results.append({
"scenario": name,
"portfolio_impact_pct": round(portfolio_impact * 100, 2),
"shocks": shocks,
})
return pd.DataFrame(results)
# Example scenarios
scenarios = {
"Mild Recession": {
"interest_rate": -0.5, "gdp_growth": -2.0,
"unemployment": 2.0, "equity_market": -15.0,
"credit_spread": 1.5,
},
"Severe Recession": {
"interest_rate": -1.0, "gdp_growth": -5.0,
"unemployment": 5.0, "equity_market": -40.0,
"credit_spread": 4.0,
},
"Rate Shock": {
"interest_rate": 3.0, "gdp_growth": -1.0,
"unemployment": 1.0, "equity_market": -10.0,
"credit_spread": 1.0,
},
}
Regulatory Framework
Basel III Capital Requirements
Risk Type
Measurement
Capital Charge
Market risk
FRTB (Fundamental Review of the Trading Book)
ES at 97.5%, stressed calibration
Credit risk
SA or IRB approach
PD, LGD, EAD based risk weights
Operational risk
Basic Indicator / Standardized
Business indicator x ILM
Liquidity risk
LCR and NSFR ratios
High-quality liquid assets buffer
Tools and Libraries
QuantLib (Python/C++): Derivatives pricing and risk analytics
riskfolio-lib: Portfolio risk and optimization in Python
arch (Python): GARCH models for volatility estimation
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
Risk Modeling Guide 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.
Risk Modeling Guide compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Risk Modeling Guide this skillwentorai/research-plugins
Benchmark indicators with BenchmarkDotNet in tools/performance — add Series, Buffer, Stream, and style-comparison benchmarks, spot-check one indicator against committed baselines, evaluate the full…
Financial risk modeling including VaR, stress testing, and credit risk. Risk Modeling Guide is an agent skill from wentorai/research-plugins.
When should I use Risk Modeling Guide?
Risk Modeling Guide fits situations like: tasks that involve Threat modeling; tasks that involve Load testing; tasks that involve Banking and insurance.
How do I install Risk Modeling Guide in Claude Code?
Run `npx skills add wentorai/research-plugins --skill risk-modeling-guide -a claude-code`. Or copy the skill folder (skills/domains/finance/risk-modeling-guide in wentorai/research-plugins) into .claude/skills/risk-modeling-guide in your project. Claude Code loads it when a task matches its description.
How do I install Risk Modeling Guide in Codex?
Run `npx skills add wentorai/research-plugins --skill risk-modeling-guide -a codex`. Or copy the skill folder (skills/domains/finance/risk-modeling-guide in wentorai/research-plugins) into .agents/skills/risk-modeling-guide in your project. Codex loads it when a task matches its description.
Can I use Risk Modeling Guide in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill risk-modeling-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/risk-modeling-guide, .gemini/skills/risk-modeling-guide, .github/skills/risk-modeling-guide and .opencode/skills/risk-modeling-guide in your project.
What does Risk Modeling Guide need to run?
SKILL.md names no scripts, command-line tools or credentials: Risk Modeling Guide is instructions for the agent only. Our summary lists: Python 3.
Does Risk Modeling Guide access the network?
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.
Is Risk Modeling Guide safe to install?
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.
What licence does Risk Modeling Guide use?
Risk Modeling Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Risk Modeling Guide use?
About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to Risk Modeling Guide?
Skills that share tags, products or a category with Risk Modeling Guide: Performance Testing (facioquo/stock-indicators-dotnet, 1.2k stars), Oracle Flashloan Analysis (quillai-network/quillshield_skills, 130 stars), Sync Project Docs (686f6c61/alfred-dev, 117 stars) and Operations (travisjneuman/.claude, 101 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Risk Modeling Guide?
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.