Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

stock-review-ai股票评论 AI

Agent Skill

stock-review-ai 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,624

周安装

401

GitHub Stars

1

下载量

3,208
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stock-review-ai(股票评论 AI)
来源仓库:https://github.com/donvink/stock-review-ai
安装命令:
openclaw skills install stock-review-ai
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install stock-review-ai

简介

A股市场自动化回顾分析系统,通过Gemini AI生成每日市场洞察。

  • 适用于需要每日市场总结、投资复盘和趋势提炼的场景。
  • 输入股票代码或关键词,自动生成结构化分析报告并发布到指定平台。
  • 安装命令:openclaw skills install stock-review-ai,需配置Gemini API权限。
  • 注意维护状态及内容合规性,避免触发违规信息生成。

SKILL.md

name
stock-review
description
A-share market automated review and analysis system, generating daily market insights with Gemini AI, supporting publishing to Hugo blog and WeChat Official Account
version
1.0.1
metadata
openclaw
homepage
https://github.com/donvink/stock-review
requires
anyBins

🚀 Stock Review

👉 Live Demo Blog

GitHub: 👉 https://github.com/Donvink/stock-review

Language

Match user's language: Respond in the same language the user uses. If the user writes in Chinese, respond in Chinese. If the user writes in English, respond in English.

Script Directory

Agent Execution: Determine this SKILL.md directory as {baseDir}, then use {baseDir}/scripts/<name>.py. Ensure Python 3.10+ is installed and dependencies are configured.

ScriptPurpose
scripts/fetch_data.pyFetch A-share market data (indices, stocks, sectors, etc.)
scripts/analyze.pyGemini AI analysis of market data
scripts/post_to_hugo.pyPublish to Hugo blog
scripts/post_to_wechat.pyPublish to WeChat Official Account
scripts/main.pyMain execution script, coordinates the entire workflow

Configuration Preferences

  1. Check if config.yaml exists: {baseDir}/stock-review/config.yaml
  1. Check if .env file exists and is configured with GEMINI_API_KEY, WECHAT_APP_ID, WECHAT_APP_SECRET: {baseDir}/stock-review/.env

config.yaml supports: Default publishing platforms | Whether to skip AI analysis by default | Default data backtracking days | Default request delay | Default retry count | API key configuration .env supports: API key configuration

Minimum supported keys (case-insensitive, accepts 1/0 or true/false):

KeyDefaultDescription
datenullDate in YYYYMMDD format
force_refreshfalseWhether to force refresh already fetched data
skip_ai_analysisfalseWhether to skip AI analysis
platforms["hugo"]Default publishing platforms (['hugo']/['wechat']/['hugo', 'wechat'])
data_dirnullDirectory for data storage
max_retries3Default retry count
request_delay0.5Default request delay (seconds)
backtrack_days0Default data backtracking days
typegeminiModel type
model_namegemini-2.5-flashModel name

Recommended config.yaml example:

# default configuration for stock review skill
review:
  markets:                          # can include "shanghai", "shenzhen", "hongkong"
    - "shanghai"
    - "shenzhen"
    - "hongkong"
  default_period: "daily"           # can be "daily", "weekly", "monthly"
  date: null                        # can be specific date "YYYYMMDD" like "20260101" or null for today
  force_refresh: false              # whether to force refresh data even if cached data is available
  skip_ai_analysis: false           # whether to skip AI analysis and just return raw data
  platforms: ["hugo"]               # platforms to publish the report, e.g. ['hugo', 'wechat'] or ['hugo'] or ['wechat']

paths:
  data_dir: null                    # directory to store fetched data and cache, null means current project directory

parameters:
  max_retries: 3
  request_delay: 0.5
  backtrack_days: 0
  
models:
  type: "gemini"
  model_name: "gemini-2.5-flash"

.env example:

# Gemini API Key
GEMINI_API_KEY="your_gemini_api_key"

# WeChat Official Account Configuration
WECHAT_APP_ID="your_wechat_app_id"
WECHAT_APP_SECRET="your_wechat_app_secret"

How to Get a Gemini API Key:

  1. Visit the official portal: Go to https://aistudio.google.com/ and log in with your Google account.
  1. Create an API Key: Click "Get API key" in the left sidebar, click "Create API key in new project", and copy the generated string (please save it securely—you won't be able to see the full key again after closing the window).
  1. Important Notes:

Free Tier: Provides free quota but with request frequency limits (RPM/RPD). Data Privacy: Free tier data may be used for model improvement. For commercially sensitive data, consider enabling the paid mode.

How to Get WeChat Official Account Credentials:

  1. Visit https://developers.weixin.qq.com/platform/
  2. Navigate: My Business → Official Account → Development Keys
  3. Add a development key, copy the AppID and AppSecret
  4. Add the IP address of your machine to the whitelist

Environment Check

Before first use, install the dependencies.

pip install -r {baseDir}/requirements.txt

Check items: Python version | Dependencies | API keys | Network connection | Directory permissions

If any check fails, provide fix guidance:

Check ItemFix Method
Python versionInstall Python 3.10+: brew install python@3.10 (macOS) or apt install python3.10 (Linux)
DependenciesRun pip install -r {baseDir}/requirements.txt
Gemini API keyConfigure in .env or via environment variables
WeChat Official Account credentialsConfigure in .env or via environment variables
Network connectionCheck network proxy settings
Directory permissionsEnsure data/ and content/posts/ directories are writable

Workflow Overview

Copy this checklist and check items as you progress:

Review Analysis Progress:
- [ ] Step 0: Load preferences (config.yaml, .env), determine execution parameters
- [ ] Step 1: Fetch market data
- [ ] Step 2: Run AI analysis (optional)
- [ ] Step 3: Generate report
- [ ] Step 4: Publish to platforms
- [ ] Step 5: Report complete

Step 0: Load Preferences

Check and load config.yaml settings (see Configuration Preferences section above), parse and store default values for subsequent steps.

Step 1: Fetch Market Data

Fetch the following data for the specified date:

Data TypeSourceFile
Index datastock_zh_index_spot_sinadata/{date}/index_{date}.csv
Limit-up poolstock_zt_pool_emdata/{date}/zt_pool_{date}.csv
Limit-down poolstock_zt_pool_dtgc_emdata/{date}/dt_pool_{date}.csv
Failed limit-up poolstock_zt_pool_zbgc_emdata/{date}/zb_pool_{date}.csv
Full market datastock_zh_a_spot_emdata/{date}/A_stock_{date}.csv
Top 20 by turnoverCalculateddata/{date}/top_amount_stocks_{date}.csv
Concept sectorsstock_board_concept_name_emdata/{date}/concept_summary_{date}.csv
Top traders liststock_lhb_detail_daily_sinadata/{date}/lhb_{date}.csv
WatchlistCalculateddata/{date}/watchlist*_{date}.csv

Retry Mechanism:

  • Default 3 retries
  • 0.5 second request interval
  • Automatic fallback to alternative interfaces on failure

Step 2: Run AI Analysis

CRITICAL: Run AI analysis only if:

  • --skip-ai is not set
  • GEMINI_API_KEY is configured (via config.yaml or environment variables)

AI Analysis Prompt:

prompt = f"""
Role Setting: You are a seasoned A-share strategy analyst with 20 years of experience...

Task Description: Conduct a multi-dimensional review based on the [daily review data]:
1. 🚩 Market Sentiment Diagnosis
2. 💰 Core Themes and Capital Flow
3. 🪜 Consecutive Limit-up Gradient and Space Game
4. ⚡ Key Stocks with Abnormal Movements Analysis
5. 🧭 Next Trading Day Strategy Recommendations

📊 Daily Review Data:
{market_summary}
"""

Output: data/{date}/ai_analysis_{date}.md

Step 3: Generate Reports

Market Summary Report:

  • File: data/{date}/market_summary_{date}.md
  • Format: Markdown
  • Content: Tabular summary of all data

AI Analysis Report (if run):

  • File: data/{date}/ai_analysis_{date}.md
  • Format: Markdown
  • Content: In-depth analysis generated by Gemini

Step 4: Publish to Platforms

Hugo Blog Publishing:

python3 {baseDir}/scripts/post_to_hugo.py --market-summary <file> --ai-analysis <file> --date <date>

Output: content/posts/stock-analysis-{YYYY-MM-DD}.md

WeChat Official Account Publishing (requires API credentials):

python3 {baseDir}/scripts/post_to_wechat.py --market-summary-file <file> --ai-analysis-file <file> --date <date> --cover-file <file> --title <title>

WeChat Official Account API Request Rules:

  • Endpoint: POST https://api.weixin.qq.com/cgi-bin/draft/add?access_token=ACCESS_TOKEN
  • article_type: news
  • Requires thumb_media_id (cover image)
  • Comment settings: need_open_comment=1, only_fans_can_comment=0

Step 5: Completion Report

Success Report:

✅ A-share Review Analysis Complete!

Date: 2026-03-04
Data: data/20260304/ (12 files)
AI Analysis: ✓ Generated (Gemini 2.0 Flash)

Published Platforms:
→ Hugo Blog: content/posts/stock-analysis-2026-03-04.md
→ WeChat Official Account: Draft ID: abc123def456

Market Snapshot:
• Shanghai Composite: 3350.52 (+1.02%)
• Turnover: 1.95 trillion
• Advance/Decline: 2857 / 2058
• Limit-up/Limit-down: 78 / 3

View Blog: https://donvink.github.io/stock-review/

Error Report:

❌ Review Analysis Failed

Error: Unable to fetch limit-up pool data
Suggestions: 
1. Check network connection
2. Try --force parameter to force refresh
3. Use --date to specify another date

Detailed Feature Description

Data Fetching Module

FunctionPurposeRetryCache
stock_summary()Fetch index data
stock_zt_dt_pool()Fetch limit-up/down data
fetch_all_stock_data()Fetch full market data✓ (3 times)
get_top_amount_stocks()Fetch top 20 by turnover
get_concept_summary()Fetch concept sectors
get_lhb_data()Fetch top traders list

AI Analysis Module

Model: gemini-2.5-flash

Analysis Dimensions:

  1. Market Sentiment Diagnosis - Advance/decline ratio, limit-up/down comparison, turnover
  2. Core Theme Tracking - Capital flow, hot sectors
  3. Consecutive Limit-up Gradient Analysis - Space board height, limit-up structure
  4. Abnormal Movement Stock Analysis - High turnover, top traders list
  5. Next Day Strategy Recommendations - Data-based trading suggestions

Publishing Module

PlatformMethodRequirementsOutput
Hugo BlogFile writeNoneMarkdown file
WeChat Official AccountAPIAppID/SecretDraft ID

Feature Comparison

FeatureData FetchingAI AnalysisHugo PublishingWeChat Publishing
Auto-fetch latest date---
Data caching---
Retry mechanism---
Multi-source backup---
Format values (hundreds millions/ten thousands)---
Filter ST stocks---
Watchlist construction---
Market sentiment diagnosis---
Limit-up gradient analysis---
Strategy recommendations---
Markdown format-
Timezone handling---
Hugo frontmatter---
WeChat HTML conversion---
Comment settings---

Prerequisites

Required:

  • Python 3.10+
  • Dependencies: pip install -r requirements.txt
  • Gemini API key (for AI analysis)

Optional:

  • WeChat Official Account AppID and AppSecret (for WeChat publishing)
  • Hugo blog environment (for blog publishing)

Configuration Locations (priority order):

  1. CLI parameters
  2. config.yaml, .env (project-level/user-level)
  3. Environment variables
  4. Default values

Troubleshooting

IssueSolution
Unable to fetch dataCheck network, specify another date
Gemini API errorCheck if API key is valid, quota is sufficient
Limit-up pool data emptyPossibly non-trading day, try backtracking to another date
WeChat publishing failedCheck AppID/Secret, confirm IP is whitelisted
Chinese character encoding issuesEnsure file encoding is UTF-8
Data format errorCheck CSV files, ensure code column isn't converted to numbers
Timeout errorIncrease request_delay or max_retries
Insufficient memoryReduce data volume or process in batches

Extension Support

Customize via config.yaml. See the Configuration Preferences section for supported options.

Related References

TopicReference
AkShare Documentationhttps://akshare.akfamily.xyz/index.html
Gemini APIhttps://aistudio.google.com/
WeChat Official Account APIhttps://developers.weixin.qq.com/platform
Hugo Documentationhttps://gohugo.io/

Version History

VersionDateChanges
1.0.02026-03-11Initial version

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.35%
按下载量换算2,866

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills