/claw-skills:akshare-stockfrom claw-skills
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。提供可执行 CLI 脚本,内置重试机制和错误处理。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
Ships in claw-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
基于 AkShare 封装的可执行 CLI 工具,内置重试机制、错误处理和 JSON/表格双格式输出。
pip install akshare
所有查询通过 CLI 脚本完成,SKILL_DIR 为本 SKILL.md 所在目录:
python3 SKILL_DIR/scripts/akshare_cli.py <子命令> [参数]
默认输出 JSON,加 --format table 输出表格。
# 全市场实时行情
python3 SKILL_DIR/scripts/akshare_cli.py spot
# 指定板块
python3 SKILL_DIR/scripts/akshare_cli.py spot --board 北证A股
# 日K线(默认近一年,前复权)
python3 SKILL_DIR/scripts/akshare_cli.py kline 000001
# 周K线 + 自定义日期范围
python3 SKILL_DIR/scripts/akshare_cli.py kline 000001 --period weekly --start 20240101 --end 20241231
# 财务报表摘要
python3 SKILL_DIR/scripts/akshare_cli.py finance 000001
# 主要财务指标
python3 SKILL_DIR/scripts/akshare_cli.py indicator 000001
# 行业板块列表
python3 SKILL_DIR/scripts/akshare_cli.py board
# 概念板块列表
python3 SKILL_DIR/scripts/akshare_cli.py board --concept
# 指定板块内个股
python3 SKILL_DIR/scripts/akshare_cli.py board --cons 半导体
# 个股资金流向(自动识别沪深市场)
python3 SKILL_DIR/scripts/akshare_cli.py fund 000001
# 指定日期龙虎榜
python3 SKILL_DIR/scripts/akshare_cli.py lhb --date 20240930
# 新股申购
python3 SKILL_DIR/scripts/akshare_cli.py ipo
# 待上市新股
python3 SKILL_DIR/scripts/akshare_cli.py ipo --upcoming
# 融资融券数据
python3 SKILL_DIR/scripts/akshare_cli.py rzrq 600000
| 股票 | 代码 |
|---|---|
| 平安银行 | 000001 |
| 贵州茅台 | 600519 |
| 宁德时代 | 300750 |
| 比亚迪 | 002594 |
| 招商银行 | 600036 |
{"error": "..."},exit code=1AkShare 安装失败时可用 baostock(更轻量):
import baostock as bs
lg = bs.login()
rs = bs.query_history_k_data_plus('sh.600519',
'date,code,open,high,low,close,volume',
start_date='20250101', end_date='20251231')
data_list = []
while rs.next():
data_list.append(rs.get_row_data())
bs.logout()
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/explainer-videoTurn an article or post into a 60-second code-rendered explainer video: a single self-contained HTML timeline rendered frame-by-frame with headless Chromium and assembled with ffmpeg. Use when the user wants a blog post, HN story, or any article distilled into a motion-graphics video with narration, beat-synced motion, and broadcast-loudness audio. Covers 16:9 and 9:16. Not for AI-diffusion video generation or photorealistic footage./peekaboo-climacOS UI automation CLI tool for screen capture, window control, element clicking, text input, and more. Use when users need macOS desktop automation, UI testing, screen capture, window management, or app control./polyv-live-cli管理保利威直播服务,包括频道管理、推流操作、商品管理、优惠券、回放、文档和统计数据。当用户需要管理直播频道、配置推流设置、管理商品、处理优惠券、查看直播数据或管理回放录像时使用。/wechat-channels-video用 ego-browser 在 channels.weixin.qq.com 视频号助手发布任意视频:上传视频、填描述/短标题/话题/位置/封面(waitForFileChooser),可选声明原创与关联活动,保存为草稿。默认终点是「保存草稿」——发表需扫码,留给人完成。调用方自行提供视频路径与文案;内置实战避坑清单。/youtube-subtitle-burner下载 YouTube 视频到本地,提取 word-level 时间轴,翻译为中文,用 PIL 逐帧烧录字幕到视频画面。支持 2x 超采样抗锯齿消除文字锯齿。适用于横屏和竖屏视频。最终输出带中文字幕的 H.264 MP4 文件,可直接上传到国内平台。/youtube-summarizer下载 YouTube 视频字幕并生成结构化总结。当用户分享 YouTube 链接并要求总结视频、提取字幕或获取内容洞察时使用。支持所有 YouTube URL 格式(watch、youtu.be、shorts、embed、live)。npx claudepluginhub terryso/claw-skills --plugin claw-skills