stock-analysis-enhanced

stock-analysis-enhanced is a skill for Claude Code, Codex from mingli30119/stock-analysis. It costs 91 tokens per session (17,450 once invoked), scanned A, original, MIT.

A stock-research workflow that collects data from more than 30 sources, analyzes a stock’s business and market data, and creates Markdown and interactive HTML reports. It also supports refreshing existing reports with newer data.

In plain words
What is it for?
Producing fundamental, technical, and capital-flow analysis for individual stocks, then creating or updating the resulting reports.
Why use it?
It turns a short stock-analysis request into a repeatable research process and separates first-time reports from data updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Producing fundamental, technical, and capital-flow analysis for individual stocks, then creating or updating the resulting reports.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mingli30119/stock-analysis/stock-analysis"><img src="https://agentmods.dev/badge/skills/mingli30119/stock-analysis/stock-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,450 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.00091 $0.17450
Opus 5 $0.00046 $0.08725
Sonnet 5 $0.00018 $0.03490
Haiku 4.5 $0.00009 $0.01745

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

Security

Grade A, and why

stock-analysis-enhanced 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 9d 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.

SKILL.md · 1,152 lines

How it starts

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

一句话搞定个股分析

版本:v3.1 | 更新:2026-05-30 | 用户说一句话 → 30+数据源采集 → Step 0-8 基本面 + 第9章技术面 + 资金面 → 双主题交互式HTML


📋 快速导航


⚡ 使用方式

场景判断

AI必须根据用户输入的关键词判断场景:

场景A:首次分析(完整流程)

触发关键词:

  • "分析 XXX股票"
  • "个股分析 XXX"
  • "研究 XXX"
  • "生成 XXX报告"
  • 用户明确说"首次分析"

判断逻辑:

  • 用户输入包含上述关键词 → 执行首次分析(Phase 1→2→3)
场景B:增量更新(只更新数据)

触发关键词:

  • "更新 XXX股票"
  • "刷新 XXX报告"
  • "增量更新 XXX"
  • "更新报告"
  • 用户明确说"更新"

判断逻辑:

  1. 用户输入包含上述关键词
  2. 检查 output/个股研究-{股票名称}.html 是否存在
  3. 如果存在 → 执行增量更新
  4. 如果不存在 → 提示用户:"未找到 XXX 的报告,是否需要首次分析?"

场景A:首次分析

当用户说"分析 XXX股票"时,一句话触发全流程:

Phase 1: 数据采集(3-5分钟)

cd G:/vibe/my-skills/stock-analysis-enhanced
python stock_full_report.py <股票代码>

示例:

python stock_full_report.py 600519  # 贵州茅台
python stock_full_report.py 600673  # 东阳光

唯一输出: output/data_<股票代码>.json(包含K线、财务、股东、业务构成等完整数据,供Phase 2/3使用)

⚠️ Phase 1完成后立即进入Phase 2,不要停下来询问用户。JSON只是数据中间产物。

⚠️ Phase 1 新增功能: 自动计算技术指标(MACD/KDJ/RSI/BOLL/MA),保存到 data_{代码}.jsontechnical_indicatorstechnical_signals 字段,供 Phase 3 生成第9章使用。


场景B:增量更新

执行命令:

cd G:/vibe/my-skills/stock-analysis-enhanced副本
python update_stock_report.py <股票代码>

常用参数:

# 基本用法(自动查找HTML文件)
python update_stock_report.py 000066

# 指定HTML文件
python update_stock_report.py 000066 --html output/个股研究-中国长城.html

# 强制更新(跳过检查,直接更新)
python update_stock_report.py 000066 --force

更新内容:

  • ✅ K线数据(rawData数组)
  • ✅ Hero区域(最新价、涨跌幅)
  • ✅ 第9章技术指标(MACD/KDJ/RSI/BOLL图表)
  • ❌ 基本面分析(Step 0-8,不更新)

详细说明: 见本文件末尾"🔄 增量更新详细说明"章节


Phase 2: AI深度分析(30-60分钟)

AI必须手动执行以下步骤:

  1. 读取数据: output/data_<股票代码>.json
  2. 执行MCP搜索: 根据实际需要搜索(通常3-6次)
    • 行业趋势、市场规模
    • 竞争对手、市场份额
    • 券商研报、目标价
    • 最新新闻、政策动态
  3. 逐步完成Step 0-8分析: 严格按照分析框架,每个Step达到要求
  4. 输出MD报告: output/个股研究-<股票名称>.md

Read the full file on GitHub · 1,152 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. 9d ago First seen · 1,152 lines · 91 tokens per session scan A a630ebcd47c9

Subscribe to this mod's changes

stock-analysis-enhanced is a skill published in the GitHub repository mingli30119/stock-analysis (621 stars, last pushed 3mo ago), licensed MIT. It adds 91 tokens to every session and 17,450 once invoked, about $0.0005 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.