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
| Classification | Description |
| A-Share/Domestic | A-share market funds |
| Overseas (QDII) | Offshore equity funds |
| HK Stock Connect | HK Stock Connect eligible funds |
| Bond Funds | Bond funds |
| Gold/Commodity | Gold ETFs, commodity funds |
| Money Market | Money market funds |
Strategy Classification
| Classification | Description |
| Index | Index funds, ETF Connect |
| Bond Strategy | Bond funds |
| Active Equity | Actively managed equity funds |
| Money Market | Money market funds |
| Dividend/High Yield | High dividend, dividend strategies |
| Quantitative | Quantitative investment funds |
| Tech/Growth | Tech, 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:
- Windows:
C:\Users\<username>\.claude\skills\fund-analysis\
- macOS:
~/.claude/skills/fund-analysis/
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
| Filename | Description |
| Fund Analysis Report.md | Markdown analysis report |
| Fund Analysis Report.pdf | PDF complete report |
| fund_distribution_charts.png | Region and strategy charts |
| fund_correlation_heatmap.png | Correlation heatmap |
| fund_radar_chart.png | Radar chart |
| fund_top_holdings.png | Top 15 holdings |
Data Format
Excel file exported from 基金E账户 APP with fields:
- Fund Code
- Fund Name
- Fund Shares
- Net Asset Value (NAV)
- Market Value
- Fund Type
Dependencies
- Python 3.8+
- pandas, matplotlib, seaborn, numpy, reportlab, jieba
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 目录:
- Windows:
C:\Users\<用户名>\.claude\skills\fund-analysis\
- macOS:
~/.claude/skills/fund-analysis/
使用方法
通过Claude Code对话
请分析我的基金持仓文件:/path/to/your/fund_data.xlsx
命令行运行
python fund_analysis.py <Excel文件路径> [输出目录]
输出文件
| 文件名 | 说明 |
| 基金持仓分析报告.md | Markdown格式分析报告 |
| 基金持仓分析报告.pdf | PDF格式完整报告 |
| fund_distribution_charts.png | 区域和策略分布图 |
| fund_correlation_heatmap.png | 相关性热力图 |
| fund_radar_chart.png | 资产配置雷达图 |
| fund_top_holdings.png | 前15大持仓图 |
数据格式
Excel文件需为基金E账户APP导出格式,包含以下字段:
- 基金代码
- 基金名称
- 基金份额
- 单位净值
- 资产市值
- 基金类型
依赖
- Python 3.8+
- pandas, matplotlib, seaborn, numpy, reportlab, jieba
License
MIT License
贡献
欢迎提交 Issue 和 Pull Request!