微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📉

专业级风险计量与压力测试工具箱

Risk Metrics Calculation · v1.0.0
专业技能 安全 B 级 作者 zhengxinjipai 公开目录收录
1.1k 下载 0 安装 4.2k 收藏 11 浏览

简介

专业级投资组合风险计算工具,涵盖VaR、CVaR、夏普比率、索提诺比率及回撤分析,适用于风险限额管理与监控系统构建。

原始描述

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or...

通过你的 Agent 添加

安装目录:risk-metrics-calculation/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/risk-metrics-calculation/
Codex CLI~/.codex/skills/risk-metrics-calculation/
DeepSeek Harness~/.agents/skills/risk-metrics-calculation/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: risk-metrics-calculation description: "Apply risk metrics calculation in reproducible local data workflows with version-aware APIs, explicit assumptions, and validation. Use when the user chooses risk metrics calculation or its strengths fit the task."

Risk Metrics Calculation

Use this Skill to produce a bounded, verifiable Risk Metrics Calculation outcome. Preserve the user's chosen stack, source material, and authorization boundaries.

Read the SandBase API map only when the task genuinely needs an external data source or generative model.

Workflow

  1. Inspect the available files, runtime, versions, inputs, and existing conventions before deciding what to change.
  2. Restate the requested outcome, constraints, acceptance checks, and any assumption that could change the result.
  3. Produce the smallest complete implementation, analysis, or artifact that satisfies those checks.
  4. Verify the real output with appropriate tests, previews, calculations, or source comparison; do not infer success from file creation alone.
  5. Return the deliverable, evidence of validation, material assumptions, and unresolved limitations.

Quality gates

  • Inspect shapes, types, units, missing values, sampling, target leakage, and train/test boundaries before modeling or transformation.
  • Pin or record relevant library versions, random seeds, parameters, and environment assumptions for reproducibility.
  • Validate against a baseline or independent calculation and report diagnostics, uncertainty, failure modes, and resource use.
  • Use user-provided or authorized data, preserve an audit trail, verify calculations independently, and label professional-review requirements; do not present the result as investment, accounting, or audit assurance.
  • Control look-ahead bias, survivorship bias, transaction costs, benchmark choice, and time alignment; keep hypothetical results clearly labeled.

SandBase boundary

Keep the core Risk Metrics Calculation work local. Use SandBase only for an explicitly requested external dataset or model inference step that is not part of the local analysis.

  1. Call sandbase_discover with a short capability query.
  2. Call sandbase_inspect for viable candidates and compare the live schema, coverage, limits, output, execution mode, and price.
  3. Prefer a dedicated tool or API the user already has. Send only the minimum necessary data.
  4. Before any paid call, show the endpoint, important arguments, current unit price, call count, and total estimate or uncertainty, then obtain confirmation.
  5. Use sandbase_account before an approved multi-call batch and call sandbase_run only with current schema-defined arguments.
  6. Poll asynchronous work with sandbase_run_get using the same run ID; never resubmit merely because it is pending.
  7. Use sandbase_runs only to recover status or reconcile observed cost.

If SandBase is unavailable, continue with local work and authorized sources when possible. Do not silently switch providers, fabricate external results, or claim a generation or retrieval succeeded.

Handoff

Provide the completed artifact or findings, concise reproduction steps, checks actually run, source or asset provenance, SandBase endpoint and run IDs when used, observed cost when available, and any follow-up that still requires user action.

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/sandbaseai/sandbase-skills

标签

risk-managementportfolio-analysisvar-cvardrawdown-analysissharpe-ratiostress-testingquantitative-financepythonpandasnumpy

同类 Skill