Agent Skills › AojdevStudio/Finance-Guru › fin-guru-quant-analysis

fin-guru-quant-analysis

GitHub

提供股票或投资组合的量化分析能力,涵盖风险指标、动量、波动率、相关性、因子模型、回测及组合优化。适用于风险评估、统计比较、资产配置及策略验证场景。

.claude/skills/fin-guru-quant-analysis/SKILL.md AojdevStudio/Finance-Guru

Trigger Scenarios

询问持仓风险 需要风险或回报统计 比较标的风险 寻求最优配置 策略回测需求

Install

npx skills add AojdevStudio/Finance-Guru --skill fin-guru-quant-analysis -g -y
More Options

Non-standard path

npx skills add https://github.com/AojdevStudio/Finance-Guru/tree/main/.claude/skills/fin-guru-quant-analysis -g -y

Use without installing

npx skills use AojdevStudio/Finance-Guru@fin-guru-quant-analysis

指定 Agent (Claude Code)

npx skills add AojdevStudio/Finance-Guru --skill fin-guru-quant-analysis -a claude-code -g -y

安装 repo 全部 skill

npx skills add AojdevStudio/Finance-Guru --all -g -y

预览 repo 内 skill

npx skills add AojdevStudio/Finance-Guru --list

SKILL.md

Frontmatter
{
    "name": "fin-guru-quant-analysis",
    "description": "Quantitative analysis of tickers or the portfolio through the engine's calculators. Covers risk metrics (VaR, CVaR, Sharpe, Sortino, drawdown, beta), momentum, volatility regime, correlation, factor models, backtests, and portfolio optimization. Use when the owner asks how risky a holding is, wants risk or return statistics, compares tickers on risk, asks for an optimal allocation, or wants a strategy backtested. Not for news and catalysts (use fin-guru-research) or buy and sell decisions (use fin-guru-strategize)."
}

Quantitative Analysis Skill

Execute structured quantitative analysis workflows with statistical validation.

Capability probe

Before collecting external fundamentals or filings, follow the shared paid MCP capability probe. This workflow wants financial-datasets for normalized statements and filing data. If it is absent, state whether primary-source WebSearch can support the requested model with extra validation; otherwise stop and name the missing MCP and setup action.

Workflow Steps

  1. Plan — Define statistical modeling objectives, metrics, and assumptions
  2. Data Validation — Use data_validator_cli.py for statistical validity (outliers, gaps, splits)
  3. Risk Metrics — Use risk_metrics_cli.py for VaR/CVaR/Sharpe/Sortino/Drawdown (minimum 90 days)
  4. Momentum Analysis — Use momentum_cli.py for confluence analysis
  5. Volatility Metrics — Use volatility_cli.py for regime analysis
  6. Correlation Analysis — Use correlation_cli.py for diversification and covariance matrices
  7. Factor Analysis — Use factors_cli.py for Fama-French 3-factor, Carhart 4-factor models
  8. Strategy Validation — Use backtester_cli.py with transaction costs and realistic slippage
  9. Portfolio Optimization — Use optimizer_cli.py for mean-variance, risk parity, max Sharpe, Black-Litterman

CLI Commands

# Risk metrics
uv run python -m src.analysis.risk_metrics_cli TICKER --days 252 --benchmark SPY --output json

# Momentum confluence
uv run python -m src.utils.momentum_cli TICKER --days 90 --output json

# Volatility regime
uv run python -m src.utils.volatility_cli TICKER --days 90 --output json

# Correlation matrix
uv run python -m src.analysis.correlation_cli TICKER1 TICKER2 --days 90 --output json

# Factor analysis
uv run python -m src.analysis.factors_cli TICKER --days 252 --benchmark SPY --output json

# Backtesting
uv run python -m src.strategies.backtester_cli TICKER --days 252 --strategy rsi --output json

# Portfolio optimization
uv run python -m src.strategies.optimizer_cli TICKERS --days 252 --method max_sharpe --output json

Output

Return the fin-guru-output-contract skill. In the Numbers table, give each metric its lookback window, such as Sharpe (252d). When fewer than 90 days of data exist, return the Blocked block from that skill instead of a statistic.

Requirements

  • Start with clear statistical plan and obtain consent before execution
  • Validate all assumptions against compliance policies
  • Apply robust methods with proper confidence intervals
  • All market data must be timestamped and verified against current date
  • Minimum 90 days of data for robust statistics

Version History

  • d6ceaea Current 2026-10-19 22:18

    重构技能描述以支持自动路由;统一输出格式规范并引入标准化输出契约;CLI命令增加JSON输出标志以确保测试合规。

  • ac43b09 2026-09-23 02:03

    新增付费MCP能力探测流程以规范数据源依赖;将CLI命令统一重构为模块运行模式(python -m),并更新文档以适配新的实例目录结构。

  • d13f5ab 2026-08-20 11:51

Same Skill Collection

.claude/skills/dividend-tracking/SKILL.md
.claude/skills/fin-core/SKILL.md
.claude/skills/fin-guru-checklist/SKILL.md
.claude/skills/fin-guru-compliance-review/SKILL.md
.claude/skills/fin-guru-create-doc/SKILL.md
.claude/skills/fin-guru-learner-profile/SKILL.md
.claude/skills/fin-guru-output-contract/SKILL.md
.claude/skills/fin-guru-research/SKILL.md
.claude/skills/fin-guru-strategize/SKILL.md
.claude/skills/FinanceReport/SKILL.md
.claude/skills/instance-onboarding/SKILL.md
.claude/skills/margin-management/SKILL.md
.claude/skills/MonteCarlo/SKILL.md
.claude/skills/PortfolioSyncing/SKILL.md
.claude/skills/retirement-syncing/SKILL.md
.claude/skills/TransactionSyncing/SKILL.md
.claude/skills/compliance-scan/SKILL.md

Metadata

Files
0
Version
d6ceaea
Hash
8787e82b
Indexed
2026-08-20 11:51

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-26 01:42
浙ICP备14020137号-1