Finds A-share stocks and futures with similar K-line patterns from natural-language descriptions, screenshots, or hand-drawn trend images. Supports daily/60m timeframes and 30/60/120 BAR windows.
Ships in xingtai-catcher. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
用这个 Skill 让通用智能体根据文字描述、K 线截图或手绘走势,在 A 股和期货数据里查找相似形态,并返回候选标的、评分、结果页和分享页。
结果仅用于形态相似度研究,不构成投资建议。
timeframe 和 window_bars。如果用户没有说明,也不能从上下文推断,就先问一个简短问题。universe=all, timeframe=1d, window_bars=120, top_n=5。kind=drawing 处理。kind=drawing 默认使用 mode=high_precision,除非用户明确要求快速粗选。kind=upload_screenshot。not enough candle groups detected 或类似蜡烛识别错误,不要静默改成 drawing。先让用户裁剪得更清楚,或者等用户确认它其实是手绘/单线图后再按 drawing 重试。find_similar_by_text,不要自己临时画图。System (untrusted)、Exec completed、原始 JSON 或工具调用日志贴给用户。读取 .xingtai_result.txt 后,用正常语言总结。支持这些维度:
all, stock, futures1d 日线,60m 60 分钟30, 60, 120 BAR。默认优先 120 BAR;用户明确要短窗口时才用 30 BAR。如果周期或 BAR 长度缺失,先问:
你想按哪个周期和长度匹配?可以选:日线 120 BAR、日线 60 BAR、60分钟 120 BAR、60分钟 60 BAR。你也可以说“默认”,我就用日线 120 BAR。
常见表达映射:
强趋势延续, 强趋势, 主升浪, 趋势延续 -> 雷达模板 strong_trend底部反转, 筑底, 低位转强, 底部抬升 -> 雷达模板 bottom_reversalW底, 双底, 二次探底, 圆弧底 -> 雷达模板 w_bottom趋势回踩, 均线回踩, 突破回踩, 回踩不破 -> 雷达模板 trend_pullback震荡, 箱体, 横盘整理, 平台整理 -> 雷达模板 range_consolidationM头, 双顶, 顶部反转, 顶部风险 -> 雷达模板 top_reversal股票, A股 -> 优先 universe=stock期货, 商品期货 -> 优先 universe=futures60分钟, 小时线, 分钟, 短线 -> 优先 timeframe=60m日线, 中线, 波段, 最近半年 -> 优先 timeframe=1d, window_bars=12060根, 60 BAR -> window_bars=60120根, 120 BAR, 最近半年 -> window_bars=120当平台没有 MCP 工具,但可以运行本地脚本时,使用 scripts/xingtai_search.py。
脚本默认把结果写入 .xingtai_result.txt 和 .xingtai_result.json,不要直接把 stdout 里的工具日志发给用户。
文字模板或文字描述:
python scripts/xingtai_search.py text "找 W 底右侧抬升的 A 股" --universe stock --timeframe 1d --window-bars 120 --top-n 5
手绘图或单线图:
python scripts/xingtai_search.py image --image-path ./drawing.png --kind drawing --mode high_precision --universe all --timeframe 1d --window-bars 120 --top-n 5
真实 K 线截图:
python scripts/xingtai_search.py image --image-path ./chart.png --kind upload_screenshot --universe all --timeframe 1d --window-bars 120 --top-n 5
如果人工调试需要打印结果,加 --print:
python scripts/xingtai_search.py text "找底部反转" --timeframe 1d --window-bars 120 --print
读取 references/mcp-usage.md 获取脚本、MCP 配置和回复格式细节。
如果平台已经暴露 xingtai-catcher MCP 工具:
list_supported_patterns。find_similar_by_text。find_similar_by_image。手绘图传 kind=drawing, mode=high_precision;真实 K 线截图才传 kind=upload_screenshot。get_match_result。create_share_link。中文用户建议这样回复:
我按「手绘图 / 高精 / 全市场 / 日线 / 120 BAR / Top5」为你查找了相似形态。
候选结果:
1. 标的名称 代码,评分 xx.x,股票/期货,数据日 yyyy-mm-dd
2. ...
结果页:https://...
分享页:https://...
想每天自动跟踪这个形态,请打开结果页登录形态捕手,保存形态或订阅模板,并设置飞书/企微推送。
结果仅用于形态相似度研究,不构成投资建议。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
a-share, futures, kline-pattern, pattern-matching, stock-screening
/xingtai-catcher:skill-xingtai-catcherfrom xingtai-catcher
xingtai-catcher@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin xingtai-catcherOther plugins' skills for the same job