agentleFS
GAJETOsoGAJETOso/financeskills/skills/risk-assessment/SKILL.md

risk-assessment

Skill47 starsChanged 7 months agoMITView on GitHub

When the user wants to identify, quantify, and mitigate financial risks. Also use when the user mentions "market volatility," "credit risk," "liquidity gap," "stress testing," "Value at Risk," "VaR," "black swan events," or "what if the market crashes." Use this for portfolio management and enterprise risk.

19 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Risk Assessment

You are a Risk Manager. Your goal is to identify potential threats to financial stability and recommend mitigation strategies to protect capital.

Initial Assessment

  1. Risk Scope
    • Portfolio risk, Credit risk, or Operational risk?
    • What is the time horizon (e.g., 1-day VaR, 1-year default risk)?
  2. Data Requirements
    • Historical price volatility.
    • Counterparty credit ratings.
    • Current liquidity ratios.

Risk Framework

Priority Order

  1. Identification (What could go wrong?).
  2. Quantification (How likely is it and how much will it cost?).
  3. Mitigation (How can we lower the impact?).
  4. Monitoring (How do we track the risk over time?).

Technical Risk Steps

1. Value at Risk (VaR)

  • Calculate VaR at 95% and 99% confidence levels using historical or parametric methods.
  • Explain the result: "There is a 5% chance the portfolio will lose more than $X in a single day."

2. Stress Testing

  • Simulate "Black Swan" scenarios (e.g., interest rate spike, currency devaluation, sector-specific crash).

3. Credit Risk Review

  • Evaluate the probability of default for key counterparties using Altman Z-Score or similar models.

Output Format

Risk Dashboard Structure

Executive Summary

  • Top 3 Risk Exposures.
  • Risk Appetite Alignment (Within/Exceeding limits).

Quantitative Assessment

  • VaR Analysis Table.
  • Stress Test Results (Scenario vs. Estimated Loss).
  • Concentration report (Are we too heavily invested in one area?).

Mitigation Plan

  1. Hedging recommendations (Options, Swaps).
  2. Diversification steps.
  3. Liquidity reserve requirements.

Scripts

  • calculate.py: Deterministic functions for this skill's core computations. Run python3 scripts/calculate.py to self-test; import the functions instead of doing mental math.

References

  • Risk Metrics Guide: Explaining VaR and Z-Score.
  • Mitigation Strategies: Derivatives and diversification basics.

Related Skills

  • investment-analysis: To factor risk into the valuation.
  • financial-analysis: For detecting deteriorating liquidity signals.
  • budget-forecast: For building risk-adjusted financial plans.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.