a-stock-analysis-1.0.0/SKILL.md
--- name: a-stock-analysis description: A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。 --- # A股实时行情与分时量能分析 使用东方财富和新浪财经接口获取A股数据,支持实时行情、分时K线、量能分析。 ## 快速开始 ### 实时行情 ```bash # 单只股票 uv run {baseDir}/scripts/analyze.py 600789 # 多只股票 uv run {baseDir}/scripts/analyze.py 600789 002446 002342 # 含分时量能分析 uv run {baseDir}/scripts/analyze.py 600789 --minute # JSON输出 uv run {baseDir}/scripts/a
npx skillsauth add gula00/autoclaw-skills a-stock-analysis-1.0.0Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用东方财富和新浪财经接口获取A股数据,支持实时行情、分时K线、量能分析。
# 单只股票
uv run {baseDir}/scripts/analyze.py 600789
# 多只股票
uv run {baseDir}/scripts/analyze.py 600789 002446 002342
# 含分时量能分析
uv run {baseDir}/scripts/analyze.py 600789 --minute
# JSON输出
uv run {baseDir}/scripts/analyze.py 600789 --json
# 显示持仓
uv run {baseDir}/scripts/portfolio.py show
# 添加持仓
uv run {baseDir}/scripts/portfolio.py add 600789 --cost 10.416 --qty 3400
# 更新持仓
uv run {baseDir}/scripts/portfolio.py update 600789 --cost 10.2
# 删除持仓
uv run {baseDir}/scripts/portfolio.py remove 600789
# 分析所有持仓(含分时量能)
uv run {baseDir}/scripts/portfolio.py analyze
直接使用6位数字代码即可,系统自动识别市场:
| 时段 | 说明 | |------|------| | 早盘30分 (9:30-10:00) | 主力早盘动作,>30%为抢筹信号 | | 上午中段 (10:00-11:30) | 正常交易 | | 下午中段 (13:00-14:30) | 正常交易 | | 尾盘30分 (14:30-15:00) | >25%为尾盘异动信号 |
显示当日成交量最大的10个分钟,用于识别:
统一使用新浪财经接口,数据一致性好:
| 数据 | 接口 | 延迟 |
|------|------|------|
| 实时行情 | hq.sinajs.cn | ~3秒 |
| 分时K线 | CN_MarketDataService.getKLineData | ~1分钟 |
支持批量获取,减少请求次数。
============================================================
股票: 鲁抗医药 (600789)
============================================================
【实时行情】
现价: 10.32 涨跌: +0.88%
今开: 10.20 最高: 10.77 最低: 9.82
昨收: 10.23 换手: 2.38%
成交量: 218.2万手 成交额: 22.51亿
【分时量能分析】鲁抗医药
全天成交: 2181838手 (225105.3万元)
成交分布:
早盘30分(9:30-10:00): 907228手 (41.6%)
上午中段(10:00-11:30): 866457手 (39.7%)
下午中段(13:00-14:30): 181321手 (8.3%)
尾盘30分(14:30-15:00): 225180手 (10.3%)
放量时段 TOP 10:
09:31:00 价格:10.03 成交:216545手 金额:21965.3万
...
【主力动向判断】
🔥 早盘主力抢筹明显
持仓数据存储在: ~/.clawdbot/skills/a-stock-analysis/portfolio.json
development
Use when you have a spec or requirements for a multi-step task, before touching code
tools
Extract frames or short clips from videos using ffmpeg.
development
UI/UX design intelligence and implementation guidance for building polished interfaces. Use when the user asks for UI design, UX flows, information architecture, visual style direction, design systems/tokens, component specs, copy/microcopy, accessibility, or to generate/critique/refine frontend UI (HTML/CSS/JS, React, Next.js, Vue, Svelte, Tailwind). Includes workflows for (1) generating new UI layouts and styling, (2) improving existing UI/UX, (3) producing design-system tokens and component guidelines, and (4) turning UX recommendations into concrete code changes.
tools
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.