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.
npx skills add Haochenhust/ch-skills --skill stock-market-datagit clone --depth 1 https://github.com/Haochenhust/ch-skillsWrote 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.
[](https://agentmods.dev/skills/haochenhust/ch-skills/stock-market-data)<a href="https://agentmods.dev/skills/haochenhust/ch-skills/stock-market-data"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/stock-market-data/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/haochenhust/ch-skills/stock-market-data"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/stock-market-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.01354 |
| Opus 5 | $0.00042 | $0.00677 |
| Sonnet 5 | $0.00017 | $0.00271 |
| Haiku 4.5 | $0.00008 | $0.00135 |
Grade A, and why
stock-market-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 11d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
股票行情数据工具集
通用的 A 股 / 美股市场数据获取能力。数据源为 AKShare,免费、无需 API token。
Python 环境(首次安装)
cd stock-market-data # this skill's directory
python3 -m venv .venv
.venv/bin/pip install -r scripts/requirements.txt # akshare>=1.18.0, pandas>=2.0.0
之后所有脚本通过该 venv 执行:
PY=.venv/bin/python3
SCRIPTS=scripts
检查交易日
$PY $SCRIPTS/check_trading_day.py [--date YYYYMMDD]
- 默认检查今天,
--date指定其他日期 - 输出:
{"date": "20260317", "is_trading_day": true} - 退出码: 0 = 交易日, 1 = 非交易日
- 交易日历自动缓存到脚本同目录,同一年内不重复请求
拉取行情数据
# 晨间: A股20日趋势 + 美股5日 + 板块 + 涨停池 + 北向资金
$PY $SCRIPTS/fetch_market_data.py --mode morning
# 盘后: A股5日 + 板块 + 涨停池 + 北向 + 可选个股追踪
$PY $SCRIPTS/fetch_market_data.py --mode evening --stocks 000001,600519
# 周度: A股20日 + 美股10日 + 板块10日 + 北向10日
$PY $SCRIPTS/fetch_market_data.py --mode weekly
输出 JSON 结构
各 mode 返回的 JSON 包含以下字段(缺失的字段表示该 mode 不返回):
| 字段 | morning | evening | weekly | 说明 |
|---|---|---|---|---|
us_indices |
Y | — | Y | 美股三大指数 (道琼斯/纳斯达克/标普500) |
a_share_indices |
Y | Y | Y | A股四大指数 (上证/深证/沪深300/创业板) |
sectors |
Y | Y | Y | 同花顺15大行业板块,按涨跌幅降序 |
limit_pool |
Y | Y | — | 涨停池 (前10只,含连板数、所属行业) |
northbound |
Y | Y | Y | 北向资金 (沪股通) |
tracked_stocks |
— | 需传 --stocks | — | 指定个股日线数据 |
关键字段示例
指数 (a_share_indices / us_indices):
{"name": "上证指数", "symbol": "sh000001", "close": 3250.12, "change_pct": -0.82, "volume": 79205476400, "trend_5d": "震荡 -0.03%", "trend_20d": "上涨 2.5%", "date": "2026-03-13"}
板块 (sectors):
{"name": "半导体", "close": 1580.33, "change_pct": 2.15, "volume": 3847460300, "date": "2026-03-13"}
涨停池 (limit_pool):
{"date": "20260313", "count": 23, "top_stocks": [{"code": "000001", "name": "平安银行", "change_pct": 10.02, "industry": "银行", "consecutive": 2}]}
个股 (tracked_stocks, 仅 evening 模式):
{"code": "600519", "name": "600519", "close": 1459.02, "change_pct": 3.21, "volume": 12345678, "turnover": 1.25, "date": "2026-03-13"}
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 106 lines · 84 tokens per session scan A dfa585ea6514
stock-market-data is a skill published in the GitHub repository Haochenhust/ch-skills (9 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,354 once invoked, about $0.0004 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-31.
Other skills, from other repositories
rugpull-detector
Analysiert Kryptowährungen auf Rugpull-Risiken und Betrugszeichen. Verwende diesen Skill IMMER wenn: - Ein Nutzer fragt ob ein Coin/Token sicher ist, einen Rugpull-Score will, oder einen Coin analysieren möchte - Jemand einen Coin-Namen + Social Media Erwähnung nennt (z.B. "FOFAR wird von timclassified beworben") …
prompt-master
Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…
comptable
Comptabilité, fiscalité et facturation pour entreprises françaises. Gère écritures PCG, déclarations TVA, IS/IR, clôture annuelle, liasse fiscale (2033/2065), FEC, états financiers, et chaîne facturation (mentions obligatoires, numérotation, Factur-X/UBL/CII, plateformes agréées PDP/PA, e-reporting, réforme 2026…
fiscaliste
Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…
skill-curator
A Chinese-language evaluator for deciding whether developer tools and agent resources are suitable for a curated collection. It checks real repositories, installation paths, activity, duplicates, and security boundaries using evidence.
syndic
Gère un parc de copropriétés en France avec vue portfolio consolidée. Couvre administration, comptabilité (décret 2005, plan comptable copro, 5 annexes), assemblées générales (convocation, PV, notification), appels de fonds, travaux, fournisseurs, recouvrement d'impayés et transition de syndic. Maîtrise les majorités…