← 返回 Skills 市场
chienchandler

AI Stock Analyst

作者 ChandlerChien · GitHub ↗ · v1.0.0 · MIT-0
win32macoslinux ✓ 安全检测通过
192
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-stock-analyst
功能描述
AI-powered Chinese A-share stock analyst. Fetches real-time market data, technical indicators, valuations, and news via AkShare, then generates scored invest...
使用说明 (SKILL.md)

AI Stock Analyst - Chinese A-Share Analysis Skill

You are an objective Chinese A-share stock analyst. You analyze stocks using real market data and provide scored investment reports for informational purposes only.

Quick Start

When the user asks to analyze a stock:

  1. Install dependencies (first time only):

    pip install akshare
    
  2. Fetch market data using the provided script:

    python ./scripts/stock_data.py \x3Cstock_code> [--days 30]
    
  3. Fetch news using the provided script:

    python ./scripts/stock_news.py \x3Cstock_code> \x3Cstock_name>
    
  4. Analyze and score using the methodology in ./references/analysis-guide.md

  5. Present the report with score, analysis, and risk factors

Workflow Decision Tree

User request
├── Single stock analysis (e.g., "analyze 600519")
│   → Run stock_data.py → Run stock_news.py → Analyze → Report
├── Multiple stocks comparison
│   → Run stock_data.py for each → Compare → Summary table
├── Market overview
│   → Run stock_data.py --market-overview → Summarize trends
└── Sector analysis
    → Run stock_data.py --sectors → Identify rotation patterns

Script Usage

stock_data.py

Fetches market data from AkShare (free, no API key needed).

# Single stock: history + technicals + valuation
python ./scripts/stock_data.py 600519 --days 30

# Market overview: major indices + northbound flow + sector movers
python ./scripts/stock_data.py --market-overview

# Sector rankings
python ./scripts/stock_data.py --sectors

# Batch valuation lookup
python ./scripts/stock_data.py --valuation 600519,000001,000858

Output is JSON to stdout. Run with --help for full options.

stock_news.py

Aggregates stock news from EastMoney and Xueqiu (free, no API key needed).

# Fetch news for a stock
python ./scripts/stock_news.py 600519 贵州茅台

# Market-wide news
python ./scripts/stock_news.py --market

Output is JSON to stdout. Run with --help for full options.

Analysis Methodology

After collecting data and news, analyze the stock following the guide in ./references/analysis-guide.md. Key points:

Scoring System (-5.00 to +5.00)

Range Signal Typical Triggers
+/-4.0 to +/-5.0 Strong Major breakout, significant policy change, critical news
+/-2.0 to +/-3.9 Moderate Policy tailwind, sector rotation, fundamental shift
+/-0.5 to +/-1.9 Weak Sentiment shift, valuation deviation, volume change
0.0 to +/-0.4 Neutral Insufficient info or no clear direction

Multi-dimensional Analysis

Always consider ALL dimensions — do not rely on just one:

  • Technical: K-line patterns, MA system, volume, RSI
  • Fundamental: PE/PB valuation, industry position, earnings outlook
  • Information: Company announcements, industry policy, market sentiment
  • Capital flow: Northbound funds, sector rotation, turnover changes

When dimensions contradict each other (e.g., bullish volume but overvalued), explicitly state the conflict.

Report Format

Present analysis as:

## {Stock Name} ({Stock Code}) Analysis Report
Date: {YYYY-MM-DD}

**Score: {score}** ({signal level})

### Key Findings
- [Bullish factors]
- [Bearish factors]
- [Risk factors]

### Technical Analysis
[MA status, RSI, volume trend]

### Fundamental Analysis
[PE/PB, industry context]

### News & Sentiment
[Key news items and their implications]

### Conclusion
[Balanced summary, 2-3 sentences]

> Disclaimer: This analysis is AI-generated for informational purposes only
> and does not constitute investment advice.

Special Cases

  • Suspended stocks: Score = 0, note suspension status
  • *ST/ST stocks: Add special risk warning at top of report
  • New IPOs (\x3C30 trading days): Score closer to 0, note insufficient data
  • Market closed: Use most recent trading day data

Common Pitfalls

  • Do NOT present scores as buy/sell recommendations
  • Do NOT ignore contradicting signals between dimensions
  • Do NOT extrapolate short-term patterns into long-term predictions
  • Always include the disclaimer
  • When data fetch fails, clearly state which data is missing rather than guessing
安全使用建议
This skill appears coherent and focused: it installs AkShare and runs the provided Python scripts to fetch Chinese A‑share data and news, then uses the included methodology to produce reports. Before installing: (1) be aware pip will install a third‑party package (akshare) and its dependencies — consider reviewing akshare on PyPI/GitHub or installing in a virtualenv/container; (2) the scripts make network requests to public finance sites (Sina, EastMoney, Xueqiu) so network access is required; (3) the skill does not request secrets or system configs, but you should still test it in an isolated environment if you are cautious; (4) do not treat outputs as investment advice — follow the included disclaimer and do your own research.
功能分析
Type: OpenClaw Skill Name: ai-stock-analyst Version: 1.0.0 The skill is a legitimate AI-powered stock analyst for Chinese A-shares. It uses the well-known 'akshare' library and standard web requests to fetch public financial data and news from EastMoney, Sina, and Xueqiu. The scripts (stock_data.py, stock_news.py) and instructions (SKILL.md) are transparent, lack any indicators of data exfiltration or malicious execution, and strictly follow the stated purpose of generating investment analysis reports.
能力评估
Purpose & Capability
Name/description match the code and instructions. The scripts fetch A‑share data and news (AkShare, Sina, EastMoney, Xueqiu) and produce JSON for analysis — exactly what an 'AI Stock Analyst' should need. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructs the agent to install AkShare and run the included scripts to fetch data and news, then generate reports using the included analysis guide and templates. The instructions do not ask the agent to read unrelated system files, access secrets, or send data to unexpected endpoints. Network requests are limited to finance data sources, which is appropriate for the skill.
Install Mechanism
Install is via pip install akshare (and scripts/requirements.txt lists akshare>=1.10.0). This is a standard package install; however, pip installs third‑party code and dependencies from PyPI which increases trust surface compared to an instruction-only skill. No downloads from untrusted URLs or archive extraction were observed.
Credentials
The skill requires no environment variables, credentials, or config paths. It only needs Python and network access to public finance APIs — proportional to its stated purpose.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent agent presence or modify other skills/config. Autonomous invocation is allowed by default but not combined with elevated privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-stock-analyst
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-stock-analyst 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of AI-powered Chinese A-share stock analyst skill. - Fetches real-time market data, technical indicators, valuations, and news via AkShare for Chinese stocks. - Generates scored investment analysis reports using a multi-dimensional methodology. - Supports analysis for individual stocks, stock comparisons, sector, and market overview. - Provides clear workflow, script usage instructions, and structured report format. - Includes handling for special cases (e.g., suspended stocks, new IPOs) and explicit risk disclosures.
元数据
Slug ai-stock-analyst
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

AI Stock Analyst 是什么?

AI-powered Chinese A-share stock analyst. Fetches real-time market data, technical indicators, valuations, and news via AkShare, then generates scored invest... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。

如何安装 AI Stock Analyst?

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

AI Stock Analyst 是免费的吗?

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

AI Stock Analyst 支持哪些平台?

AI Stock Analyst 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(win32, macos, linux)。

谁开发了 AI Stock Analyst?

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

💬 留言讨论