Agent skill

Stock Data Assistant

by Yourdaylight in Yourdaylight/stock_datasource

Queries A-share, Hong Kong, ETF and index market data over MCP, streams live quotes by WebSocket, and lets you drive both from WeChat through picoclaw.

MITAuto-check: notesBusiness, Finance & HR

SKILL.md written in Chinese; this summary is our English description.

Install Stock Data Assistant

skills CLI
$ npx skills add Yourdaylight/stock_datasource --skill stock-data-assistant -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Yourdaylight/stock_datasource stock-data-assistant --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Yourdaylight/stock_datasource.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/stock-data-assistant .claude/skills/stock-data-assistant && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stock-data-assistant
GitHub stars
188
Token cost
~1.2k tokens
SKILL.md length
252 words
Files
5 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Queries A-share, Hong Kong, ETF and index market data over MCP, streams live quotes by WebSocket, and lets you drive both from WeChat through picoclaw.

  • Works in 4 steps: 安装 picoclaw → 生成 picoclaw 配置 → 启动 picoclaw → …
  • Looking up daily K-line or financial data for A-share, Hong Kong, ETF or index tickers
  • SKILL.md covers 架构总览, 核心能力, 快速开始 and 手动分步操作, plus 7 more sections
  • Runs Shell and Python scripts from its folder; calls bash and python3; reaches api.openai.com; needs OPENAI_API_KEY and STOCK_MCP_TOKEN

What it does

This Chinese-language skill ties together three capabilities from the stock_datasource project. History queries (K-line data, financial statements, index and ETF data) go through an MCP server on port 8001. Real-time quotes arrive over a WebSocket service on port 8765 and refresh every few seconds. A WeChat channel run by picoclaw turns chat messages into MCP tool calls, so you can ask for a stock's recent daily K-line from your phone.

`start_wechat_bridge.sh` does the setup in one pass: it downloads picoclaw from GitHub Releases for your system architecture, builds `picoclaw.yaml` from the LLM settings in `.env` (`OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_MODEL`), starts the gateway and WeChat channel, and starts the WebSocket service. You then scan a QR code with `picoclaw auth weixin`. The same steps can be run one by one with `setup_picoclaw.sh` and `generate_picoclaw_config.py`, and a `--status` flag reports on the bridge.

When your agent uses it

  • Looking up daily K-line or financial data for A-share, Hong Kong, ETF or index tickers
  • Subscribing to live quote pushes for a watchlist
  • Letting WeChat messages query a local stock database through picoclaw

Example prompts

  • “Pull the recent daily K-line data for Kweichow Moutai (600519.SH).”
  • “Start the WeChat bridge and show me the login QR code.”
  • “Subscribe to live quotes for 600519.SH over the WebSocket service.”
  • “Check the status of the picoclaw bridge.”

Requirements

  • A running stock_datasource MCP server (port 8001 by default)
  • LLM settings in `.env`, including `OPENAI_API_KEY`
  • Internet access to download picoclaw from GitHub Releases
  • A WeChat account to scan the login QR code

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 安装 picoclaw
  2. 生成 picoclaw 配置
  3. 启动 picoclaw
  4. 登录微信

What it can do on your machine

Read from SKILL.md and the folder at commit 3d4dbd2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.openai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY
    • STOCK_MCP_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stock Data Assistant loads about 1.2k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 252 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:48
    2. **生成配置** — 从 `.env` 读取 LLM 配置,生成 `picoclaw.yaml`
  • NoteMentions a .env fileSKILL.md:115
    ### LLM 配置(自动从 .env 复用)
  • NoteMentions a .env fileSKILL.md:192
    enerate_picoclaw_config.py           # 从 .env 生成配置
  • NoteMentions a .env fileSKILL.md:203
    | `OPENAI_API_KEY not set` | 确保 `.env` 文件中有 `OPENAI_API_KEY` 字段 |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Yourdaylight/stock_datasource at commit 3d4dbd2, republished under its MIT licence (© Yourdaylight). 252 words, ~1,229 tokens.

Download SKILL.mdSave it as .claude/skills/stock-data-assistant/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
stock-data-assistant
description
统一的股票数据助手 Skill,整合: (1) 数据查询 — 通过 MCP 协议查询历史 K 线、财务报表等(A 股/港股/ETF/指数); (2) 实时搜索 — 通过 WebSocket 订阅实时行情推送(每 3~5 秒更新); (3) 微信联动 — 通过 picoclaw + WeChat Channel 实现微信端操作数据库和订阅实时数据。 触发此 Skill 时会自动下载 picoclaw、复用项目 LLM 配置、启动微信登录。

Stock Data Assistant(股票数据统一助手)

整合 历史数据查询、实时行情搜索 和 微信联动 三大能力的统一 Skill。DeepSeek Harness 接入见仓库 docs/DEEPSEEK_HARNESS.md(stdio MCP,不要使用 8001/messages)。

架构总览

┌─────────────┐     ┌──────────────┐     ┌─────────────────┐
│   微信用户    │────▶│  picoclaw     │────▶│ stock-mcp (8001) │
│  (WeChat)   │     │  (LLM Gateway)│     │  历史数据查询     │
└─────────────┘     │  port:18790  │     ├─────────────────┤
                    │  微信 Channel │     │  WS (8765)       │
┌─────────────┐     │              │────▶│  实时行情推送     │
│  Web 前端    │────▶│  MCP Client  │     └─────────────────┘
│  (18080)    │     └──────────────┘
└─────────────┘

核心能力

能力协议端口说明
历史数据查询MCP (streamable-http)8001K线/财务/指数/ETF 等
实时行情推送WebSocket8765A股/港股/ETF 逐笔
微信交互picoclaw WeChat Channel—自然语言 → MCP 工具调用

快速开始

一键启动
bash
bash skills/stock-data-assistant/start_wechat_bridge.sh

该命令会依次完成:

  1. 检查/下载 picoclaw — 自动检测系统架构,从 GitHub Releases 下载
  2. 生成配置 — 从 .env 读取 LLM 配置,生成 picoclaw.yaml
  3. 启动 picoclaw — 启动 Gateway (18790) + 微信 Channel
  4. 启动实时订阅 — 启动 WebSocket 推送服务 (8765)
微信登录
bash
# 显示微信登录二维码(扫码后即绑定)
.local/bin/picoclaw auth weixin

# 或者使用完整路径
./.local/bin/picoclaw auth weixin

扫码成功后,在微信中直接发消息即可操作股票数据。

微信对话示例
📱 你: 查一下贵州茅台最近的日K线
🤖 AI: 正在为您查询贵州茅台(600519.SH)的日线数据...

📱 你: 腾讯控股现在价格多少?
🤖 AI: 腾讯控股(00700.HK) 当前价 XXX.XX 港元,涨幅 X.XX%

📱 你: 监控 00700.HK 涨跌超过2%就通知我
🤖 AI: 已设置涨跌幅告警,触发条件:±2.00%

📱 你: 列出今天涨幅最大的10只A股
🤖 AI: 正在筛选今日涨幅榜 Top 10...

手动分步操作

Step 1: 安装 picoclaw
bash
bash skills/stock-data-assistant/setup_picoclaw.sh
# 或指定版本
bash skills/stock-data-assistant/setup_picoclaw.sh v0.2.5
Step 2: 生成 picoclaw 配置
bash
python3 skills/stock-data-assistant/generate_picoclaw_config.py
# 自定义参数
python3 skills/stock-data-assistant/generate_picoclaw_config.py \
    --mcp-token sk-your-token-here \
    --output ./my-config.yaml
Step 3: 启动 picoclaw
bash
export PATH=".local/bin:$PATH"
picoclaw run --config .local/picoclaw.yaml
Step 4: 登录微信
bash
picoclaw auth weixin

配置说明

LLM 配置(自动从 .env 复用)

配置生成器会自动读取以下环境变量:

变量说明默认值
OPENAI_API_KEYAPI 密钥(必填)
OPENAI_BASE_URLAPI 端点https://api.openai.com/v1
OPENAI_MODEL模型名称gpt-4
MCP Server 配置
变量说明
STOCK_MCP_SERVER_URLMCP 服务地址(默认 http://localhost:8001/messages)
STOCK_MCP_TOKENMCP 认证令牌
生成的配置文件结构

见 references/picoclaw_config_example.yaml

管理命令

bash
# 查看状态
bash skills/stock-data-assistant/start_wechat_bridge.sh --status

# 停止所有服务
bash skills/stock-data-assistant/start_wechat_bridge.sh --stop

# 仅启动(不启用实时订阅)
bash skills/stock-data-assistant/start_wechat_bridge.sh --no-rt

# 指定订阅股票
bash skills/stock-data-assistant/start_wechat_bridge.sh --symbols 00700.HK,600519.SH

MCP 工具一览(通过微信可用)

picoclaw 通过 MCP 协议连接到 stock_datasource 后,以下工具在微信中均可使用:

K 线数据
  • tushare_daily_get_daily_data — 日 K 线 (OHLCV)
  • tushare_daily_get_latest_daily — 最新交易日数据
  • akshare_hk_* — 港股日线数据
基本面
  • tushare_daily_basic_get_daily_basic — PE/PB/市值等指标
  • tushare_balancesheet_* — 资产负债表
  • tushare_income_* — 利润表
  • tushare_cashflow_* — 现金流量表
指数与 ETF
  • tushare_index_* — 指数数据
  • tushare_fund_* — ETF 数据
市场
  • tushare_trade_cal_get_cal — 交易日历

完整工具列表可通过 MCP tools/list 接口动态获取(约 76+ 个工具)

实时数据(WebSocket)

通过 skills/stock-rt-subscribe 提供,支持:

  • 实时推送: 每 3~5 秒更新行情
  • 多市场: A 股 / 港股 / ETF
  • 告警策略: 涨停跌停、大幅波动、量能异动、价格突破

详细文档: ../stock-rt-subscribe/SKILL.md

目录结构

skills/stock-data-assistant/
├── SKILL.md                              # 本文档
├── setup_picoclaw.sh                     # 自动下载 picoclaw
├── generate_picoclaw_config.py           # 从 .env 生成配置
├── start_wechat_bridge.sh                # 一键启动脚本
└── references/
    └── picoclaw_config_example.yaml     # 配置示例

故障排查

问题解决方案
picoclaw 下载失败检查网络/代理;或手动从 GitHub 下载放入 .local/bin/
OPENAI_API_KEY not set确保 .env 文件中有 OPENAI_API_KEY 字段
API key required (MCP)设置 STOCK_MCP_TOKEN 环境变量或编辑配置文件
微信二维码过期重新运行 picoclaw auth weixin
实时数据无推送检查 subscribe_client.py 是否正常运行,端口 8765 是否可达
picoclaw 无法调用 MCP 工具确认 MCP 服务 (8001) 正常运行且 token 有效

依赖关系

  • Python >= 3.9 — 用于配置生成和实时数据订阅
  • picoclaw >= v0.2.5 — 由 setup_picoclaw.sh 自动安装
  • stock_datasource MCP 服务 — 端口 8001(需先启动)
  • stock_datasource Backend — 端口 6666(需先启动)

© Yourdaylight, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/stock-data-assistant of Yourdaylight/stock_datasource.

  • SKILL.md
  • generate_picoclaw_config.py
  • references/picoclaw_config_example.yaml
  • setup_picoclaw.sh
  • start_wechat_bridge.sh

Open the folder on GitHubat commit 3d4dbd2

Compare with similar skills

Stock Data Assistant next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stock Data Assistant compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stock Data Assistant this skillYourdaylight/stock_datasource188—~1.2kAutomated safety check: NotesMIT
Minimal Web Baas DemoTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~2.2kAutomated safety check: PassMIT
Linkdigest Social Link Readersickn33/agentic-awesome-skills47k—~3.4kAutomated safety check: PassMIT
Openai Docsaafqaq/codex-lb-enhanced1023 repos~861Automated safety check: PassApache-2.0
Burp MCP Vuln Checklangbyyi/CyberStrikeAI-SRC134—~3.1kAutomated safety check: PassApache-2.0
Aris InfraOpenLAIR/dr-claw1.2k—~1.4kAutomated safety check: NotesMIT

Similar skills

  • Minimal Web Baas Demo

    TencentCloudBase/CloudBase-AI-Toolkit

    Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS).

    1.1k GitHub starsUsed in 1 repo~2.2k tokens
    Productivity & AutomationAuto-check passed
  • Linkdigest Social Link Reader

    sickn33/agentic-awesome-skills

    Read one public Xiaohongshu, Douyin, TikTok, YouTube, X or WeChat article link into text an agent can use (transcript, image text, key points) via the LinkDigest API or MCP server.

    47k GitHub stars~3.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Openai Docs

    aafqaq/codex-lb-enhanced

    A skill your agent uses when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations (for example: Codex, Responses API, Chat Completions…

    102 GitHub starsUsed in 3 repos~861 tokens
    DevOps & CloudAuto-check passed
  • Burp MCP Vuln Check

    langbyyi/CyberStrikeAI-SRC

    Automate low-impact web vulnerability verification through Burp MCP.

    134 GitHub stars~3.1k tokensUpdated yesterday
    SecurityAuto-check passed
  • Aris Infra

    OpenLAIR/dr-claw

    ARIS (Auto-claude-code-research-in-sleep) infrastructure setup and configuration.

    1.2k GitHub stars~1.4k tokensUpdated 21 days ago
    Agent WorkflowsAuto-check: notes
  • Stock Historical Index

    OctagonAI/skills

    Retrieve full historical end-of-day price data for market indices using Octagon MCP.

    127 GitHub stars~2k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed

More from Yourdaylight/stock_datasource

  • Real-Time Stock Quote Subscriber

    Yourdaylight/stock_datasource

    Streams live A-share, Hong Kong and ETF quotes from a receiver node over a local WebSocket server, with built-in price and volume alert rules.

    188 GitHub stars~559 tokensUpdated 1 mo ago
    Auto-check passed
  • Tushare Plugin Builder

    Yourdaylight/stock_datasource

    Turns a Tushare API doc URL into a full data plugin for the stock_datasource repo: extractor, ClickHouse schema, query service, config and curl examples.

    188 GitHub stars~2.5k tokensUpdated 1 mo ago
    Auto-check passed
  • MCP API Key Authentication

    Yourdaylight/stock_datasource

    Sets up and troubleshoots MCP API key authentication for a stock data service, covering key creation, client configuration and per-tool usage statistics.

    188 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Stock Market Data MCP Query

    Yourdaylight/stock_datasource

    Queries historical A-share, Hong Kong stock, ETF and index data through an MCP server: daily K-lines, financial statements, market indicators and screening.

    188 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Stock Data Assistant

What does Stock Data Assistant do?

Queries A-share, Hong Kong, ETF and index market data over MCP, streams live quotes by WebSocket, and lets you drive both from WeChat through picoclaw. This Chinese-language skill ties together three capabilities from the stock_datasource project. History queries (K-line data, financial statements, index and ETF data) go through an MCP server on port 8001.

When should I use Stock Data Assistant?

Stock Data Assistant fits situations like: looking up daily K-line or financial data for A-share, Hong Kong, ETF or index tickers; subscribing to live quote pushes for a watchlist; letting WeChat messages query a local stock database through picoclaw.

How do I install Stock Data Assistant in Claude Code?

Run `npx skills add Yourdaylight/stock_datasource --skill stock-data-assistant -a claude-code`. Or copy the skill folder (skills/stock-data-assistant in Yourdaylight/stock_datasource) into .claude/skills/stock-data-assistant in your project. Claude Code loads it when a task matches its description.

How do I install Stock Data Assistant in Codex?

Run `npx skills add Yourdaylight/stock_datasource --skill stock-data-assistant -a codex`. Or copy the skill folder (skills/stock-data-assistant in Yourdaylight/stock_datasource) into .agents/skills/stock-data-assistant in your project. Codex loads it when a task matches its description.

Can I use Stock Data Assistant in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Yourdaylight/stock_datasource --skill stock-data-assistant -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stock-data-assistant, .gemini/skills/stock-data-assistant, .github/skills/stock-data-assistant and .opencode/skills/stock-data-assistant in your project.

What does Stock Data Assistant need to run?

Going by SKILL.md and its folder, Stock Data Assistant needs a shell and Python for the scripts in its folder, the command-line tools its instructions call (bash and python3) and credentials named OPENAI_API_KEY and STOCK_MCP_TOKEN. Our summary lists: A running stock_datasource MCP server (port 8001 by default); LLM settings in `.env`, including `OPENAI_API_KEY`; Internet access to download picoclaw from GitHub Releases; A WeChat account to scan the login QR code.

Does Stock Data Assistant access the network?

SKILL.md names 1 domain. In commands or code: api.openai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Stock Data Assistant safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Stock Data Assistant use?

Stock Data Assistant is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stock Data Assistant use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.

What are the alternatives to Stock Data Assistant?

Skills that share tags, products or a category with Stock Data Assistant: Minimal Web Baas Demo (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars), Linkdigest Social Link Reader (sickn33/agentic-awesome-skills, 47k stars), Openai Docs (aafqaq/codex-lb-enhanced, 102 stars) and Burp MCP Vuln Check (langbyyi/CyberStrikeAI-SRC, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stock Data Assistant?

Yourdaylight (a GitHub user) maintains it in Yourdaylight/stock_datasource, which has 188 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 8, 2026.

Source: Yourdaylight/stock_datasource on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.