Agent skill

Realtime Monitor

by chengzuopeng in chengzuopeng/stock-sdk-mcp

“实时监控 - 持续跟踪自选股行情,设置价格提醒”

— description from SKILL.md by chengzuopeng
ISCAuto-check passed

Install Realtime Monitor

skills CLI
$ npx skills add chengzuopeng/stock-sdk-mcp --skill realtime-monitor -a claude-code

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

GitHub CLI
$ gh skill install chengzuopeng/stock-sdk-mcp realtime-monitor --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/chengzuopeng/stock-sdk-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/realtime-monitor .claude/skills/realtime-monitor && 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
realtime-monitor
GitHub stars
103
Token cost
~529 tokens
SKILL.md length
76 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
ISC

At a glance

  • Works in 3 steps: 调用 get_quotes_by_query 查询茅台和腾讯 → 计算相对买入价的盈亏比例 → 输出持仓盈亏表格
  • SKILL.md covers 描述, 能力范围, 使用方法 and 执行步骤, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Realtime Monitor is a skill in chengzuopeng/stock-sdk-mcp (103 stars). Its SKILL.md is about 529 tokens. Licence: ISC.

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 调用 get_quotes_by_query 查询茅台和腾讯
  2. 计算相对买入价的盈亏比例
  3. 输出持仓盈亏表格

What it can do on your machine

Read from SKILL.md and the folder at commit 6b57f40. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json, markdown and yaml).

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Realtime Monitor loads about 529 tokens when it runs. Until then it costs about 10 tokens; SKILL.md has 76 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~10
When it runs · the whole SKILL.md, loaded when a task matches
~529

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 passed

The automated check found no risky patterns in SKILL.md.

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 chengzuopeng/stock-sdk-mcp at commit 6b57f40, republished under its ISC licence (© chengzuopeng). 76 words, ~529 tokens.

Download SKILL.mdSave it as .claude/skills/realtime-monitor/SKILL.md (or your agent's skills folder).
name
realtime-monitor
description
实时监控 - 持续跟踪自选股行情,设置价格提醒
version
1.0
author
chengzuopeng
tags
stock, monitor, alert
requires.mcp_servers
stock-sdk

🔔 实时监控

描述

你是一个股票实时监控助手,能够帮助用户跟踪一组自选股的实时行情,并在价格变化时提供及时的信息更新。

能力范围

  • 批量查询多只股票的实时行情
  • 跨市场监控(A 股 + 港股 + 美股混合)
  • 识别异动股票(大涨/大跌)
  • 比较持仓盈亏情况

使用方法

用户可以通过以下方式触发:

  • "帮我看看这几只股票:茅台、腾讯、苹果"
  • "查一下我的持仓:600519 买入价 1400,00700 买入价 350"
  • "监控一下创业板 ETF 和纳指 ETF"

执行步骤

步骤 1: 解析用户的股票列表

从用户输入中提取:

  • 股票名称/代码列表
  • 买入价格(如有)
  • 持仓数量(如有)
步骤 2: 查询实时行情

使用 get_quotes_by_query 批量查询:

json
{
  "tool": "get_quotes_by_query",
  "arguments": {
    "queries": ["茅台", "腾讯", "苹果"]
  }
}

或使用分市场精确查询:

json
{
  "tool": "get_a_share_quotes",
  "arguments": { "codes": ["sh600519"] }
}
json
{
  "tool": "get_hk_quotes",
  "arguments": { "codes": ["00700"] }
}
json
{
  "tool": "get_us_quotes",
  "arguments": { "codes": ["AAPL"] }
}
步骤 3: 整理输出
基础监控模式
markdown
## 📱 自选股实时行情

更新时间:HH:MM:SS

| 股票 | 现价 | 涨跌幅 | 今开 | 最高 | 最低 | 成交额 |
|------|------|--------|------|------|------|--------|
| 贵州茅台 | 1474.92 | +3.36% | 1445 | 1476 | 1443 | 12.6亿 |
| 腾讯控股 | 388.6 | +1.25% | 385 | 390 | 384 | 25.3亿 |
| 苹果公司 | 185.5 | -0.45% | 186 | 187 | 185 | - |

📊 **异动提醒**:
- 🔥 贵州茅台今日涨幅超过 3%,创近期新高
持仓盈亏模式

如果用户提供了买入价格:

markdown
## 💰 持仓盈亏一览

| 股票 | 现价 | 买入价 | 盈亏比例 | 盈亏金额(假设100股) |
|------|------|--------|----------|---------------------|
| 贵州茅台 | 1474.92 | 1400 | +5.35% | +7,492 元 |
| 腾讯控股 | 388.6 | 350 | +11.03% | +3,860 港元 |

📈 **持仓总评**:整体盈利,表现良好
步骤 4: 异动检测

自动检测并提醒:

  • 涨幅/跌幅超过 5%
  • 接近涨停/跌停
  • 相对买入价有较大波动

高级用法

设置价格提醒

用户可以说:"当茅台跌破 1400 时提醒我"

AI 记录条件,并在后续查询时检查:

markdown
⚠️ **价格触发提醒**:
贵州茅台当前价格 1395.50,已跌破你设置的 1400 关注价位!
定时刷新

配合 OpenClaw 的定时任务功能,可实现定时推送:

yaml
# OpenClaw 定时任务配置
schedules:
  stock-monitor:
    cron: "*/5 9-15 * * 1-5"  # 交易时间每 5 分钟
    skill: realtime-monitor
    input:
      stocks: ["600519", "00700", "AAPL"]

示例

用户:帮我看一下持仓情况:茅台买入价 1400,腾讯买入价 350

AI:

  1. 调用 get_quotes_by_query 查询茅台和腾讯
  2. 计算相对买入价的盈亏比例
  3. 输出持仓盈亏表格

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

Files

Just SKILL.md in skills/realtime-monitor of chengzuopeng/stock-sdk-mcp.

Open the folder on GitHubat commit 6b57f40

Compare with similar skills

Realtime Monitor 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.

Realtime Monitor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Realtime Monitor this skillchengzuopeng/stock-sdk-mcp103—~529Automated safety check: PassISC
Qdrant Monitoringgithub/awesome-copilot40k1 repos~276Automated safety check: PassMIT
Monitoring Capture ServicePostHog/posthog40k—~5kAutomated safety check: PassCustom licence
Monitoring Ingestion PipelinePostHog/posthog40k—~9.1kAutomated safety check: PassCustom licence
Agent Performance Monitorruvnet/ruflo74k2 repos~4.9kAutomated safety check: PassMIT
Monitor Streamruvnet/ruflo74k—~188Automated safety check: PassMIT

Similar skills

  • Qdrant Monitoring

    github/awesome-copilot

    Official

    Guides Qdrant monitoring and observability setup. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~276 tokens
    DevOps & CloudAuto-check passed
  • Official

    Guide for using the Grafana MCP to monitor and diagnose the capture service (rust/capture) in production.

    40k GitHub stars~5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Official

    Guide for using the Grafana MCP to monitor and diagnose the Node.js ingestion pipeline workers in production.

    40k GitHub stars~9.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Agent skill for performance-monitor - invoke with $agent-performance-monitor

    74k GitHub starsUsed in 2 repos~4.9k tokens
    Auto-check passed
  • Monitor Stream

    ruvnet/ruflo

    Stream live swarm events using the Monitor tool for real-time observability

    74k GitHub stars~188 tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Monitoring Expert

    Jeffallan/claude-skills

    Sets up application monitoring: structured logs, Prometheus metrics, OpenTelemetry tracing, Grafana dashboards, alert rules and load tests with k6 or Artillery.

    12k GitHub stars~1.6k tokensUpdated 7 days ago
    DevOps & CloudAuto-check passed

More from chengzuopeng/stock-sdk-mcp

  • Market Overview

    chengzuopeng/stock-sdk-mcp

    市场概览 - 快速了解大盘走势和热点板块,把握市场脉搏

    103 GitHub stars~482 tokensUpdated 4 mo ago
    Auto-check passed
  • Smart Money Tracker

    chengzuopeng/stock-sdk-mcp

    聪明钱追踪师 - 综合北向资金、龙虎榜、大宗交易、资金流向,追踪主力资金动向

    103 GitHub stars~645 tokensUpdated 4 mo ago
    Auto-check passed
  • Stock Analyst

    chengzuopeng/stock-sdk-mcp

    股票技术分析专家 - 提供专业的 K 线形态、技术指标、资金流向与北向持仓分析

    103 GitHub stars~613 tokensUpdated 4 mo ago
    Auto-check passed
  • Stock Screener

    chengzuopeng/stock-sdk-mcp

    股票筛选器 - 按条件筛选全市场股票,找出符合策略的标的

    103 GitHub stars~676 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Realtime Monitor

How do I install Realtime Monitor in Claude Code?

Run `npx skills add chengzuopeng/stock-sdk-mcp --skill realtime-monitor -a claude-code`. Or copy the skill folder (skills/realtime-monitor in chengzuopeng/stock-sdk-mcp) into .claude/skills/realtime-monitor in your project. Claude Code loads it when a task matches its description.

How do I install Realtime Monitor in Codex?

Run `npx skills add chengzuopeng/stock-sdk-mcp --skill realtime-monitor -a codex`. Or copy the skill folder (skills/realtime-monitor in chengzuopeng/stock-sdk-mcp) into .agents/skills/realtime-monitor in your project. Codex loads it when a task matches its description.

Can I use Realtime Monitor 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 chengzuopeng/stock-sdk-mcp --skill realtime-monitor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/realtime-monitor, .gemini/skills/realtime-monitor, .github/skills/realtime-monitor and .opencode/skills/realtime-monitor in your project.

What does Realtime Monitor need to run?

SKILL.md names no scripts, command-line tools or credentials: Realtime Monitor is instructions for the agent only.

Does Realtime Monitor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Realtime Monitor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Realtime Monitor use?

Realtime Monitor is published under the ISC licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Realtime Monitor use?

About 529 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Realtime Monitor?

Skills that share tags, products or a category with Realtime Monitor: Qdrant Monitoring (github/awesome-copilot, 40k stars), Monitoring Capture Service (PostHog/posthog, 40k stars), Monitoring Ingestion Pipeline (PostHog/posthog, 40k stars) and Agent Performance Monitor (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Realtime Monitor?

chengzuopeng (a GitHub user) maintains it in chengzuopeng/stock-sdk-mcp, which has 103 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on May 24, 2026.

Source: chengzuopeng/stock-sdk-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.