Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Analyze A-share cross-sectional market participation, turnover concentration, liquidity distribution, speculative crowding, leader dependence, and structural fragility from daily or intraday stock snapshots. Use when the user asks in Chinese or English to analyze A-share market breadth, participation, turnover concentration, crowding, whether an index rally is broad or narrow, or to generate a reproducible market-structure report. Use only bundled scripts with PandaData as the primary live source, AKShare as fallback, or user-provided local data; never search, browse, or scrape webpages for replacement market data, and fail closed when approved sources are unavailable. Do not use for order routing, fill simulation, slippage/TCA, live trade execution, or stock-level margin/northbound/block-trade capital-flow attribution.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
判断一段 A 股行情究竟是 多数股票共同参与,还是 少数龙头和热点在扛指数。
skill-a-share-market-participation 从全市场横截面行情快照出发,把市场广度、成交集中度、投机拥挤、龙头依赖和结构脆弱性压缩成一份可复现的市场结构报告。
它适合盘中监控和盘后复盘,尤其适合回答:
这不是选股器,也不是交易执行工具。 输出用于研究和市场监控,不构成投资建议。
用户不需要先理解 scripts/ 目录,也不需要自己决定脚本顺序。直接描述你想判断的市场问题即可。
你可以直接问:
分析一下今天 A 股是普涨,还是少数龙头在带指数。
沪深 300 今天涨了,但市场广度怎么样?
今天上涨的资金扩散健康吗?
Skill 会重点检查:
index-up-breadth-weak;如果指数上涨、但多数股票下跌,同时成交额高度集中在少数强势股票,报告会更倾向于:
narrow-leadership
也就是:指数看起来强,但参与结构并不宽。
你可以问:
今天 A 股成交额是不是集中在少数股票?
看一下全市场 Top 10% 股票吃掉了多少成交额。
今天的流动性分布健康吗?
Skill 会计算:
它不是只看“总成交额有多少”,而是进一步回答:
这些成交额到底分散在整个市场,还是挤在很少的名字上?
你可以问:
今天是不是投机情绪很强?
热门股票是不是吸走了太多成交额?
市场是不是过度依赖少数龙头?
Skill 会同时观察:
这样可以区分两种看起来都“很热”的行情:
广泛参与 + 热度高
和:
少数热点极热 + 大多数股票参与不足
后者通常会表现出更高的结构脆弱性。
如果你提供历史指标文件,可以直接问:
今天的市场参与度在最近历史上算高还是低?
今天的成交集中度是不是近期极端?
把今天和过去一段时间的市场结构做个对比。
Skill 会把当前指标放进历史分布中,给出 percentile,例如:
Participation 25th percentile
Liquidity distribution 0th percentile
Speculation 67th percentile
Fragility risk 100th percentile
这比只看一个绝对分数更有意义,因为同样的成交集中度,在不同市场阶段可能代表不同的结构状态。
当问题明确涉及 A 股全市场广度、参与度、成交集中、热点拥挤、龙头依赖或结构脆弱性 时,就适合使用。
典型提示词包括:
分析一下今天 A 股是普涨还是少数龙头带动。
看看今天市场参与度怎么样。
今天成交额集中在哪里?
指数涨了,但个股是不是其实很弱?
今天是不是热点抱团?
A 股现在投机拥挤程度高吗?
市场流动性分布健康吗?
今天的结构脆弱性高不高?
和最近历史相比,今天的市场广度算什么水平?
给我生成一份今天的 A 股参与结构报告。
下面这些问题则不是本 Skill 的主要用途:
推荐几只股票
预测明天大盘涨跌
帮我自动交易
计算订单滑点和市场冲击
做 VWAP / TWAP 执行
分析某只股票的北向、融资或大宗交易资金流
报告核心由 1 个状态 + 4 个分数 + 一组结构指标和风险标记 组成。
最终状态会落在以下 6 类之一:
| 状态 | 含义 |
|---|---|
broad-participation | 多数股票共同参与,成交和上涨较为扩散 |
balanced-rotation | 市场结构相对均衡,没有明显扩散或压力占主导 |
narrow-leadership | 指数或活跃度主要由少数龙头推动 |
speculative-crowding | 投机强度和结构脆弱性同时偏高 |
defensive-contraction | 市场参与度明显收缩,但尚未出现极端拥挤压力 |
deleveraging-stress | 参与度很弱,同时脆弱性和抛压结构明显升高 |
| 分数 | 0–100 代表什么 |
|---|---|
| Participation | 上涨和成交是否广泛扩散到更多股票 |
| Liquidity distribution | 成交是否分散,而不是集中在少数股票 |
| Speculation | 大波动、高换手、热点成交是否活跃 |
| Fragility risk | 市场是否过度依赖集中成交、龙头和少数热点 |
这些分数是描述性启发指标,不是收益预测、仓位建议或交易信号。
仓库内置的合成样例会生成类似下面的结果:
State: narrow-leadership
Participation 45.0
Liquidity distribution 46.4
Speculation 54.1
Fragility risk 68.5
Advancers 41.7%
Decliners 58.3%
Turnover in advancers 79.8%
Median stock return -0.46%
Top 10% turnover share 49.3%
Effective traded names 19 / 60
Leadership spread +7.06pp
这组数据表达的是:
虽然大量成交额集中在上涨股票,但全市场多数股票仍然下跌,且 Top 10% 股票占据接近一半成交额,龙头收益显著领先其余市场。
因此报告将其归类为:
narrow-leadership
而不是把“指数涨、成交活跃”简单理解成全市场健康。
如果运行环境已经配置 PandaData 或 AKShare,可以直接说:
抓取今天最新 A 股数据,判断是普涨还是少数龙头带动,并生成市场参与结构报告。
内部流程是:
自然语言需求
↓
获取最新全 A 快照
↓
校验交易日 / 数据源 / 行数
↓
计算市场广度、成交集中、拥挤与脆弱性
↓
生成 Markdown + JSON 报告
实时数据源顺序固定为:
不会用新闻网页、搜索结果或临时网页爬虫来代替全市场行情。
如果你已经有全市场行情快照,只需要最少三列:
code,pct_change,amount
600000,6.20,2400000000
600001,5.10,2100000000
600002,-0.80,180000000
然后可以直接说:
用这个 CSV 分析今天的 A 股市场参与结构。
分析器还支持股票名称、换手率、振幅、高低开收、流通市值、行业等可选字段。完整输入约定见 references/input-contract.md。
不联网也可以直接跑内置合成样例。
安装依赖:
python -m pip install -r requirements.txt
运行:
python scripts/analyze_market_participation.py examples/sample_snapshot.csv \
--date 2026-08-06 \
--index-return 0.86 \
--history examples/sample_history.csv \
--out-json example-report.json \
--out-md example-report.md
成功后会生成:
example-report.json
example-report.md
内置样例预期状态为:
narrow-leadership
并会看到约:
Participation 45.0
Liquidity distribution 46.4
Speculation 54.1
Fragility risk 68.5
examples/ 中的数据是合成测试数据,只用于验证计算逻辑,不代表任何真实交易日。
uv首次初始化:
uv sync
抓取:
uv run --no-sync --no-cache a-share-snapshot \
--out a_share_spot.csv \
--benchmark 沪深300
python scripts/fetch_akshare_snapshot.py \
--out a_share_spot.csv \
--benchmark 沪深300
成功后生成:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
a-share-market-participation@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin a-share-market-participationPlugins from other owners that cover similar ground