This is a complete stock analysis pipeline that pulls real market data, calculates technical indicators, and generates trading signals with price targets. You give it ticker symbols (A-shares, Hong Kong, US stocks), and it runs a Python script to fetch quotes and compute MA/MACD/RSI/volume metrics, then searches recent news and synthesizes everything into a decision dashboard. The workflow is thorough: it has fallback data sources (Tushare to akshare to yfinance), hard rules to prevent chasing overheated stocks (no buy signal if RSI over 80 or 5-day deviation above 5%), and formats output as actionable cards with stop-loss and target prices. It's overkill if you just want a quote, but solid if you're prototyping an analysis tool and want the data plumbing handled.

skills.sh installs
312
GitHub stars
144
last updated
Aug 21, 2026

Install

$ npx -y skills add liusai0820/stock-analysis-skill --skill stock-analysis --agent claude-code

Installs into .claude/skills of the current project.

Files

Stock Analysis Skill

你是一位专业的股票分析师,通过 Python 脚本获取真实市场数据,结合技术分析和消息面,为用户生成决策看板。

核心原则:你自己就是 AI 分析引擎,不调用外部 LLM。Python 脚本只负责"取数据 + 算指标",你负责"分析判断 + 出报告"。

工作流

用户输入(股票代码/名称)
      │
      ▼
[STEP 1] 解析输入 → 识别市场,标准化代码
      │
      ▼
[STEP 2] 运行 Python 数据脚本 → JSON(行情 + 技术指标 + 评分)
      │   Read references/stock_data_fetcher.py → Write /tmp/ → Bash 执行
      ▼
[STEP 3] WebSearch 搜索每只股票最新新闻(2-3条/股)
      │
      ▼
[STEP 4] 综合分析(Read references/analysis-prompt-template.md)
      │   技术面 + 消息面 → 操作建议 + 目标价 + 止损价
      ▼
[STEP 5] 输出决策看板(Read references/output-format-template.md)

STEP 1: 解析输入

股票代码识别规则

格式市场示例数据源
6位数字 (6/0/3开头)A股600519, 000001, 300750akshare
HK + 5位数字港股HK00700, HK09988akshare
1-5位大写字母美股AAPL, TSLA, PLTRyfinance

处理逻辑

  • 多只股票用逗号、空格或换行分隔
  • 如果用户输入中文公司名(如"贵州茅台"),先用 WebSearch 查找对应股票代码
  • 去除可能的后缀(.SH/.SZ/.SS)或前缀(SH/SZ)

数据源配置(可选,增强数据质量)

脚本支持分级降级策略,零配置即可运行,配置 API Key 后数据更精准:

Sponsors

Details

Repository
github.com/liusai0820/stock-analysis-skill
Category
Finance & Trading
First seen
Jun 3, 2026
1chengzuopeng avatarstock-screenerchengzuopeng/stock-sdk-mcp股票筛选器 - 按条件筛选全市场股票,找出符合策略的标的277skills.sh installs
2membranedev avatarstripemembranedev/application-skillsStripe integration. Manage Customers, Products, Payouts, Transfers. Use when the user wants to interact with Stripe data.277skills.sh installs
3andrelandgraf avatarstripe-subscriptionsandrelandgraf/fullstackrecipesComplete subscription billing system with Stripe integration, feature flags for plan gating, webhook handling, and billing portal.269skills.sh installs
4octagonai avatarfinancial-health-scoresoctagonai/skillsRetrieve financial health scores including Altman Z-Score and Piotroski Score for public companies. Use when assessing bankruptcy risk, financial strength, valu269skills.sh installs
5tjefferson avatarstock-price-querytjefferson/stock-price-query实时股票行情查询,支持 A 股、港股、美股及大盘指数,支持批量查询。无需 API Key。Real-time stock & index quotes for A-shares, HK & US markets. Batch supported.257skills.sh installs
6sickn33 avatarpayment-integrationsickn33/antigravity-awesome-skillspayment integration252skills.sh installs