This is a comprehensive Chinese A-share stock analysis tool that connects AKShare's financial data APIs to natural language queries. It handles real-time market data, technical analysis, fundamental metrics, sector rotation, and cross-market instruments like futures and bonds. The four-layer architecture (router, service, analyzer, formatter) intelligently parses queries like "茅台近60日K线" or "今日涨停统计" and returns formatted analysis optimized for QQ and Telegram. Built for Chinese stock traders who want quick market insights without manual data pulls. The natural language routing is solid, though you'll need to adapt the AKShare adapter layer as their APIs evolve. Caching strategy keeps data fresh without hammering endpoints.

skills.sh installs
11.2K
GitHub stars
15
last updated
Jul 14, 2026

Install

$ npx -y skills add molezzz/openclaw-stock-skill --skill akshare-stock --agent claude-code

Installs into .claude/skills of the current project.

Files

A股分析全能 Skill(AKShare)

目标:在 OpenClaw 中通过自然语言触发 A 股和相关市场分析,输出适配 QQ/Telegram 的紧凑文本。

  • 运行环境:Mac + Python 3.9
  • akshare 路径:/Users/molezz/Library/Python/3.9/lib/python3.9/site-packages
  • Skill 入口建议:python3 skills/akshare-stock/main.py --query "${USER_QUERY}"

1) 整体架构设计

采用 Router -> Service -> Analyzer -> Formatter 四层结构,便于扩展和维护。

A. 目录组织(建议)

skills/akshare-stock/
  SKILL.md
  main.py                 # OpenClaw 调用入口
  router.py               # 意图识别 + 参数解析
  schemas.py              # 数据结构定义(dataclass)
  formatter.py            # QQ/Telegram 输出模板
  services/
    market_service.py     # 大盘/个股行情、K线、分时、涨跌停、资金流
    fundamental_service.py# 财务指标、财报、融资融券、龙虎榜
    sector_service.py     # 行业/概念板块、轮动、板块资金流
    cross_service.py      # 期货/期权、基金、可转债、港股/美股
  analyzers/
    kline_analyzer.py     # 均线、振幅、涨跌幅、量比等
    flow_analyzer.py      # 主力净流入、连续性、强弱排序
    rotation_analyzer.py  # 板块轮动强度、持续性
  adapters/
    akshare_adapter.py    # 封装 akshare 接口,隔离 API 变化
  utils/
    trading_calendar.py   # 交易日判断
    symbols.py            # 指数/股票/板块别名映射
    cache.py              # 短缓存(30~120 秒)

B. 核心流程

Sponsors

Details

Repository
github.com/molezzz/openclaw-stock-skill
Category
Finance & Trading
1emblemcompany avataremblem-defi-yieldemblemcompany/agent-skillsDeFi yield research and liquid staking via EmblemAI. Discover yield opportunities, compare protocols, check DeFi positions with Nansen, and enter liquid staking8.7Kskills.sh installs
2claude-office-skills avatarstock-analysisclaude-office-skills/skillsAnalyze stocks with fundamental and technical analysis. Supports US, China A-shares, and Hong Kong markets. Generate investment reports with key metrics.7.2Kskills.sh installs
3claude-office-skills avatarinvoice-generatorclaude-office-skills/skillsCreate professional invoices with proper formatting for freelancers and small businesses. Supports multiple currencies and tax calculations.5.3Kskills.sh installs
4stanleychanh avatartushare-financestanleychanh/tushare-finance-skill-for-claude-code获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。5.2Kskills.sh installs
5marketcalls avatarbacktestmarketcalls/vectorbt-backtesting-skillsQuick backtest a strategy on a symbol. Creates a complete .py script with data fetch, signals, backtest, stats, and plots.3.5Kskills.sh installs
6blave-tw avatarblave-quantblave-tw/blave-quant-skillblave quant3Kskills.sh installs