stock-technical-analysis

stock-technical-analysis is a skill for Claude Code, Codex from ZICXR/A-Stock-Skills. It costs 126 tokens per session (919 once invoked), scanned A, original, MIT.

A stock-chart analysis tool for Chinese A-share stocks. It examines price charts, trends, overbought or oversold conditions, and possible support and resistance levels.

In plain words
What is it for?
Use it to retrieve historical candlestick data, identify chart patterns, assess moving-average and MACD trends, check KDJ and RSI conditions, calculate price levels, or run a full technical review of a stock.
Why use it?
It brings several common chart checks into one analysis instead of requiring you to calculate each indicator separately. It also summarizes the results as a buy, sell, or wait signal.

Skill for Claude CodeCodex

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

Good fit Use it to retrieve historical candlestick data, identify chart patterns, assess moving-average and MACD trends, check KDJ and RSI conditions, calculate price levels, or run a full technical review of a stock.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zicxr/a-stock-skills/stock-technical-analysis
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 ZICXR/A-Stock-Skills --skill stock-technical-analysis
Clone the repo
git clone --depth 1 https://github.com/ZICXR/A-Stock-Skills

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-technical-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/zicxr/a-stock-skills/stock-technical-analysis/github.svg)](https://agentmods.dev/skills/zicxr/a-stock-skills/stock-technical-analysis)
Your own site
<a href="https://agentmods.dev/skills/zicxr/a-stock-skills/stock-technical-analysis"><img src="https://agentmods.dev/badge/skills/zicxr/a-stock-skills/stock-technical-analysis/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-technical-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/zicxr/a-stock-skills/stock-technical-analysis"><img src="https://agentmods.dev/badge/skills/zicxr/a-stock-skills/stock-technical-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 919 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.
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.00126 $0.00919
Opus 5 $0.00063 $0.00460
Sonnet 5 $0.00025 $0.00184
Haiku 4.5 $0.00013 $0.00092

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

Security

Grade A, and why

stock-technical-analysis 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (main.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/04-stock-analysis/stock-technical-analysis/SKILL.md · 92 lines

What it actually says

A 股个股技术面分析 Skill

何时使用

  • 用户要求分析某只股票的技术面
  • 用户需要 K 线形态识别
  • 用户需要买卖信号
  • 用户需要支撑压力位
  • 用户需要超买超卖判断

提供能力

K线数据

  • get_kline(code, days, adjust) - 历史 K 线

K线形态

  • detect_patterns(df) - 形态识别 (十字星/锤子线/吞没/早晨之星/黄昏之星)

趋势研判

  • analyze_trend(df) - 综合趋势 (均线+MACD)
  • generate_trading_signal(df) - 买卖信号 (买入/卖出/观望)

超买超卖

  • detect_obs(df) - KDJ + RSI 超买超卖

支撑压力

  • calc_support_pressure(df, window) - 支撑压力位 (R1/R2/S1/S2)

综合

  • full_technical_analysis(code, days) - 一键综合分析

使用方式

python main.py kline 000001 --days 120 --adjust qfq   # K线
python main.py trend 000001 --days 60                   # 趋势
python main.py signal 000001 --days 60                  # 买卖信号
python main.py patterns 000001 --days 5                 # K线形态
python main.py full 000001 --days 120                   # 综合分析

Python API

from skills.04-stock-analysis.stock-technical-analysis.main import full_technical_analysis

result = full_technical_analysis("000001", days=120)
# {
#   'patterns': [{'date': ..., 'pattern': '锤子线', 'signal': '看涨'}],
#   'trend': {'trend': '上涨', 'score': 4, 'signals': [...]},
#   'overbought_oversold': {'level': '超买', 'K': 88, 'D': 85, 'J': 95},
#   'support_pressure': {'R1': 13.5, 'S1': 12.0, ...},
#   'trading_signal': {'signal': '买入', 'strength': '强', 'buy_signals': [...], 'sell_signals': [...]}
# }

买卖信号生成规则

买入信号 (满足>=2个且多于卖出):

  • 均线多头排列
  • MACD 金叉
  • KDJ 低位 (<50) 金叉
  • 放量上涨 (量比 > 1.5)

卖出信号 (满足>=2个且多于买入):

  • 均线空头排列
  • MACD 死叉
  • KDJ 高位 (>50) 死叉
  • 放量下跌

K线形态

形态 信号 描述
十字星 反转 多空胶着, 关注变盘
锤子线 看涨 下影线长, 多方力量
看涨吞没 看涨 阳包阴, 强势反转
看跌吞没 看跌 阴包阳, 弱势反转

依赖

akshare>=1.12.0
pandas>=1.5.0
numpy>=1.22.0
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 92 lines · 126 tokens per session scan A 82607bb31c19

Subscribe to this mod's changes

stock-technical-analysis is a skill published in the GitHub repository ZICXR/A-Stock-Skills (25 stars, last pushed 2mo ago), licensed MIT. It adds 126 tokens to every session and 919 once invoked, about $0.0006 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.