cn-stats SKILL.md skillA
cn-stats from aahl/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add aahl/skills/cn-stats@git:20260915.47edd62Pins git:20260915.47edd62 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- aahl/skills
- Path
skills/cn-stats/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260915.47edd62, committed Sep 15, 2026
- First version recorded
- May 4, 2026
- Size
- 3,523 bytes
- Repository stars
- 164
- License
- MIT
中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 国家统计局
```bash
# 全局环境变量
BASE_URL='https://data.stats.gov.cn/dg/website/publicrelease/web/external'
JQ_INDICATORS='.data | {total}, (.list[] | {_id, type, chart_style_text, i_showname})'
JQ_AREAS='.data[] | [.name_value,.name_text] | @tsv'
# 获取指标分类根节点ID
# code: {1:月度数据, 2:季度数据, 3:年度数据, 4:分省月度数据, 5:分省季度数据, 6:分省年度数据}
# {7:主要城市月度价格, 8:主要城市年度数据, 9:港澳台月度数据, 10:港澳台年度数据}
# {12:三大经济体月度数据, 13:国际市场月度商品价格, 14:主要国家年度数据}
ROOT_ID=$(curl "$BASE_URL/new/queryIndexTreeAsync?pid=&code=1" | jq -r '.data[0]._id // .')
# 获取指标分类子节点
curl "$BASE_URL/new/queryIndexTreeAsync?pid=$ROOT_ID&code=1" | jq -r '.data[] | {_id, name, type, isLeaf}'
# 获取指标列表 (isLeaf==true)
curl "$BASE_URL/new/queryIndicatorsByCid?cid=$NODE_ID&dt=&name=" | jq -r $JQ_INDICATORS
# 搜索指标列表
curl -G "$BASE_URL/new/queryIndicatorsByCid?cid=&dt=&rootId=$ROOT_ID" \
--data-urlencode 'name=<关键词>' \
| jq -r $JQ_INDICATORS
# 获取统计数据 - 多指标
# dts: 时间范围 {年: 2026YY | 2022YY-2026YY, 月: 202501MM-202512MM}
curl "$BASE_URL/stream/esData" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Referer: https://data.stats.gov.cn/dg/website/page.html' \
--data-raw '{
"cid": "分类NODE_ID(isLeaf==true)",
…Read the whole file at its exact version.
How to install
mdr add aahl/skills/cn-stats@sha256:276bda87bfbf62c0The line at the top of this page pins the label git:20260915.47edd62, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_h4xohgqx6qnkalnw)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between May 4, 2026 and Sep 15, 2026, about one every 67 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260915.47edd62 latest | 2026-09-15 | 47edd62 | 3,523 B | A | view · diff |
| git:20260505.503806b | 2026-05-05 | 503806b | 3,025 B | A | view · diff |
| git:20260504.95a69fd | 2026-05-04 | 95a69fd | 2,769 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3523 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
aahl/skills · 164 stars · license MIT · pushed 2026-09-15 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_h4xohgqx6qnkalnw GET https://markdownregistry.com/api/v1/resolve?ref=aahl/skills/cn-stats GET https://markdownregistry.com/api/v1/blob/276bda87bfbf62c0ccb0f4edb03cba4c5e1ca0375ab59b48550245fbed9c66e5
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.