Agent skill

Stock Analyst

by chengzuopeng in chengzuopeng/stock-sdk-mcp

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

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

Install Stock Analyst

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

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

GitHub CLI
$ gh skill install chengzuopeng/stock-sdk-mcp stock-analyst --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/stock-analyst .claude/skills/stock-analyst && 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-analyst
GitHub stars
103
Token cost
~613 tokens
SKILL.md length
156 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
ISC

At a glance

  • Works in 6 steps: 趋势判断 → MACD 分析 → KDJ 分析 → …
  • SKILL.md covers 描述, 能力范围, 使用方法 and 执行步骤, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Stock Analyst is a skill in chengzuopeng/stock-sdk-mcp (103 stars). Its SKILL.md is about 613 tokens. Licence: ISC.

Workflow steps

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

  1. 趋势判断
  2. MACD 分析
  3. KDJ 分析
  4. RSI 分析
  5. 布林带分析
  6. 支撑/压力位

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 and markdown).

    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

Stock Analyst loads about 613 tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 156 words of instructions outside code blocks.

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

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). 156 words, ~613 tokens.

Download SKILL.mdSave it as .claude/skills/stock-analyst/SKILL.md (or your agent's skills folder).
name
stock-analyst
description
股票技术分析专家 - 提供专业的 K 线形态、技术指标、资金流向与北向持仓分析
version
1.0
author
chengzuopeng
tags
stock, technical-analysis, investment
requires.mcp_servers
stock-sdk

📊 股票技术分析专家

描述

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

能力范围

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

使用方法

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

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

执行步骤

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

步骤 1: 获取全景数据

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

json
{
  "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: 资金面分析

基于 fundFlowHistory 和 northboundHolding 数据,分析:

  1. 主力资金趋势:

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

    • 外资持仓是在增加还是减少?
    • 增减幅度是否显著?
步骤 5: 输出分析报告

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

markdown
## 📈 技术分析报告: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 接近超买区,建议等待回调后再介入或设好止损...

© 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/stock-analyst of chengzuopeng/stock-sdk-mcp.

Open the folder on GitHubat commit 6b57f40

Compare with similar skills

Stock Analyst 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 Analyst compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stock Analyst this skillchengzuopeng/stock-sdk-mcp103—~613Automated safety check: PassISC
StockMagicCube/agentara516—~1.1kAutomated safety check: PassNone
Stock Analysisalirezarezvani/claude-skills28k—~8.5kAutomated safety check: PassMIT
Xvary Stock Researchsickn33/agentic-awesome-skills47k2 repos~952Automated safety check: PassMIT
Inventory Stock Reconciliationsickn33/agentic-awesome-skills47k1 repos~6.4kAutomated safety check: PassMIT
Stock Correlationhimself65/finance-skills3.4k—~3.3kAutomated safety check: PassMIT

Similar skills

  • Stock

    MagicCube/agentara

    Query stock quotes for US stocks, Hong Kong stocks, and A-shares.

    516 GitHub stars~1.1k tokensUpdated 5 mo ago
    Business, Finance & HRAuto-check passed
  • Stock Analysis

    alirezarezvani/claude-skills

    Produce a rigorous, sector-relative, multi-factor fundamental analysis of a publicly listed company — Indian (NSE/BSE) or US/global.

    28k GitHub stars~8.5k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Xvary Stock Research

    sickn33/agentic-awesome-skills

    Thesis-driven equity analysis from public SEC EDGAR and market data; /analyze, /score, /compare workflows with bundled Python tools (Claude Code, Cursor, Codex).

    47k GitHub starsUsed in 2 repos~952 tokens
    Business, Finance & HRAuto-check passed
  • Inventory Stock Reconciliation

    sickn33/agentic-awesome-skills

    Stock reconciliation register: count date, item, warehouse, book vs physical quantity, variance quantity and value, variance reason, damage and expiry, adjustment and approval.

    47k GitHub starsUsed in 1 repo~6.4k tokens
    Business, Finance & HRAuto-check passed
  • Stock Correlation

    himself65/finance-skills

    Analyze how stocks move together using Yahoo Finance price history (yfinance): find correlated peers for a ticker, measure correlation, beta, and spread between specific tickers, cluster a group…

    3.4k GitHub stars~3.3k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed
  • Stock Liquidity

    himself65/finance-skills

    Analyze how liquid a stock is using Yahoo Finance data (yfinance): bid-ask spreads, volume and dollar volume (ADTV), top-of-book and options depth, square-root market impact and slippage estimates…

    3.4k GitHub stars~4.9k tokensUpdated 6 days ago
    Business, Finance & HRAuto-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
  • Realtime Monitor

    chengzuopeng/stock-sdk-mcp

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

    103 GitHub stars~529 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 Screener

    chengzuopeng/stock-sdk-mcp

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

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

Questions about Stock Analyst

How do I install Stock Analyst in Claude Code?

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

How do I install Stock Analyst in Codex?

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

Can I use Stock Analyst 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 stock-analyst -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-analyst, .gemini/skills/stock-analyst, .github/skills/stock-analyst and .opencode/skills/stock-analyst in your project.

What does Stock Analyst need to run?

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

Does Stock Analyst 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 Stock Analyst 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 Stock Analyst use?

Stock Analyst 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 Stock Analyst use?

About 613 tokens (SKILL.md is roughly 2.5k 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 Stock Analyst?

Skills that share tags, products or a category with Stock Analyst: Stock (MagicCube/agentara, 516 stars), Stock Analysis (alirezarezvani/claude-skills, 28k stars), Xvary Stock Research (sickn33/agentic-awesome-skills, 47k stars) and Inventory Stock Reconciliation (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stock Analyst?

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.