fund-risk-analyzer

fund-risk-analyzer is a skill for Claude Code, Codex from serejaris/kimi-skills. It costs 113 tokens per session (995 once invoked), scanned A, original, MIT.

A fund-analysis tool that reads net asset value (NAV) data from a CSV file and compares several ETFs or funds. It calculates annualized return, maximum drawdown, Sharpe ratio, and correlations between the funds.

In plain words
What is it for?
Use it to compare ETF or fund risk and returns, measure volatility and drawdowns, and create correlation charts or CSV/JSON reports from NAV data.
Why use it?
It removes the need to calculate common risk and performance measures manually from price-history data. It also shows whether funds tend to move together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare ETF or fund risk and returns, measure volatility and drawdowns, and create correlation charts or CSV/JSON reports from NAV data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serejaris/kimi-skills/fund-risk-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add serejaris/kimi-skills --skill fund-risk-analyzer
Clone the repo
git clone --depth 1 https://github.com/serejaris/kimi-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fund-risk-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/serejaris/kimi-skills/fund-risk-analyzer/github.svg)](https://agentmods.dev/skills/serejaris/kimi-skills/fund-risk-analyzer)
Your own site
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/fund-risk-analyzer"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/fund-risk-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fund-risk-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/fund-risk-analyzer"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/fund-risk-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.00995
Opus 5 $0.00056 $0.00498
Sonnet 5 $0.00023 $0.00199
Haiku 4.5 $0.00011 $0.00100

Measured 9d ago against content hash ba96943aa8fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fund-risk-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/etf_screener.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fund-risk-analyzer/SKILL.md · 96 lines

What it actually says

ETF Screener / ETF 多维对比工具

基于用户提供的净值(NAV)数据,对多只 ETF 进行多维度风险收益对比分析,自动计算年化收益率、最大回撤、夏普比率,并生成相关性矩阵。

Quick Start

基础对比

python scripts/etf_screener.py --input nav_data.csv

自定义无风险利率 + CSV 导出

python scripts/etf_screener.py --input nav_data.csv --risk-free 0.03 --output report.csv

JSON 输出(便于程序化处理)

python scripts/etf_screener.py --input nav_data.csv --json

输入数据格式

CSV 文件,第一列为日期,后续列为各 ETF 的净值:

date,沪深300ETF,中证500ETF,纳指ETF
2023-01-03,1.0000,1.0000,1.0000
2023-01-04,1.0050,0.9980,1.0020
2023-01-05,1.0120,1.0010,1.0080
...
  • 日期列名不限,格式不限(仅用于标注区间)
  • ETF 列名即为对比报告中的名称
  • 缺失值用空白或 NaN 表示,会自动跳过

计算说明

年化收益率 (Annualized Return)

基于首尾净值计算总收益,再按交易日数年化:

Ann. Return = (NAV_end / NAV_start) ^ (trading_days / n_days) - 1

最大回撤 (Max Drawdown)

净值序列中从峰值到谷底的最大跌幅:

MDD = max( (peak - trough) / peak )

夏普比率 (Sharpe Ratio)

风险调整后收益指标:

Sharpe = (Annualized Return - Risk-Free Rate) / Annualized Volatility

年化波动率由日收益率标准差乘以 √(trading_days) 得出。

相关性矩阵 (Correlation Matrix)

基于日收益率计算 Pearson 相关系数,衡量 ETF 间的联动程度。相关系数接近 1 表示高度正相关,接近 0 表示不相关,接近 -1 表示负相关。

参数说明

参数 必填 默认值 说明
--input / -i - 净值 CSV 文件路径
--risk-free / -rf 0.02 年化无风险利率(如 0.03 表示 3%)
--trading-days 252 每年交易日数(A 股 252,美股 252)
--output / -o - 输出文件路径(.csv 或 .json)
--json false 以 JSON 格式输出到 stdout

使用场景

  • 对比多只 ETF 的风险收益特征,辅助资产配置决策
  • 分析 ETF 间的相关性,构建低相关的投资组合
  • 评估基金经理表现(夏普比率越高越好)
  • 回测不同资产在特定时间段的表现

注意事项

  • 本工具使用纯 Python 标准库,无需安装额外依赖
  • 净值数据需要足够的时间跨度(建议至少 60 个交易日)才能获得有意义的统计指标
  • 夏普比率受无风险利率假设影响,请根据实际市场环境调整 --risk-free 参数
  • 相关性矩阵需要至少 2 只 ETF 才能生成
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 96 lines · 113 tokens per session scan A ba96943aa8fc

Subscribe to this mod's changes

fund-risk-analyzer is a skill published in the GitHub repository serejaris/kimi-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 113 tokens to every session and 995 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

fiscaliste

Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…

romainsimon/paperasse · 302 tokens

controleur-fiscal

Inspecteur des finances publiques IA. Simule un contrôle fiscal DGFIP complet sur les comptes d'une entreprise française (SASU, EURL, SAS, SARL). Analyse le FEC, la liasse fiscale, les charges déduites, le compte courant d'associé, la TVA, l'IS selon 8 axes de vérification. Identifie les chefs de redressement…

romainsimon/paperasse · 136 tokens

commissaire-aux-comptes

Commissaire aux comptes IA pour l'audit des comptes annuels d'entreprises françaises. Applique la démarche NEP en 7 phases : prise de connaissance, contrôle du FEC, vérification du bilan, du compte de résultat, de la balance, de la liasse fiscale, et contrôles transversaux. Émet une opinion motivée sur la fiabilité…

romainsimon/paperasse · 123 tokens

invest-setup

A first-time setup workflow for openInvest, a system for tracking investments and running portfolio analysis.

longsizhuo/openInvest · 105 tokens

metengine-data-agent

Real-time smart money analytics API for Polymarket prediction markets, Hyperliquid perpetual futures, and Meteora Solana LP/AMM pools. 63 endpoints. Pay-per-request via x402 on Solana Mainnet USDC. No API keys.

sendaifun/skills · 57 tokens

meteora

Complete Meteora DeFi SDK suite for building liquidity pools, AMMs, bonding curves, vaults, token launches, and zap operations on Solana. Use when integrating DLMM, DAMM v2, DAMM v1, Dynamic Bonding Curves, Alpha Vaults, Zap, or Stake-for-Fee functionality.

sendaifun/skills · 69 tokens