← 返回 Skills 市场
CN Stock Analyst 股票智能分析师
作者
ryanlee-gemini
· GitHub ↗
· v1.0.0
· MIT-0
680
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install cn-stock-analyst
功能描述
股票智能分析助手,支持A股、港股、美股的行情抓取、技术指标解读和研报生成。触发场景:用户提到"股票分析"、"看一下XX股"、"XX的技术面"、"买不买XX"、"研报"、"财报解读"、"帮我分析XX"、"XX值不值得买"、"XX的走势"、"技术分析"、"MACD"、"RSI"、"K线"、"均线"、"PE"、"PB"...
使用说明 (SKILL.md)
股票智能分析师
核心功能
- 实时行情抓取:通过 web_fetch 从多个数据源获取最新价格、涨跌幅、成交量
- 技术指标解读:MACD、RSI、KDJ、布林带、均线系统(MA5/MA10/MA20/MA60/MA120/MA250)
- 基本面分析:PE/PB/ROE、市值、营收、净利润、毛利率等关键财务指标
- 自动生成研报:多空分析、目标价估算、风险提示
- 支持品种:A股个股/指数/ETF、港股、美股
股票代码格式规范
| 市场 | 格式 | 示例 |
|---|---|---|
| A股沪市 | SH+6位代码 | SH600519(茅台) |
| A股深市 | SZ+6位代码 | SZ000001(平安银行) |
| 创业板 | SZ+6位代码 | SZ300750(宁德时代) |
| 港股 | 5位数字 | 00700(腾讯) |
| 美股 | 英文字母 | AAPL、TSLA、NVDA |
| ETF | 同A股规则 | SH510300(沪深300ETF) |
用户如果只说股票名称,先识别对应代码,再进行分析。
数据抓取流程
Step 1:确定股票信息
- 若用户提供代码,直接使用;若提供名称,先转换为代码
- 判断市场类型(A股/港股/美股),选择对应数据源
Step 2:抓取实时行情
按优先级尝试以下数据源(用 web_fetch 工具):
A股数据源(按优先级):
1. 东方财富(推荐):
- 行情页:https://quote.eastmoney.com/SH600519.html
- 将代码 SH/SZ 前缀转为全小写拼接
2. 雪球:
- https://xueqiu.com/S/SH600519
- 注意:雪球可能需要登录,如被拦截则换其他源
3. 新浪财经:
- https://finance.sina.com.cn/realstock/company/sh600519/nc.shtml
4. 腾讯财经:
- https://gu.qq.com/sh600519
美股数据源:
1. Yahoo Finance API(JSON格式,推荐):
https://query1.finance.yahoo.com/v8/finance/chart/AAPL?interval=1d&range=3mo
2. Yahoo Finance 行情页:
https://finance.yahoo.com/quote/AAPL
3. 雪球(美股):
https://xueqiu.com/S/AAPL
港股数据源:
1. 雪球(港股,前加$):
https://xueqiu.com/S/$00700
2. 东方财富港股:
https://quote.eastmoney.com/hk/00700.html
Step 3:提取关键数据
从抓取的页面提取:
- 当前价格、涨跌额、涨跌幅
- 开盘价、昨收、最高价、最低价
- 成交量、成交额、换手率
- 市值、PE(TTM)、PB、股息率
Step 4:获取技术指标数据
对于技术分析,尝试抓取K线数据:
东方财富K线接口(示例):
https://push2his.eastmoney.com/api/qt/stock/kline/get?secid=1.600519&fields1=f1,f2,f3,f4,f5,f6&fields2=f51,f52,f53,f54,f55,f56,f57,f58&klt=101&fqt=1&beg=0&end=20500101&lmt=120
其中 secid:沪市前缀 1. 深市前缀 0. 例:1.600519 或 0.000001
如果 API 无法访问,基于有限行情数据进行定性分析。
Step 5:生成研报
按 references/report-template.md 的格式输出分析报告。
技术指标解读规则
MACD 信号
- 金叉(DIFF上穿DEA):短期上涨信号,可考虑买入
- 死叉(DIFF下穿DEA):短期下跌信号,注意风险
- MACD柱由负转正:动能由跌转涨
- 背离:价格创新高但MACD未创新高 → 顶背离(看空);价格创新低但MACD未创新低 → 底背离(看多)
RSI 信号
| RSI值 | 信号 |
|---|---|
| > 80 | 超买区,注意回调风险 |
| 70-80 | 偏强,但需谨慎追高 |
| 30-70 | 正常波动区间 |
| 20-30 | 偏弱,可能接近底部 |
| \x3C 20 | 超卖区,关注反弹机会 |
KDJ 信号
- K上穿D(金叉):买入信号,尤其在20以下
- K下穿D(死叉):卖出信号,尤其在80以上
- J > 100:超买,短期回调概率大
- J \x3C 0:超卖,可能出现反弹
布林带信号
- 价格突破上轨:强势突破或超买
- 价格触碰下轨:支撑位或超卖反弹
- 带宽收窄:即将出现大波动
- 带宽扩张:趋势确立
均线系统
- 价格在所有均线之上:多头排列,趋势强势
- 价格在所有均线之下:空头排列,趋势弱势
- MA5上穿MA20(黄金交叉):中期买入信号
- MA5下穿MA20(死亡交叉):中期卖出信号
- MA250(年线):重要长期支撑/压力位
基本面分析框架
估值指标
| 指标 | 偏低 | 合理 | 偏高 |
|---|---|---|---|
| PE(成长股) | \x3C 15倍 | 15-35倍 | > 50倍 |
| PE(价值股) | \x3C 8倍 | 8-15倍 | > 20倍 |
| PB | \x3C 1倍 | 1-3倍 | > 5倍 |
| ROE | \x3C 8% | 8-15% | > 20% |
注意:不同行业PE基准差异极大,需与行业均值对比。
财务健康度检查
- 营收增速:同比是否持续增长?
- 净利润率:是否维持稳定或提升?
- 负债率:资产负债率是否合理(非金融企业一般 \x3C 60%)?
- 现金流:经营性现金流是否为正?
- 毛利率趋势:是否存在毛利率下降风险?
综合评级标准
| 评级 | 条件 |
|---|---|
| ⭐⭐⭐ 买入 | 技术面强势 + 基本面优质 + 估值合理 |
| ⭐⭐ 适度买入 | 技术面偏多 或 基本面良好,但有一定风险 |
| ⭐ 持有/观望 | 技术面中性,基本面一般,等待更好时机 |
| ⚠️ 谨慎 | 技术面偏弱 或 估值偏高,控制仓位 |
| 🔴 回避 | 技术面空头排列 + 基本面恶化,建议规避 |
注意事项
- 数据时效:web_fetch 抓取的是网页静态内容,非实时tick数据,存在一定延迟
- 访问限制:部分数据源可能有反爬限制,如遇访问失败应尝试其他数据源
- 免责声明:本分析仅供参考,不构成投资建议。股市有风险,投资需谨慎。
- 数据不全时:若数据抓取不完整,明确说明哪些数据缺失,基于可用数据进行分析
输出格式
按照 references/report-template.md 的结构生成分析报告,要求:
- 语言简洁专业,避免模糊表述
- 明确给出关键价位(支撑位、压力位)
- 综合评级必须给出,不得回避
- 风险提示必须包含
- 如数据有限,明确标注并进行定性分析
安全使用建议
This skill appears internally consistent: it scrapes public finance pages, computes indicators, and formats a report. Before installing, consider: (1) web_fetch will make network requests to third‑party sites — if you send any private text to the skill it may be included in those requests; avoid supplying sensitive data. (2) Scraped data can be delayed, blocked by anti‑bot measures, or contain parsing errors — validate outputs before acting on them. (3) This is informational only and not financial advice; confirm important decisions with authoritative data/APIs. If you need server‑side credentials or a commercial data feed for higher reliability, this skill currently does not request them and would need modification.
功能分析
Type: OpenClaw Skill
Name: cn-stock-analyst
Version: 1.0.0
The skill is a legitimate stock analysis assistant designed to fetch and analyze market data for A-shares, Hong Kong, and US stocks. It uses the 'web_fetch' tool to retrieve information from reputable financial platforms such as Eastmoney, Xueqiu, Sina Finance, and Yahoo Finance. The instructions in SKILL.md and the template in references/report-template.md are strictly aligned with the stated purpose of providing technical and fundamental analysis, with no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description (stock data, technical/basic analysis, report generation) align with the instructions: fetch market pages, extract price/K-line/financial fields, compute indicators, and render the provided template. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md confines runtime behavior to using a web_fetch tool against public finance pages/APIs and to produce reports per the included template. It does not instruct reading local secrets, other files, or sending data to unknown endpoints. It does note fallback behavior when sources are blocked, which is reasonable for a scraper.
Install Mechanism
This is an instruction-only skill with no install spec or bundled code — nothing is written to disk or downloaded during install.
Credentials
The skill declares no environment variables or credentials and does not require unrelated secrets. The data sources cited (Eastmoney, Xueqiu, Sina, Tencent, Yahoo Finance) are appropriate for the stated markets.
Persistence & Privilege
always is false and there is no request for persistent privileges or modifications to other skills/config. Autonomous invocation is allowed (platform default) but not exceptional here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cn-stock-analyst - 安装完成后,直接呼叫该 Skill 的名称或使用
/cn-stock-analyst触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首发:A股/港股/美股智能分析,技术指标(MACD/RSI/KDJ/布林带)+基本面+研报自动生成
元数据
常见问题
CN Stock Analyst 股票智能分析师 是什么?
股票智能分析助手,支持A股、港股、美股的行情抓取、技术指标解读和研报生成。触发场景:用户提到"股票分析"、"看一下XX股"、"XX的技术面"、"买不买XX"、"研报"、"财报解读"、"帮我分析XX"、"XX值不值得买"、"XX的走势"、"技术分析"、"MACD"、"RSI"、"K线"、"均线"、"PE"、"PB"... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 680 次。
如何安装 CN Stock Analyst 股票智能分析师?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-stock-analyst」即可一键安装,无需额外配置。
CN Stock Analyst 股票智能分析师 是免费的吗?
是的,CN Stock Analyst 股票智能分析师 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
CN Stock Analyst 股票智能分析师 支持哪些平台?
CN Stock Analyst 股票智能分析师 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CN Stock Analyst 股票智能分析师?
由 ryanlee-gemini(@ryanlee-gemini)开发并维护,当前版本 v1.0.0。
推荐 Skills