Agent skill

Cn Stats

by aahl in aahl/skills

中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发. An agent skill from aahl/skills.

MITAuto-check passed

Install Cn Stats

skills CLI
$ npx skills add aahl/skills --skill cn-stats -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aahl/skills cn-stats --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aahl/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cn-stats .claude/skills/cn-stats && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cn-stats
GitHub stars
162
Used in
1 other repo
Token cost
~743 tokens
SKILL.md length
2 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发. An agent skill from aahl/skills.

  • Calls curl and jq; reaches data.stats.gov.cn

What it does

Cn Stats is an agent skill from aahl/skills. 中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发。

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AAHL's Agent Skills. 汇集了多种实用的智能体技能,涵盖Home Assistant智能家居控制、微软Edge TTS和智谱GLM-TTS文本转语音、DuckDuckGo搜索、DeepWiki文档检索、加密货币行情、天气预报、Lark/飞书、影视搜索、商品比价等功能. The licence is MIT.

Example prompts

  • “/cn-stats”

What it can do on your machine

Read from SKILL.md and the folder at commit 47edd62. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • data.stats.gov.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cn Stats loads about 743 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 2 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~743

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aahl/skills at commit 47edd62, republished under its MIT licence (© aahl). 2 words, ~743 tokens.

Download SKILL.mdSave it as .claude/skills/cn-stats/SKILL.md (or your agent's skills folder).
name
cn-stats
description
中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发。

国家统计局

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)",
  "indicatorIds": ["指标ID1","指标ID2"],
  "daCatalogId": "",
  "das": [{"text":"全国","value":"000000000000"}],
  "showType": "1",
  "dts": "",
  "rootId": "根节点ROOT_ID"
}' | jq -r '
  .data[] | 
  .name as $year |
  .values[] |
  [$year, ._name, .value // "-", .du_name] |
  @tsv
'

# 获取地区分类
curl "$BASE_URL/getDaCatalogTreeByIndicatorCid?indicatorCid=$NODE_ID"

# 获取地区列表
curl "$BASE_URL/getDasByDaCatalogId?daCid=$DA_CATELOG_ID&rootId=$ROOT_ID" | jq -r $JQ_AREAS

# 获取国内全部省份
curl "$BASE_URL/getDasByDaCatalogId?daCid=a10dceae75d245008bf4b9a0e6fe1d55" | jq -r $JQ_AREAS

# 获取国内大中城市
curl "$BASE_URL/getDasByDaCatalogId?daCid=44016f1bffeb4ea49fe34e100c6415fb" | jq -r $JQ_AREAS

# 获取统计数据 - 多地区
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)",
  "indicatorIds": ["指标ID"],
  "daCatalogId": "",
  "das":[{"text":"上海市","value":"310000000000"},{"text":"北京市","value":"110000000000"}],
  "showType": "3",
  "dts": ["202301MM-202512MM"],
  "rootId": "根节点ROOT_ID"
}' | jq -r '
  .data[] | 
  .name as $year |
  .values[] |
  [$year, ._name, .value // "-", .du_name] |
  @tsv
'

# 全局数据查询
curl -G "$BASE_URL/query?code=&pagenum=1&pageSize=15" \
  --data-urlencode 'search=<中文关键词>' \
  -H 'client: pc' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Referer: https://data.stats.gov.cn/dg/website/page.html' \
| jq -r '.data | {types,count}, (.data[] | {cid,indic_id,show_name,da_name,da,dt,dt_type,value,explain})'

常用数据

bash
# 大中城市住宅销售价格指数
curl "$BASE_URL/new/queryIndicatorsByCid?cid=3eb43764c74741469b745c396cf002d1&dt=&name=" | jq -r $JQ_INDICATORS

© aahl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/cn-stats of aahl/skills.

Open the folder on GitHubat commit 47edd62

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aahl/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cn Stats next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cn Stats compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cn Stats this skillaahl/skills1621 repos~743Automated safety check: PassMIT
Caveman StatsJuliusBrussee/caveman110k—~491Automated safety check: PassApache-2.0
Statsbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~2kAutomated safety check: PassCustom licence
Video Template Frame Pentagram Statnexu-io/open-design100k—~381Automated safety check: PassApache-2.0
Statsagenticnotetaking/arscontexta3.5k1 repos~3.1kAutomated safety check: NotesMIT
Logseq Server Usage Statslogseq/logseq45k—~550Automated safety check: PassAGPL-3.0

Similar skills

  • Caveman Stats

    JuliusBrussee/caveman

    Show recorded output and cache-read token usage and mode attribution for the current Claude Code session, or locate the host's native usage report.

    110k GitHub stars~491 tokensUpdated today
    Auto-check passed
  • Stats

    brycewang-stanford/Auto-Empirical-Research-Skills

    Econometrics skill for descriptive statistics and summary tables.

    4.5k GitHub stars~2k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • Use this plugin when the user wants a "Pentagram Stat Frame" HyperFrames motion video — Swiss-grid statistic anchor — giant number, red accent, growing bars, black data bar.

    100k GitHub stars~381 tokensUpdated today
    Media & CreativeAuto-check passed
  • Stats

    agenticnotetaking/arscontexta

    Show vault statistics and knowledge graph metrics. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub starsUsed in 1 repo~3.1k tokens
    Knowledge ManagementAuto-check: notes
  • Collect, interpret, and troubleshoot db-sync server usage stats (total users/graphs, active users/graphs in N days, created-today metrics) using the deps/db-sync scripts and D1 schema.

    45k GitHub stars~550 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Ctx Stats

    mksglu/context-mode

    Show how much context window context-mode saved this session.

    26k GitHub stars~290 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from aahl/skills

All 13 skills in this repo
  • Hass Builder

    aahl/skills

    A skill to build and manage Home Assistant configurations. An agent skill from aahl/skills.

    162 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Edge Tts

    aahl/skills

    Text-to-speech conversion using uvx edge-tts for generating audio from text.

    162 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Maishou

    aahl/skills

    商品价格全网对比技能,获取商品在淘宝(Taobao)、天猫(TMall)、京东(JD.com)、拼多多(PinDuoDuo)、抖音(Douyin)、快手(KaiShou)的最优价格、优惠券,当用户想购物或者获取优惠信息时使用。Get the best price, coupons for goods on Chinese e-commerce platforms, compare…

    162 GitHub starsUsed in 2 repos~175 tokens
    Auto-check passed
  • MCP Deepwiki

    aahl/skills

    Skills for accessing and searching docs in DeepWiki/GitHub’s public code repositories can help users understand open-source project source codes, and users can also ask questions directly about the…

    162 GitHub starsUsed in 2 repos~607 tokens
    Auto-check passed
  • Zai Tts

    aahl/skills

    Text-to-speech conversion using GLM-TTS service via the uvx zai-tts command for generating audio from text.

    162 GitHub starsUsed in 1 repo~385 tokens
    Auto-check passed
  • MCP Hass

    aahl/skills

    The skill for control Home Assistant smart home devices and query states using MCP protocol.

    162 GitHub starsUsed in 2 repos~568 tokens
    Auto-check passed

Questions about Cn Stats

What does Cn Stats do?

中国国家统计局公开数据查询技能,当用户想查询经济、CPI、GDP、人口、房价指数等数据时触发. An agent skill from aahl/skills. Cn Stats is an agent skill from aahl/skills.

How do I install Cn Stats in Claude Code?

Run `npx skills add aahl/skills --skill cn-stats -a claude-code`. Or copy the skill folder (skills/cn-stats in aahl/skills) into .claude/skills/cn-stats in your project. Claude Code loads it when a task matches its description.

How do I install Cn Stats in Codex?

Run `npx skills add aahl/skills --skill cn-stats -a codex`. Or copy the skill folder (skills/cn-stats in aahl/skills) into .agents/skills/cn-stats in your project. Codex loads it when a task matches its description.

Can I use Cn Stats in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aahl/skills --skill cn-stats -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cn-stats, .gemini/skills/cn-stats, .github/skills/cn-stats and .opencode/skills/cn-stats in your project.

What does Cn Stats need to run?

Going by SKILL.md and its folder, Cn Stats needs the command-line tools its instructions call (curl and jq).

Does Cn Stats access the network?

SKILL.md names 1 domain. In commands or code: data.stats.gov.cn; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Cn Stats safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cn Stats use?

Cn Stats is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cn Stats use?

About 743 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cn Stats?

Skills that share tags, products or a category with Cn Stats: Caveman Stats (JuliusBrussee/caveman, 110k stars), Stats (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Video Template Frame Pentagram Stat (nexu-io/open-design, 100k stars) and Stats (agenticnotetaking/arscontexta, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cn Stats?

aahl (a GitHub organization) maintains it in aahl/skills, which has 162 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 15, 2026.

Source: aahl/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.