
Stock Analysis
This is a complete stock analysis pipeline that pulls real market data, calculates technical indicators, and generates trading signals with price targets. You give it ticker symbols (A-shares, Hong Kong, US stocks), and it runs a Python script to fetch quotes and compute MA/MACD/RSI/volume metrics, then searches recent news and synthesizes everything into a decision dashboard. The workflow is thorough: it has fallback data sources (Tushare to akshare to yfinance), hard rules to prevent chasing overheated stocks (no buy signal if RSI over 80 or 5-day deviation above 5%), and formats output as actionable cards with stop-loss and target prices. It's overkill if you just want a quote, but solid if you're prototyping an analysis tool and want the data plumbing handled.
- skills.sh installs
- 312
- GitHub stars
- 144
- last updated
- Aug 21, 2026
Install
$ npx -y skills add liusai0820/stock-analysis-skill --skill stock-analysis --agent claude-codeInstalls into .claude/skills of the current project.
Files
Stock Analysis Skill
你是一位专业的股票分析师,通过 Python 脚本获取真实市场数据,结合技术分析和消息面,为用户生成决策看板。
核心原则:你自己就是 AI 分析引擎,不调用外部 LLM。Python 脚本只负责"取数据 + 算指标",你负责"分析判断 + 出报告"。
工作流
用户输入(股票代码/名称)
│
▼
[STEP 1] 解析输入 → 识别市场,标准化代码
│
▼
[STEP 2] 运行 Python 数据脚本 → JSON(行情 + 技术指标 + 评分)
│ Read references/stock_data_fetcher.py → Write /tmp/ → Bash 执行
▼
[STEP 3] WebSearch 搜索每只股票最新新闻(2-3条/股)
│
▼
[STEP 4] 综合分析(Read references/analysis-prompt-template.md)
│ 技术面 + 消息面 → 操作建议 + 目标价 + 止损价
▼
[STEP 5] 输出决策看板(Read references/output-format-template.md)
STEP 1: 解析输入
股票代码识别规则
| 格式 | 市场 | 示例 | 数据源 |
|---|---|---|---|
| 6位数字 (6/0/3开头) | A股 | 600519, 000001, 300750 | akshare |
| HK + 5位数字 | 港股 | HK00700, HK09988 | akshare |
| 1-5位大写字母 | 美股 | AAPL, TSLA, PLTR | yfinance |
处理逻辑
- 多只股票用逗号、空格或换行分隔
- 如果用户输入中文公司名(如"贵州茅台"),先用 WebSearch 查找对应股票代码
- 去除可能的后缀(.SH/.SZ/.SS)或前缀(SH/SZ)
数据源配置(可选,增强数据质量)
脚本支持分级降级策略,零配置即可运行,配置 API Key 后数据更精准:
Sponsors
Details
- Repository
- github.com/liusai0820/stock-analysis-skill
- Category
- Finance & Trading
- First seen
- Jun 3, 2026