a-share-data

a-share-data is a skill for Claude Code, Codex from shouldnotappearcalm/a-share-skill. It costs 97 tokens per session (2,470 once invoked), scanned A, original, MIT.

A data lookup skill for mainland Chinese A-shares, meaning stocks traded on China's Shanghai and Shenzhen exchanges. It covers prices, history, indicators, company events, sectors, concepts, market news, and macroeconomic data.

In plain words
What is it for?
Use it to check a stock or sector, review technical and financial data, inspect market heat maps and news, or find trading calendars and A-share/H-share listing events.
Why use it?
It gathers market information through structured scripts instead of requiring manual web-page scraping.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/shouldnotappearcalm/a-share-skill/a-share-data
Any agent
npx skills add shouldnotappearcalm/a-share-skill --skill a-share-data
Clone the repo
git clone --depth 1 https://github.com/shouldnotappearcalm/a-share-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for a-share-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/shouldnotappearcalm/a-share-skill/a-share-data.svg)](https://agentmods.dev/skills/shouldnotappearcalm/a-share-skill/a-share-data)
Your own site
<a href="https://agentmods.dev/skills/shouldnotappearcalm/a-share-skill/a-share-data"><img src="https://agentmods.dev/badge/skills/shouldnotappearcalm/a-share-skill/a-share-data.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.02470
Opus 5 $0.00048 $0.01235
Sonnet 5 $0.00019 $0.00494
Haiku 4.5 $0.00010 $0.00247

Measured 6d ago against content hash 0645411d14e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

a-share-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/Ashare.py, scripts/fetch_ah_ipo_timeline.py, scripts/fetch_ah_stocks.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

a-share-data/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A股数据综合分析

目标

使用本技能时,优先调用本目录下脚本获取结构化数据,不依赖网页抓取。

支持能力:

  • 实时行情与市场维度
  • 历史数据与财务维度
  • 技术指标
  • 个股事件
  • A+H 双重上市公司列表(支持按 H 股上市日期筛选)
  • A股赴港上市关键事件时间节点(递表/聆讯/备案/招股/定价/配售/上市)
  • 热门行业、热门概念、行业/概念涨跌幅、板块热力图、板块成分股、7×24 市场快讯(fetch_danginvest.py先读 references/danginvest-api-reference.md
  • 个股行业信息(fetch_sector_info.py,数据源东方财富;个股概念不稳定,见下)

环境与路径

pip install akshare MyTT pandas numpy requests
SKILL_DIR="<本skill绝对路径>"
python3 "$SKILL_DIR/scripts/fetch_realtime.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_history.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_technical.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_stock_events.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_ah_stocks.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_ah_ipo_timeline.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_danginvest.py" [参数]
python3 "$SKILL_DIR/scripts/fetch_sector_info.py" [参数]

说明:fetch_sector_info.py 虽可能带概念参数,但东方财富个股概念接口不稳定、常为空,使用时固定加 --no-concepts,只查行业与证券简称。市场级概念板块(涨跌幅、热力图、成分股)走 fetch_danginvest.py,不要与前者混用。

代码格式约定

优先使用以下股票代码格式:

  • 纯数字:600519
  • 市场前缀:sh600519 / sz000001
  • JoinQuant:600519.XSHG

脚本路由规则

按问题类型选脚本:

  • fetch_danginvest.py热门概念、热门行业、行业涨跌幅、概念涨跌幅、板块热力图、板块成分股、7×24 市场快讯;参数与查询惯例见 references/danginvest-api-reference.md
  • fetch_realtime.py:实时价格、分钟线、指数、北向、龙虎榜、涨跌停、资金流、全市场行情、成交明细(--boards-* 仅兼容旧用法)
  • fetch_history.py:历史K线、财务、业绩、分红、行业、指数成分、交易日历、宏观
  • fetch_technical.py:MA/MACD/KDJ/RSI/BOLL等技术指标
  • fetch_stock_events.py:业绩、增减持/回购、监管、重大合同、舆情方向
  • fetch_ah_stocks.py:A+H 双重上市公司清单、H 股上市日期区间筛选
  • fetch_ah_ipo_timeline.py:A股赴港上市关键事件节点(递表/聆讯/备案/招股/定价/配售/上市);支持 --code / --name 点查
  • fetch_sector_info.py:单只或多只股票的行业与名称(东方财富);批量时并行,默认 --workers仅文档化行业路径,不加概念

执行流程

  1. 先识别用户意图:实时、历史、技术、事件、A股赴港上市时间节点、热门行业/热门概念/行业或概念涨跌幅、板块热力图、7×24 快讯,或「个股所属行业」。
  2. 命中下列任一表述时,先读 references/danginvest-api-reference.md,再用 fetch_danginvest.py(勿用 fetch_realtime.py --boards-*):
    • 今天/今日热门概念、什么概念涨得多、概念领涨/领跌
    • 今天/今日热门行业、什么行业涨得多、行业领涨/领跌(含大类行业、细分行业)
    • 行业涨跌幅概念涨跌幅、板块热力图、某板块成分股
    • 7×24 市场快讯
  3. 选择对应脚本并优先加 --json
  4. 参数不足时补齐默认值后执行,不先空谈。
  5. 返回时给出关键字段结论,并附可复现命令。

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 157 lines · 97 tokens per session scan A 0645411d14e8

Subscribe to this mod's changes

a-share-data is a skill published in the GitHub repository shouldnotappearcalm/a-share-skill (235 stars, last pushed 2mo ago), licensed MIT. It adds 97 tokens to every session and 2,470 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

china-dcf-model

为A股非金融企业构建可审计的FCFF或FCFE估值模型,明确估值日、财务版本、现金流驱动、WACC、终值、企业价值桥和敏感性。用于估值建模与模型更新;不把模型结果机械写成目标价或投资建议。.

cyijun/china-financial-services · 76 tokens

industry-etf-research

以中国A股行业ETF和跟踪指数为观察入口,穿透指数编制、成分权重和上市公司基本面,研究行业价值链、景气、估值、市场确认与证据分歧。用于行业画像、ETF行业代表性检查和同主题指数比较;不用于单纯ETF筛选、自动轮动、买卖或仓位建议。.

cyijun/china-financial-services · 90 tokens

pptx-author

Produce a .pptx file on disk for headless Chinese A-share market research, using python-pptx with Chinese font support. Use when no controllable Office session is available.

cyijun/china-financial-services · 41 tokens

china-market-data

先确定研究问题和可得时点要求,再选择数据接口。不要从“哪个接口方便”倒推研究口径。.

cyijun/china-financial-services · 106 tokens

a-share-factor-validation

审计A股因子、选股规则和回测是否满足point-in-time、样本外、交易成本、市场机制、统计功效与多重检验要求。用于判断证据是否支持继续研究;不把回测等同于实盘有效,也不执行交易。.

cyijun/china-financial-services · 68 tokens

china-market-researcher

用于需要从行业、主题或行业ETF出发,生成A股行业概览、指数暴露、竞争格局、可比公司分析、候选公司清单及研究纪要或幻灯片时;不用于自动交易或个性化投资建议。.

cyijun/china-financial-services · 64 tokens