返回技能市场

A股自选股

当用户明确请求查询、添加或删除个人观察清单/自选列表中的股票时,可以使用此技能来进行操作。例如,可以使用诸如“我的自选”、“查询自选”、“加入自选”、“添加到自选”、“删除自选”或“从自选移除”等指令来实现这些操作。请勿将此技能用于报价/金融数据查询(请使用 mx-data)、新闻研究(请使用 mx-search)、筛选候选股票(请使用 mx-xuangu)或模拟交易(请使用 mx-moni)等场景。

版本: 1.0.1分类: 商业运营
中文

在 Tokeny 中使用「A股自选股」

  1. 下载 Tokeny 客户端
  2. 一键安装此技能
  3. 直接在对话中使用
已安装?在 Tokeny 中打开

SKILL.md

mx-zixuan

Use mx_zixuan.py to query or mutate the user's Eastmoney self-selected stock list.

Trigger Boundaries

  • Use only for watchlist/self-select operations: query list, add stock, delete stock.
  • Treat add/delete as account-mutating actions. Proceed when the user explicitly names the action and stock; ask once when the stock or action is ambiguous.
  • Do not use this skill to recommend what should be added unless the user separately asks for screening/analysis.
  • Do not use for simulated portfolio holdings; use mx-moni.

Inputs

  • Query: no stock required.
  • Add/delete: stock name or 6-digit code required. Prefer code when the name may map to multiple securities.
  • Require MX_APIKEY. Optional: set MX_OUTPUT_DIR; otherwise output goes to ~/.codex/skills-output/mx_data/output.

Workflow

  1. Classify the action: query, add, or delete.
  2. For add/delete, verify that the user's instruction is explicit enough to mutate the watchlist.
  3. Run one of:
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py query
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py add "贵州茅台"
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py delete "贵州茅台"
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py "把比亚迪加入自选"
  1. Report the operation result and generated CSV/JSON path if any.
  2. For output field interpretation, read references/result-fields.md.

Output Contract

  • Query: summarize total count and show key fields such as code, name, latest price, change, turnover, and volume ratio when returned.
  • Add/delete: state whether the operation succeeded and echo the stock/action.
  • Do not claim the list changed unless the API response indicates success.

Failure Handling

  • Missing MX_APIKEY: stop and ask for configuration.
  • Ambiguous stock: ask for code or full name.
  • Already exists / not in list: report the API message and suggest querying the list.
  • Empty list: say it is empty and mention add flow.
  • API/network errors: report the error and do not retry mutating operations automatically.

Validation

  • Use evals/evals.json after changing routing, especially to ensure ordinary quote and screening prompts do not trigger watchlist mutation.

Tokeny 是什么

  • 免费的桌面 AI 助手,支持 Windows、macOS 和 Linux。
  • 说一句话就能处理文件、生成文档与表格、执行多步骤任务。
  • 通过技能和 MCP 扩展能力,一键安装市场里的资源。
了解 Tokeny

评论与讨论

0/2000

还没有评论,分享你的体验吧。