0xhyperdan/stock-watchlist/SKILL.md
Query real-time stock prices, basic quote fields, and manage a Markdown watchlist for A-share, Hong Kong, and US stocks. Use when users ask in Chinese or by ticker/code to search stocks, inspect current price and quote basics, or maintain a watchlist stored in a Markdown file.
npx skillsauth add openclaw/skills stock-watchlistInstall 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.
这个 Skill 用于处理三类任务:
当前脚本使用公开可访问的东财搜索与行情接口。这样可以稳定支持“中文名检索 + 实时行情”,避免当前公开雪球搜索接口的风控限制。
优先调用 scripts/stock_watchlist.py quote ...。
支持这些输入形态:
贵州茅台、腾讯。600519、00700、TSLA。SH600519、SZ000001、HK00700。示例:
python scripts/stock_watchlist.py quote 贵州茅台 HK00700 TSLA
脚本输出 JSON。读取结果后,用中文向用户总结最重要的字段,不要把整段 JSON 原样抄回去,除非用户明确要求。
对短中文名或明显存在歧义的输入,先调用 search 再决定是否直接报价。
典型例子:
腾讯 可能扩散到 腾讯控股、腾讯音乐、相关指数或板块。平安 可能对应银行、保险、ETF 或指数。示例:
python scripts/stock_watchlist.py search 腾讯
处理规则:
quote。先初始化 Markdown 模板:
python scripts/stock_watchlist.py watchlist init --file ./watchlist.md
模板位于 assets/watchlist-template.md。
Markdown 文档必须保留这两个标记:
<!-- stock-watchlist:start --><!-- stock-watchlist:end -->脚本只会回写标记之间的表格,其它正文会保留。
新增或更新一行:
python scripts/stock_watchlist.py watchlist add \
--file ./watchlist.md \
--query 贵州茅台 \
--cost-price 1395 \
--quantity 100 \
--note core
删除一行:
python scripts/stock_watchlist.py watchlist remove \
--file ./watchlist.md \
--query SH600519
把手工编辑过的 query 统一解析成规范符号:
python scripts/stock_watchlist.py watchlist sync --file ./watchlist.md
查询整个自选列表并计算汇总:
python scripts/stock_watchlist.py watchlist quote --file ./watchlist.md
表格必须包含这些列:
querysymbolquote_idnamecost_pricequantitynote字段含义:
query:原始查询词,适合手工维护,例如中文名或代码。symbol:规范代码,例如 SH600519、HK00700、TSLA。quote_id:行情接口使用的内部标识,保留后可以减少再次搜索。cost_price:可选,留空则不计算该行盈亏。quantity:可选,留空则不计算该行盈亏。建议:
query 后执行一次 watchlist sync。query/symbol/quote_id/name/note。./watchlist.md。--file 指向系统目录、隐藏配置目录或无关文档。STOCK_WATCHLIST_ALLOWED_ROOTS,只加入你确认安全的目录。watchlist init --force 仅用于覆盖已有的 watchlist 文件,不要把它用于普通 Markdown 文档。脚本返回 JSON 后,按场景组织最终回答:
name/symbol/current_price/change_percent/open_price/high_price/low_price/previous_close/total_market_cap/pe_ttm/pb。如果用户明确要“基本信息”,默认至少包含:
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。