risk-management
- Repo stars 39
- Author updated Live
- Author repo awesome-omni-skill
- Domain
- AI · finance · risk-management · quantitative-analysis
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 94 / 100 · audit passed
- Author / version / license
- @diegosouzapw · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Required · Vendor-specific
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- Python
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
---
name: risk-management
description: Manages financial risks through quantitative analysis, modeling, and mitigation strategies. This…
category: ai
runtime: Python
---
# risk-management output preview
## PART A: Task fit
- Use case: Manages financial risks through quantitative analysis, modeling, and mitigation strategies. This skill enables quantitative analysis, modeling, and mitigation of financial risks. It processes data to calculate metrics like Value at Risk (VaR), stress testing, and suggests strategies to reduce exposure, such as hedging or diversification. requires Vendor-s….
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Purpose / When to Use / Key Capabilities” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Manages financial risks through quantitative analysis, modeling, and mitigation strategies. This skill enables quantitative analysis, modeling, and mitigation of financial risks. It processes data to calculate metrics like Value at Risk (VaR), stress testing, and suggests strategies to reduce exposure, such as hedging or diversification. requires Vendor-s…”.
- **02** When the source has headings, the agent prioritizes “Purpose / When to Use / Key Capabilities” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; may access external network resources; requires Vendor-specific API keys.
## Running Rules
- read files, write/modify files; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Purpose / When to Use / Key Capabilities”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: risk-management
description: Manages financial risks through quantitative analysis, modeling, and mitigation strategies. This…
category: ai
source: diegosouzapw/awesome-omni-skill
---
# risk-management
## When to use
- Manages financial risks through quantitative analysis, modeling, and mitigation strategies. This skill enables quantit…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Purpose / When to Use / Key Capabilities” and keep inference separate from source facts.
- read files, write/modify files; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "risk-management" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Purpose / When to Use / Key Capabilities
rules -> SKILL.md triggers / order / output contract
runtime -> Python | read files, write/modify files | may access external network resources
guardrails -> requires Vendor-specific API keys + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} risk-management
Purpose
This skill enables quantitative analysis, modeling, and mitigation of financial risks. It processes data to calculate metrics like Value at Risk (VaR), stress testing, and suggests strategies to reduce exposure, such as hedging or diversification.
When to Use
Use this skill for scenarios involving financial uncertainty, like portfolio risk assessment, credit risk evaluation, or market volatility analysis. Apply it when you need data-driven insights to comply with regulations (e.g., Basel III) or optimize investment decisions.
Key Capabilities
- Perform VaR calculations using historical or Monte Carlo simulations.
- Build risk models for market, credit, or operational risks with inputs like asset prices or default probabilities.
- Generate mitigation strategies, such as recommending stop-loss levels or portfolio rebalancing based on risk thresholds.
- Integrate with data sources for real-time analysis, supporting formats like CSV, JSON, or API feeds.
- Output results in structured formats, including reports or JSON for further processing.
Usage Patterns
Always initialize with authentication via $OPENCLAW_API_KEY. For CLI, pipe data inputs directly; for API, use asynchronous calls for large datasets. Start by loading configuration files (e.g., YAML for model parameters). Common pattern: Analyze risk -> Review outputs -> Apply mitigation. For code integration, import the SDK and wrap calls in try-except blocks. Example 1: Analyze a stock portfolio's market risk by providing historical prices. Example 2: Evaluate credit risk for a loan portfolio and generate mitigation recommendations.
Common Commands/API
Use the OpenClaw CLI for quick tasks or the REST API for programmatic access. Authentication requires setting $OPENCLAW_API_KEY in your environment.
CLI Command:
openclaw risk analyze --type market --model var --input portfolio.csv --confidence 95
This calculates 95% VaR for market risk; output is a JSON file with metrics.API Endpoint: POST https://api.openclaw.ai/v1/risk/analyze
Body:{"type": "credit", "data": {"loans": [{"amount": 100000, "rating": "A"}]}, "model": "default-prob"}
Response: JSON object with risk score and strategies, e.g.,{"var": 5000, "mitigation": ["increase collateral"]}.Code Snippet (Python):
import openclaw openclaw.set_key(os.environ['OPENCLAW_API_KEY']) result = openclaw.risk.analyze(type='operational', data={'events': [100, 200]}, model='monte-carlo') print(result['mitigation'])Config Format: YAML for custom models, e.g.,
model: type: var parameters: window: 252 # trading days confidence: 0.95
Integration Notes
Integrate by setting $OPENCLAW_API_KEY and using the SDK in your application. For web apps, handle webhooks for asynchronous results (e.g., POST to your endpoint on completion). Connect to data providers like Bloomberg via custom adapters; specify in config: {"data_source": "bloomberg", "api_endpoint": "https://api.bloomberg.com/data"}. Ensure compatibility with other OpenClaw skills by chaining outputs, e.g., pipe risk analysis results into a financial-analysis skill.
Error Handling
Always validate inputs before commands (e.g., check for required fields like --input). For API calls, catch HTTP errors: if status >= 400, retry up to 3 times with exponential backoff. Common errors: 401 (unauthorized – check $OPENCLAW_API_KEY), 400 (bad request – verify JSON schema), or 500 (server error – log and notify). In code, use:
try:
result = openclaw.risk.analyze(...)
except openclaw.APIError as e:
if e.status == 401:
print("Reauthenticate with $OPENCLAW_API_KEY")
else:
raise
Log all errors with timestamps and include debug flags, e.g., openclaw risk analyze --debug.
Graph Relationships
- Related to: financial-analysis (shares finance tag for combined data processing), portfolio-management (uses risk outputs for optimization).
- Connected via: quantitative-analysis (common modeling techniques), mitigation-strategies (links to compliance tools).
- Dependencies: Requires financial cluster skills for data input; provides outputs for decision-making skills.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review