← 返回 Skills 市场
evanslin99

Csi Stock Analyzer

作者 evanslin99 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
337
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install csi-stock-analyzer
功能描述
专业A股投资分析工具,支持实时行情获取、技术指标分析(MACD/KDJ/RSI/EMA)、 智能数据缓存、新闻舆情分析。适用于中证2000成分股及全市场股票分析。 使用场景: 1. 需要分析某只股票的买入/卖出时机 2. 需要获取股票的技术指标信号(金叉/死叉/超买/超卖) 3. 需要批量分析中证2000成分股...
使用说明 (SKILL.md)

CSI 股票分析器

专业A股投资分析工具,提供实时行情、技术分析、智能缓存和舆情监控。

核心功能

  • 实时行情获取: 全A股实时数据
  • 技术分析: MACD、KDJ、RSI、EMA四大指标
  • 智能缓存: SQLite本地缓存,增量更新
  • 交易信号: 自动识别金叉/死叉/超买/超卖
  • 舆情分析: 新闻监控和情感分析

快速开始

from core.stock_analyzer import AdvancedStockAnalyzer

analyzer = AdvancedStockAnalyzer()
result = analyzer.comprehensive_analysis('000977', days=120)

print(f"评级: {result['recommendation']['overall']}")
print(f"建议: {result['recommendation']['action']}")

技术指标说明

MACD

  • 金叉买入: DIF上穿DEA,MACD柱由负转正
  • 死叉卖出: DIF下穿DEA,MACD柱由正转负

KDJ

  • 超卖买入: J值\x3C0且回升,或K线上穿D线
  • 超买卖出: J值>100且回落,或K线下穿D线

RSI

  • 超卖买入: RSI\x3C30且回升
  • 超买卖出: RSI>70且回落

EMA

  • 多头排列: 价格>EMA20>EMA60
  • 空头排列: 价格\x3CEMA20\x3CEMA60

项目结构

csi2000_analyzer/
├── core/
│   ├── data_fetcher.py
│   ├── data_cache.py
│   ├── stock_analyzer.py
│   ├── news_analyzer.py
│   └── database.py
├── data/cache/
├── config.yaml
└── main.py

免责声明

本工具提供的所有数据和分析结果仅供参考,不构成任何投资建议。投资者应独立判断,自负盈亏。

安全使用建议
This package appears to implement the advertised stock-analysis features and will call an external news API (api.tavily.com) and optionally market-data services. Before installing: 1) Be aware you must supply a TAVILY_API_KEY (and optionally other market tokens) even though the registry metadata doesn't list it — check README/config.yaml and avoid entering sensitive or unrelated credentials. 2) Review requirements.txt and run in an isolated environment (virtualenv/container) because it installs network-capable libraries (requests, pandas, etc.). 3) Expect the skill to create ./data/cache and ./reports on disk; if you want no external network access, run with include_news=False or don't set the API key. 4) Verify the Tavily service and API key provider you trust; avoid providing high‑privilege secrets. 5) Because source and homepage are unknown, prefer running first in a sandbox, inspect requirements and the few request calls (api.tavily.com) in core/data_fetcher.py, and only then use it with real credentials.
功能分析
Type: OpenClaw Skill Name: csi-stock-analyzer Version: 1.0.0 The csi-stock-analyzer skill bundle is a legitimate stock analysis tool designed for the A-share market. It includes modules for technical analysis (MACD, KDJ, RSI, EMA), financial report evaluation, and news sentiment analysis using the Tavily API and web scraping from reputable sources like Eastmoney and Baidu. The code logic is transparent, lacks obfuscation, and does not exhibit signs of data exfiltration, unauthorized execution, or prompt injection. While some data fetching methods currently use simulated data or basic scraping (fetch_news.py), the behavior is consistent with the stated purpose of providing investment insights.
能力评估
Purpose & Capability
Code implements real-time/news/technical/financial analysis consistent with the skill description. It uses a news API (api.tavily.com) and placeholders for market-data providers (tushare/akshare). However the registry metadata declares no required env vars/credentials while the code and README expect TAVILY_API_KEY (and optionally TUSHARE_TOKEN/AKSHARE_KEY). That mismatch is unexpected.
Instruction Scope
SKILL.md and README show normal usage (call AdvancedStockAnalyzer, run scripts/analyze_stock.py). Runtime instructions and code do not request unrelated system files or broad data collection. They do create/read local cache and write reports under ./data/cache and ./reports. The missing explicit instruction in SKILL.md about required API keys (TAVILY_API_KEY) is a scope/documentation gap.
Install Mechanism
No install spec in registry; this is an instruction+code package. Dependencies are standard (requests, pandas, numpy) referenced in requirements.txt and README recommends pip install -r requirements.txt. There are no downloads from untrusted URLs or archive extraction steps in the manifest.
Credentials
The code reads TAVILY_API_KEY via os.getenv and config.yaml references ${TAVILY_API_KEY}; it also mentions optional market-data tokens (TUSHARE_TOKEN, AKSHARE_KEY). Requesting a single news API key is proportionate to the stated functionality, but the registry declared no required env vars — the absence of declared credentials in metadata is an inconsistency that could mislead users. No unrelated secrets (e.g., AWS keys) are requested.
Persistence & Privilege
Skill is not always-enabled and does not request elevated platform privileges. It writes local cache and report files in relative paths (./data/cache, ./reports) which is expected for this application. It does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install csi-stock-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /csi-stock-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
CSI Stock Analyzer 1.0.0 初始发布 - 提供专业A股实时行情查询与分析 - 支持MACD、KDJ、RSI、EMA等多种技术指标 - 自动识别交易信号(金叉/死叉/超买/超卖) - 集成智能数据缓存,避免重复获取历史数据 - 实现中证2000及全A股的批量分析能力 - 支持股票相关舆情新闻监控与情感分析
元数据
Slug csi-stock-analyzer
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Csi Stock Analyzer 是什么?

专业A股投资分析工具,支持实时行情获取、技术指标分析(MACD/KDJ/RSI/EMA)、 智能数据缓存、新闻舆情分析。适用于中证2000成分股及全市场股票分析。 使用场景: 1. 需要分析某只股票的买入/卖出时机 2. 需要获取股票的技术指标信号(金叉/死叉/超买/超卖) 3. 需要批量分析中证2000成分股... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 337 次。

如何安装 Csi Stock Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install csi-stock-analyzer」即可一键安装,无需额外配置。

Csi Stock Analyzer 是免费的吗?

是的,Csi Stock Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Csi Stock Analyzer 支持哪些平台?

Csi Stock Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Csi Stock Analyzer?

由 evanslin99(@evanslin99)开发并维护,当前版本 v1.0.0。

💬 留言讨论