npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@altenli/stock-analyzer-skill

v1.3.0

Published

AI编程助手 Skill - 股票综合分析工具,支持基本面/新闻面/资金面/技术面四维分析,含并购重组估值分析模块

Readme

Stock Analyzer Skill

📊 股票综合分析工具 - AI编程助手 Skill

License: GPL v3

功能介绍

根据用户输入的股票名称,从东方财富网获取股票信息,进行基本面、新闻面、资金面三维分析,给出投资建议、买入价位和卖出价位。

兼容性

本Skill兼容所有支持 .codebuddy/skills/ 目录结构的AI编程助手工具。

安装

方式一:从GitHub安装(推荐)

在你的项目目录下运行:

npx github:AltenLi/stock-analyzer-skill

或者使用完整URL:

npx https://github.com/AltenLi/stock-analyzer-skill.git

方式二:全局安装

npm install -g github:AltenLi/stock-analyzer-skill
stock-analyzer-skill

方式三:手动安装

  1. 克隆仓库:
git clone https://github.com/AltenLi/stock-analyzer-skill.git
  1. skill/ 目录复制到你的项目:
cp -r stock-analyzer-skill/skill/ your-project/.codebuddy/skills/stock-analyzer/

特性

  • 🔍 智能搜索:模拟东方财富主页搜索框,根据股票名称自动获取股票代码
  • 📈 多维分析
    • 基本面(35%):PE/PB估值、ROE、成长性、财务健康
    • 新闻面(20%):公告、研报、舆情分析
    • 资金面(35%):主力净比(核心指标)、北向资金、融资融券
    • 技术面(10%):均线、支撑压力位
  • 💰 投资建议:综合评分 + 买入/卖出价位建议
  • 📄 双重输出:Markdown报告 + 可视化HTML网页
  • ⏱️ 防限流:每次请求延迟1秒,避免被东方财富限流

触发关键词

  • 分析股票、股票推荐、股票买卖点
  • 股票研究、A股分析
  • 东方财富 + 股票查询

使用示例

用户:帮我分析一下赛微电子这只股票

Skill会自动:

  1. 引导登录东方财富(避免限流)
  2. 搜索获取股票代码
  3. 下钻获取基本面、新闻面、资金面数据
  4. 生成综合分析报告

核心指标

主力净比(资金面核心)

直接从东方财富资金流向页面读取:

  • 页面:https://data.eastmoney.com/zjlx/{股票代码}.html
  • 位置:实时资金流向区域

| 主力净比 | 评级 | |---------|------| | > 10% | 🔴 强势介入 | | 5%-10% | 🟠 明显流入 | | 0%-5% | 🟡 小幅流入 | | -5%-0% | 🟢 小幅流出 | | < -5% | ⚫ 明显流出 |

目录结构

stock-analyzer-skill/
├── package.json              # npm包配置
├── bin/
│   └── install.js            # 安装脚本
├── skill/                    # Skill源文件(标准结构)
│   ├── SKILL.md              # 主skill定义(必需)
│   ├── scripts/              # 可执行脚本
│   │   ├── fetch_stock.py    # Selenium股票数据抓取工具
│   │   └── requirements.txt  # Python依赖
│   ├── references/           # 参考文档
│   │   └── eastmoney_guide.md
│   └── assets/               # 输出资源(模板等)
│       ├── report_template.md
│       └── report_template.html
├── README.md
└── LICENSE

Skill 标准目录说明

| 目录 | 用途 | 说明 | |------|------|------| | scripts/ | 可执行脚本 | 需要确定性执行的代码,如数据抓取 | | references/ | 参考文档 | Claude 按需加载的详细文档 | | assets/ | 输出资源 | 模板、图片等用于生成输出的文件 |

注意事项

  • ⏱️ 每次请求东方财富延迟1秒,避免限流
  • 🔐 建议先登录东方财富获取完整数据
  • ⚠️ 本工具仅供参考,不构成投资建议

License

GNU General Public License v3.0

免责声明

本工具仅供学习和参考,不构成任何投资建议。股市有风险,投资需谨慎。使用者应自行承担投资风险。