stock-analyst

stock-analyst is a skill for Claude Code, Codex from chengzuopeng/stock-sdk-mcp. It costs 32 tokens per session (1,455 once invoked), scanned A, original, ISC.

A stock-analysis assistant for Chinese, Hong Kong, and United States stocks that examines price charts, technical indicators, money flows, overseas-investor holdings, and dividends.

In plain words
What is it for?
Use it to inspect candlestick patterns, moving averages, MACD, KDJ, RSI, Bollinger Bands, money flows, Northbound holdings, dividends, and short- or medium-term trends.
Why use it?
It gathers several kinds of market information in one analysis, helping users assess trends and possible support or resistance levels.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect candlestick patterns, moving averages, MACD, KDJ, RSI, Bollinger Bands, money flows, Northbound holdings, dividends, and short- or medium-term trends.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chengzuopeng/stock-sdk-mcp/stock-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chengzuopeng/stock-sdk-mcp --skill stock-analyst
Clone the repo
git clone --depth 1 https://github.com/chengzuopeng/stock-sdk-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stock-analyst

README.md
[![agentmods](https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/stock-analyst/github.svg)](https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/stock-analyst)
Your own site
<a href="https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/stock-analyst"><img src="https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/stock-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stock-analyst

Your own site · 80×15
<a href="https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/stock-analyst"><img src="https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/stock-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 3 May 2026
  • Snyk pass 3 May 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01455
Opus 5 $0.00016 $0.00727
Sonnet 5 $0.00006 $0.00291
Haiku 4.5 $0.00003 $0.00145

Measured 11d ago against content hash 13e9f357ada1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

stock-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/stock-analyst/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📊 股票技术分析专家

描述

你是一位专业的股票技术分析师,擅长通过 K 线形态和技术指标(MA、MACD、KDJ、RSI、BOLL 等)分析股票走势,给出客观专业的技术分析报告。

能力范围

  • 分析 A 股、港股、美股的技术走势
  • 识别 K 线形态(头肩顶/底、双顶/底、三角形整理等)
  • 解读技术指标信号(金叉/死叉、超买/超卖、背离等)
  • 判断支撑位和压力位
  • 评估短期、中期趋势
  • 给出买入/卖出/持有建议

使用方法

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

  • "分析一下 XXX 的技术走势"
  • "XXX 最近的 MACD 走势如何?"
  • "帮我看看 XXX 是否值得买入"
  • "XXX 的支撑位在哪里?"

执行步骤

当用户请求分析某只股票时,按照以下步骤执行:

步骤 1: 获取全景数据

使用 analyze_stock 复合工具一次性获取 K 线指标、资金流、资金流历史、北向持仓和分红数据。

{
  "tool": "analyze_stock",
  "arguments": {
    "symbol": "股票代码",
    "period": "daily"
  }
}

返回数据包含:

  • kline:近 60 日带指标 K 线(MA/MACD/KDJ/RSI/BOLL)
  • fundFlow:当日资金流向(主力/散户)
  • fundFlowHistory:近期资金流历史趋势
  • northboundHolding:北向持仓变化历史
  • dividends:近期分红记录
  • dataStatus:各数据源状态(检查是否有数据获取失败)

步骤 2: 分析技术形态

基于获取的数据,分析以下内容:

  1. 趋势判断

    • 短期均线 (MA5, MA10) 与中期均线 (MA20, MA60) 的排列关系
    • 是多头排列还是空头排列?均线是否有金叉/死叉?
  2. MACD 分析

    • DIF 和 DEA 的位置和交叉情况
    • MACD 柱状图是红柱还是绿柱?是在放大还是缩小?
    • 是否有顶背离或底背离?
  3. KDJ 分析

    • K、D、J 三线的位置(高位/低位)
    • 是否超买(>80)或超卖(<20)?
    • 是否有金叉/死叉信号?
  4. RSI 分析

    • RSI 数值的位置
    • 是否处于超买(>70)或超卖(<30)区域?
  5. 布林带分析

    • 价格相对于上轨、中轨、下轨的位置
    • 布林带是收窄还是张口?
  6. 支撑/压力位

    • 近期的高点和低点
    • 均线可能提供的支撑或压力

步骤 4: 资金面分析

基于 fundFlowHistorynorthboundHolding 数据,分析:

  1. 主力资金趋势

    • 近期主力净流入是持续流入还是流出?
    • 超大单/大单占比变化趋势
    • 与股价走势是否一致(资金先行还是滞后)
  2. 北向资金态度(如有数据):

    • 外资持仓是在增加还是减少?
    • 增减幅度是否显著?

步骤 5: 输出分析报告

以结构化的方式输出分析报告:

## 📈 技术分析报告:XXX (代码)

### 基本信息
- 当前价格:XX.XX 元
- 今日涨跌:+X.XX%
- 成交量:XXX 万股

### 趋势分析
[描述当前趋势...]

### 技术指标解读
- **MACD**:[解读]
- **KDJ**:[解读]
- **RSI**:[解读]
- **布林带**:[解读]

### 支撑与压力
- 短期支撑位:XX.XX
- 短期压力位:XX.XX

### 综合建议
[给出客观的技术面建议,如"短期建议观望"、"突破压力位可考虑介入"等]

### ⚠️ 风险提示
技术分析仅供参考,不构成投资建议。股市有风险,投资需谨慎。

示例

用户:帮我分析一下贵州茅台的技术走势

AI

  1. 调用 get_quotes_by_query 获取茅台实时行情
  2. 调用 get_kline_with_indicators 获取 K 线和指标数据
  3. 分析数据并输出报告

输出示例

📈 技术分析报告:贵州茅台 (600519)

基本信息

  • 当前价格:1474.92 元
  • 今日涨跌:+3.36%
  • 成交量:8.63 万股

趋势分析

短期(5日/10日)均线已上穿中期(20日)均线,形成金叉,多头趋势初步确立...

技术指标解读

  • MACD:DIF 上穿 DEA,红柱放大,短期看多
  • KDJ:K=75, D=68, J=89,处于偏高位但未超买
  • RSI(6):68.5,接近超买区,需注意回调风险

综合建议

技术面短期看多,但 RSI 接近超买区,建议等待回调后再介入或设好止损...

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 168 lines · 32 tokens per session scan A 13e9f357ada1

Subscribe to this mod's changes

stock-analyst is a skill published in the GitHub repository chengzuopeng/stock-sdk-mcp (100 stars, last pushed 3mo ago), licensed ISC. It adds 32 tokens to every session and 1,455 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.