← 返回 Skills 市场
240
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install aigc-risk-assessment
功能描述
Provides portfolio risk metrics, stress testing, and position management advice using VaR, CVaR, volatility, Beta, Sharpe ratio, and Kelly formula.
使用说明 (SKILL.md)
Risk Assessment - 风险评估工具
功能说明
提供投资组合风险评估和仓位管理建议。
核心功能
风险指标
- VaR (风险价值)
- CVaR (条件风险价值)
- 波动率
- Beta 系数
- 夏普比率
压力测试
- 历史情景模拟
- 极端市场测试
- 相关性断裂测试
仓位管理
- 凯利公式
- 风险平价
- 最大仓位建议
使用示例
from risk_assessment import calculate_var, position_suggestion
# 计算 VaR
var_result = calculate_var(stock_code="300308", confidence=0.95)
# 仓位建议
position = position_suggestion(
total_capital=1000000,
risk_tolerance=0.02,
stock_price=534.80,
stop_loss=0.10
)
安装依赖
pip install akshare pandas numpy scipy
安全使用建议
This appears to be a straightforward risk-assessment helper, but take a few precautions before installing and using it with real capital: (1) Fix or confirm packaging inconsistencies — skill.json exports "stress_test" though no such function exists; ask the author or remove the extra export. (2) Pin dependency versions (pip install akshare==<version>, pandas, numpy, scipy) and audit the akshare package — it performs network requests to fetch market data, so confirm its data sources and trustworthiness. (3) Run the skill in a sandbox or test environment first and validate outputs on known data. (4) Review akshare's upstream code or network behavior if you care about data exfiltration or privacy. (5) If you plan to integrate this with automated agents, consider limiting automatic invocation until you’ve vetted the package. These steps reduce risk; the package itself shows no signs of trying to access unrelated credentials or system resources.
功能分析
Type: OpenClaw Skill
Name: aigc-risk-assessment
Version: 1.0.0
The skill bundle provides standard financial risk assessment and position management tools. The Python code in risk_assessment.py uses legitimate libraries (akshare, pandas, scipy) to fetch public market data and perform statistical calculations without any signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name, description, SKILL.md, and the Python implementation align: the code uses akshare to fetch market data and computes VaR and simple position suggestions. Minor inconsistencies: skill.json exports include "stress_test" which is not implemented in risk_assessment.py, and SKILL.md example uses parameter name "stock_code" while the function signature uses "code". These look like packaging/documentation oversights rather than malicious behavior.
Instruction Scope
SKILL.md only instructs installing dependencies and calling the provided functions. The code performs network calls via the akshare library to fetch market data (expected for a market-risk tool). There are no instructions to read unrelated system files, environment variables, or transmit data to arbitrary endpoints beyond what akshare does.
Install Mechanism
No install spec is provided (instruction-only), and the README suggests pip installing akshare, pandas, numpy, scipy — reasonable for this function. Recommendation: pin dependency versions before installing; review akshare as a third-party package because it performs network I/O.
Credentials
The skill requests no environment variables, credentials, or config paths. That matches its stated purpose and is proportionate.
Persistence & Privilege
always is false and there is no code that modifies other skills or agent-wide configuration. The skill does not request elevated persistence or privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install aigc-risk-assessment - 安装完成后,直接呼叫该 Skill 的名称或使用
/aigc-risk-assessment触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - Risk assessment tools for financial investments
元数据
常见问题
AI Risk Assessment 是什么?
Provides portfolio risk metrics, stress testing, and position management advice using VaR, CVaR, volatility, Beta, Sharpe ratio, and Kelly formula. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 240 次。
如何安装 AI Risk Assessment?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install aigc-risk-assessment」即可一键安装,无需额外配置。
AI Risk Assessment 是免费的吗?
是的,AI Risk Assessment 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AI Risk Assessment 支持哪些平台?
AI Risk Assessment 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AI Risk Assessment?
由 GBABYZS(@gbabyzs)开发并维护,当前版本 v1.0.0。
推荐 Skills