Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

risk-manager风险经理

Agent Skill

risk-manager 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,721

周安装

109

GitHub Stars

公开资料未说明

下载量

881
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:risk-manager(风险经理)
来源仓库:https://github.com/finskills/risk-manager
安装命令:
openclaw skills install risk-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install risk-manager

简介

使用来自 Finskills API 的历史和实时数据计算投资组合风险指标,包括 VaR、夏普比率和凯利准则。

SKILL.md

name
Risk Manager
version
1.0.2
description
Compute portfolio risk metrics including VaR, Sharpe ratio, and Kelly criterion using historical and real-time data from the Finskills API.
author
finskills
metadata
openclaw
requires
env
primaryEnv
FINSKILLS_API_KEY
homepage
https://github.com/finskills/risk-manager

Risk Manager

Quantify and manage portfolio risk using historical volatility, drawdown analysis, correlation metrics, position sizing frameworks, and macro risk factors sourced from the Finskills API. Outputs a structured risk dashboard with actionable hedging and position sizing recommendations.


Setup

API Key requiredRegister at https://finskills.net to get your free key. Header: X-API-Key: <your_api_key>

Get your API key: Register at https://finskills.net — free tier available, Pro plan unlocks real-time quotes, history, and financials.

When to Activate This Skill

Activate when the user:

  • Provides a portfolio and asks "how risky is this?"
  • Wants to size a new position using Kelly Criterion or % risk rules
  • Asks about maximum drawdown risk for their portfolio
  • Wants Value at Risk (VaR) estimate
  • Asks how to hedge a portfolio against a market downturn
  • Looks for stop-loss levels or risk budgeting advice

Required Information

  1. Portfolio holdings: ticker + shares (or weights) for risk assessment
  2. New position sizing question: ticker, account size, max loss tolerance — for position sizing
  3. Risk framework preference: Kelly / Fixed % / VaR-based (default: Fixed %)
  4. Time horizon: Daily / Weekly / Monthly risk measurement

Data Retrieval — Finskills API Calls

1. Historical Daily Returns for Risk Calculation

For each portfolio holding:

GET https://finskills.net/v1/stocks/history/{SYMBOL}?period=1y&interval=1d

Extract: closing prices → compute daily log returns (ln(P_t/P_{t-1}))

2. Market Breadth (Systemic Risk Context)

GET https://finskills.net/v1/free/market/breadth

Extract: advance/decline ratio, % stocks above 200MA, new highs vs new lows → gauge market risk-on/off condition

3. Benchmark Performance

GET https://finskills.net/v1/stocks/history/SPY?period=1y&interval=1d

Extract: SPY daily returns for Beta and correlation calculation

4. US Treasury Risk-Free Rate

GET https://finskills.net/v1/free/macro/treasury-rates

Extract: 3-month and 10-year yield for risk-free rate in Sharpe Ratio calculation

5. Short Volume (Individual Stock Risk Signal)

For high-concentration positions:

GET https://finskills.net/v1/free/market/short-volume/{SYMBOL}

Extract: short volume ratio (short vol / total vol) — high short ratio = elevated downside risk


Analysis Workflow

Step 1 — Individual Position Risk Metrics

For each holding (using 252 trading days of daily returns):

Daily Volatility    = std(daily_returns)
Annual Volatility   = daily_vol × √252
Daily VaR (95%)     = -1.645 × daily_vol × position_value
Daily VaR (99%)     = -2.326 × daily_vol × position_value
Max Drawdown        = max(cummax(prices) - prices) / cummax(prices)
Sharpe Ratio        = (Ann.Return - risk_free_rate) / annual_vol

Step 2 — Portfolio-Level Risk Metrics

Portfolio Variance  = Σ_i Σ_j (w_i × w_j × cov(r_i, r_j))
Portfolio Volatility = √(Portfolio Variance) × √252
Portfolio VaR(95%)  = -1.645 × daily_portfolio_vol × total_portfolio_value
Portfolio Beta      = Σ_i (w_i × cov(r_i, r_SPY) / var(r_SPY))
Portfolio Sharpe    = (Portfolio Annual Return - rf) / Portfolio Annual Volatility

Correlation matrix (simplified for 4 or fewer positions):

  • Show pairwise correlations between holdings
  • Flag highly correlated pairs (r > 0.75): diversification benefit is reduced

Step 3 — Risk Classification

Assign each metric to a risk tier:

MetricLow RiskMedium RiskHigh Risk
Portfolio Annual Vol< 12%12–25%> 25%
Portfolio Beta< 0.80.8–1.3> 1.3
Max Drawdown< 15%15–30%> 30%
Largest Position< 15%15–25%> 25%
VaR (95%, 1D)< 1%1–2%> 2%

Step 4 — Position Sizing Recommendations

For a new trade, calculate using Fixed Fractional method (default):

Max Risk Per Trade:  user-specified % of account (common: 1–2%)
Stop Loss Distance:  entry_price - stop_price
Position Size:       (Account × Risk%) / Stop Loss Distance
Max Shares:          min(Position Size, account × 20%)  [never > 20% allocation]

Kelly Criterion (advanced, use when win_rate and win/loss ratio are known):

Kelly %  = win_rate - (1 - win_rate) / (avg_win / avg_loss)
F*       = Kelly % × 0.5  [half-Kelly for safety]
Position = F* × account_value / entry_price

Rule of thumb safety caps:

  • Single stock: Max 20% of portfolio
  • Single sector: Max 35% of portfolio
  • High-beta stocks (β > 1.5): Reduce position by 20–30%

Step 5 — Hedging Strategies

Based on portfolio Beta and market risk context (market breadth data):

Portfolio BetaMarket ConditionHedge Recommendation
> 1.3Market breadth weakeningBuy SPY puts (5–10% notional hedge)
> 1.3Normal marketConsider collar or reduce position in top beta names
0.8–1.3Market breadth weakeningAdd 5% cash or defensive rotation
< 0.8AnyPortfolio already defensive; monitor for opportunity

Common hedge instruments:

  • SPY puts (broad market hedge)
  • QQQ puts (tech-heavy portfolio hedge)
  • VXX or UVXY (volatility spike hedge — only for short-term, decay is severe)
  • TLT (flight-to-quality hedge in recession scenarios)
  • GLD (inflation/tail risk hedge)

Output Format

╔══════════════════════════════════════════════════════╗
║      PORTFOLIO RISK DASHBOARD  —  {DATE}            ║
╚══════════════════════════════════════════════════════╝

📊 PORTFOLIO RISK SUMMARY
  Annual Volatility:  {%}    Risk Level: {Low/Medium/High}
  Portfolio Beta:     {x}    vs. S&P 500
  Sharpe Ratio:       {x}    ({Good/Adequate/Poor} risk-adjusted return)
  Max Drawdown (1Y):  -{%}
  VaR (95%, 1-Day):   -${amount} ({%} of portfolio)

📋 POSITION RISK BREAKDOWN
  Ticker  Weight  Ann.Vol  Beta  VaR(1D,95%)  MaxDD(1Y)
  AAPL    18.4%   22.1%    1.12  -$852        -28.3%
  MSFT    24.2%   19.8%    0.98  -$1,104      -24.1%
  ...

🔗 CORRELATION MATRIX
  [Pairwise correlations between holdings]
  High correlation pairs: {Ticker A & Ticker B: r={value}} ⚠️

⚠️ RISK FLAGS
  🚨 {Ticker} is {%} of portfolio — exceeds 20% concentration threshold
  ⚠️  {Sector} exposure at {%} — elevated sector risk
  ⚠️  Portfolio beta {x} — above 1.2 threshold in current market

📐 POSITION SIZING GUIDE (for new positions)
  Account Size:    ${value}
  Risk Per Trade:  {%} = ${dollar_amount}
  Example Entry:   {TICKER} at ${price}, Stop at ${stop}
  Suggested Size:  {shares} shares (${value} = {%} of account)

🛡️ HEDGING RECOMMENDATIONS
  Current Portfolio Beta: {x}
  Market Breadth Status:  {Risk-On / Neutral / Risk-Off}
  Recommendation:         {hedge action or "No hedge needed"}
  
  If hedging: {specific instrument, quantity, rationale}

📰 MARKET RISK CONTEXT
  Advance/Decline Ratio: {x}
  % Stocks > 200MA:      {%}
  Short Interest Signal:  {Low/Elevated for key positions}

Limitations

  • Historical volatility and correlation are backward-looking; future risk may differ.
  • VaR assumes normally distributed returns; tail events (crashes) are underestimated.
  • Correlation estimates become less reliable with fewer than 60 data points.
  • This skill does not account for leverage, margin calls, or options gamma risk.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.57%
按下载量换算683

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills