← 返回 Skills 市场
ndtchan

Portfolio Analytics

作者 Nguyễn Đức Thành · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
32
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install portfolio-analytics
功能描述
Computes portfolio risk and exposure metrics before sizing and rebalance decisions.
使用说明 (SKILL.md)

Portfolio Analytics

Purpose

Compute quantitative portfolio risk analytics before sizing and rebalance decisions.

Scope

  • Holdings and weights.
  • Historical price/return series.
  • Optional benchmark.
  • Optional sector map.
  • Optional liquidity fields.

Non-goals

  • No automatic rebalance.
  • No absolute trade instructions.
  • No live data fetching.

Input contract

Required inputs:

  • HOLDINGS_CSV: rows with portfolio holdings and position weights or fields sufficient to compute weights.
  • PRICE_CSV: historical prices or returns for held symbols.

Optional inputs:

  • BENCHMARK_CSV: benchmark prices or returns for beta and relative-risk context.
  • SECTOR_MAP_CSV: symbol-to-sector mapping for sector exposure.
  • Liquidity fields: average daily value, average volume, free float, or similar liquidity context when available.

Execution workflow

  1. Validate input files, required columns, date coverage, and symbol coverage.
  2. Run scripts/analyze_portfolio.py with explicit holdings, price history, and optional benchmark or sector inputs.
  3. Inspect metrics for risk level, concentration, correlation, benchmark sensitivity, and data limitations.
  4. Prepare a handoff bundle for downstream sizing, rebalance, or risk-management review.

Required output format

  1. Portfolio Metrics

    • Total portfolio value or normalized weight base, number of holdings, volatility, annualized return when supported, max drawdown, and risk-adjusted metrics when supported.
  2. Benchmark Metrics

    • Benchmark volatility, benchmark drawdown, portfolio beta, tracking error, and relative return when benchmark data exists.
  3. Correlation Summary

    • Average pairwise correlation, highest correlated pairs, and diversification observations.
  4. Concentration Risk

    • Top positions, top-position weight, top-five weight, Herfindahl-Hirschman Index, and concentration warnings.
  5. Sector Exposure

    • Sector weights and sector concentration when sector mapping exists.
  6. Top Risk Contributors

    • Holdings with the largest estimated contribution to portfolio volatility or drawdown risk.
  7. Confidence and Data Gaps

    • Confidence level, missing inputs, stale data, short history, incomplete holdings, missing sector data, missing liquidity data, or missing benchmark data.
  8. Handoff Bundle

    • Include the exact marker fields listed in Handoff bundle.

Shared confidence rubric

  • High: holdings are complete, weights reconcile, price history is long enough for the stated horizon, benchmark is available when beta or relative risk is discussed, and sector/liquidity coverage is broad.
  • Medium: holdings and prices are usable, but one major input is partial, such as benchmark availability, sector mapping, liquidity coverage, or price-history length.
  • Low: holdings are incomplete, weights do not reconcile, price history is short, benchmark is missing for beta-sensitive claims, or sector/liquidity coverage is sparse.

Guardrails

  • Do not infer precise beta without benchmark data.
  • Downgrade confidence for short price history or thin symbol coverage.
  • Treat analytics as context for sizing, rebalance, and risk-management decisions, not as commands.

Handoff bundle

Include these exact marker fields:

  • as_of_date
  • holdings
  • weights
  • portfolio_metrics
  • benchmark_metrics
  • correlation_summary
  • concentration_risk
  • sector_exposure
  • top_risk_contributors
  • confidence
  • data_gaps

Trigger examples

  • "Analyze this portfolio's volatility, drawdown, and concentration before I resize positions."
  • "Compute portfolio beta and sector exposure using these holdings and benchmark files."
  • "Review my current holdings for correlation, top risk contributors, and data gaps."
能力标签
crypto
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install portfolio-analytics
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /portfolio-analytics 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of portfolio-analytics skill. - Computes portfolio risk and exposure metrics using local CSVs for holdings and price history. - Supports optional inputs for benchmark, sector mapping, and liquidity analysis. - Outputs detailed portfolio, benchmark, correlation, concentration, sector exposure, risk contributor, and data confidence metrics. - Clearly defines required input structure, output contract, guardrails, and handoff bundle for downstream use. - Designed to assist in pre-sizing and rebalance analysis—not for executing trades or fetching live data.
元数据
Slug portfolio-analytics
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Portfolio Analytics 是什么?

Computes portfolio risk and exposure metrics before sizing and rebalance decisions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Portfolio Analytics?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install portfolio-analytics」即可一键安装,无需额外配置。

Portfolio Analytics 是免费的吗?

是的,Portfolio Analytics 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Portfolio Analytics 支持哪些平台?

Portfolio Analytics 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Portfolio Analytics?

由 Nguyễn Đức Thành(@ndtchan)开发并维护,当前版本 v1.0.0。

💬 留言讨论