Fund Analysis Skill

Claude Code Skill for analyzing fund portfolio data

Features

📊 Auto-classification
Identifies region and strategy from fund names
📈 Visual Analysis
Pie charts, bar charts, radar charts, heatmaps
📝 Detailed Reports
Comprehensive Markdown analysis reports
📑 PDF Export
PDF reports with embedded charts

Supported Classifications

Region Classification

ClassificationDescription
A-Share/DomesticA-share market funds
Overseas (QDII)Offshore equity funds
HK Stock ConnectHK Stock Connect eligible funds
Bond FundsBond funds
Gold/CommodityGold ETFs, commodity funds
Money MarketMoney market funds

Strategy Classification

ClassificationDescription
IndexIndex funds, ETF Connect
Bond StrategyBond funds
Active EquityActively managed equity funds
Money MarketMoney market funds
Dividend/High YieldHigh dividend, dividend strategies
QuantitativeQuantitative investment funds
Tech/GrowthTech, growth themes

Installation

1. Install Dependencies

pip install pandas matplotlib seaborn numpy reportlab jieba

2. Add Skill to Claude Code

Copy project files to your Claude Code skills directory:

Usage

Via Claude Code Chat

Please analyze my fund portfolio: /path/to/your/fund_data.xlsx

Command Line

python fund_analysis.py <Excel file path> [output directory]

Output Files

FilenameDescription
Fund Analysis Report.mdMarkdown analysis report
Fund Analysis Report.pdfPDF complete report
fund_distribution_charts.pngRegion and strategy charts
fund_correlation_heatmap.pngCorrelation heatmap
fund_radar_chart.pngRadar chart
fund_top_holdings.pngTop 15 holdings

Data Format

Excel file exported from 基金E账户 APP with fields:

Dependencies

License

MIT License

Contributing

Issues and Pull Requests are welcome!

功能特性

📊 自动分类
根据基金名称自动识别区域和策略类型
📈 可视化分析
生成饼图、条形图、雷达图、热力图
📝 详细报告
输出Markdown格式完整分析报告
📑 PDF导出
生成带嵌入式图表的PDF报告

支持的分类

区域分类

分类说明
A股/国内A股市场基金
海外股票(QDII)境外股票型基金
港股通港股通标的基金
债券基金债券型基金
黄金/商品黄金ETF、商品基金
货币基金货币市场基金

策略分类

分类说明
指数型指数基金、ETF联接
债券策略债券型基金
主动股票主动管理股票基金
货币策略货币基金
红利/高股息高股息、红利策略
量化策略量化投资基金
科技/成长科技、成长主题

安装

1. 安装依赖

pip install pandas matplotlib seaborn numpy reportlab jieba

2. 添加Skill到Claude Code

将项目文件复制到你的 Claude Code skills 目录:

使用方法

通过Claude Code对话

请分析我的基金持仓文件:/path/to/your/fund_data.xlsx

命令行运行

python fund_analysis.py <Excel文件路径> [输出目录]

输出文件

文件名说明
基金持仓分析报告.mdMarkdown格式分析报告
基金持仓分析报告.pdfPDF格式完整报告
fund_distribution_charts.png区域和策略分布图
fund_correlation_heatmap.png相关性热力图
fund_radar_chart.png资产配置雷达图
fund_top_holdings.png前15大持仓图

数据格式

Excel文件需为基金E账户APP导出格式,包含以下字段:

依赖

License

MIT License

贡献

欢迎提交 Issue 和 Pull Request!