S
stock-tech-analysis-step1
About stock-tech-analysis-step1
A skill that standardizes the data-preparation step of a stock technical-analysis workflow, using tushare-mcp through mcporter. It fetches specified A-share market data, performs basic checks, saves raw files, and produces a summary for the next analysis step.
Key features
- 01Fetch daily prices, factors, and money flow
- 02Use tushare-mcp through mcporter
- 03Save raw data under project results
- 04Check counts, key fields, and latest trade date
- 05Summarize latest close and 20-day return
Use cases
- 01Prepare stock data for technical analysis
- 02Collect one year of daily prices and factors
- 03Review recent money-flow data
- 04Identify incomplete data before analysis
MCP support
The skill calls the tushare-mcp MCP server through mcporter, using its daily-price, technical-factor, and money-flow tools to retrieve data.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ kirkluokun/ awesome-a-stock-openclawskills --skill stock-tech-analysis-step1After installing, type/stock-tech-analysis-step1in Claude Code to confirm it loaded.
Bundled filesexamples/zhenhua-step1-commands.mdREADME.md
Details
From the project READMEstock-tech-analysis-step1
目标
把技术分析流程中的**第一步(数据底座)**标准化:
- 仅使用
tushare-mcp(经mcporter)获取数据 - 最小校验(不做重清洗)
- 数据落盘到
results/project-name/data/raw/ - 给出可直接进入 Step 2 技术分析的摘要
数据范围(默认)
- 标的:用户指定(A股格式
XXXXXX.SH/SZ) - 日线:近 1 年(
tushare_daily) - 技术因子:近 1 年(
tushare_stk_factor_pro) - 资金流向:近 3 个月(
tushare_moneyflow)
核心规则
- 数据源唯一:优先且默认只用
tushare-mcp - 接口调用方式:
mcporter call tushare-pro.<tool> - 落盘规范:
results/<project-name>/data/raw/ - 最小校验:仅检查条数、关键字段、最新交易日与最新收盘
- 摘要必须输出:最新交易日、最新收盘、近20日涨跌幅、数据条数、完整性
标准执行模板
1) 日线
mcporter call tushare-pro.tushare_daily \
ts_code=603067.SH start_date=2025-03-01 end_date=2026-03-05 _limit=5000
2) 技术因子
mcporter call tushare-pro.tushare_stk_factor_pro \
ts_code=603067.SH start_date=2025-03-01 end_date=2026-03-05 _limit=5000
3) 资金流向
mcporter call tushare-pro.tushare_moneyflow \
ts_code=603067.SH start_date=2025-12-01 end_date=2026-03-05 _limit=5000
输出文件命名建议
<ts_code>_daily_1y.json<ts_code>_stk_factor_pro_1y.json<ts_code>_moneyflow_3m.json
最小检查清单
- 三份数据都成功返回
- 日线/因子条数大于 0
- 最新交易日可识别
- 最新收盘价可读取
- 可计算近20日涨跌幅
失败回退(轻量)
- 若
tushare_stk_factor_pro不可用:明确报错原因(权限/接口不可用),保留日线与资金流并继续流程。 - 若
mcporter未配置tushare-pro:先修复 MCP 注册与 token,再重试。
交付摘要模板
- 标的:603067.SH
- 最新交易日:YYYYMMDD
- 最新收盘:XX.XX
- 近20日涨跌幅:XX.XX%
- 数据条数:日线 N / 因子 N / 资金流 N
- 完整性:完整 / 部分缺失(注明原因)
Comments
Markdown supported