mcpField
G
gaokao-assistant

gaokao-assistant

github.com/better-world-aiOther432210 installsUpdated 9w ago
Repository

About gaokao-assistant

gaokao-assistant is a command-line skill for querying China’s college entrance exam data, aimed at students and others researching admissions. It covers score lines, score ranks, schools, and batch-reform history, with JSON output.

Key features

  1. 01List provinces and their IDs
  2. 02Query score lines by province and year
  3. 03Look up score tables and equivalent scores
  4. 04Filter schools by name and category
  5. 05Check batch reform history

Use cases

  1. 01Compare provincial score lines across years
  2. 02Find a rank and equivalent score for a result
  3. 03Search for schools by province and category
  4. 04Interpret historical score lines alongside batch changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/better-world-ai/x-cli --skill gaokao-assistant

After installing, type/gaokao-assistantin Claude Code to confirm it loaded.

Details

From the project README

gaokao-cli

Query Chinese college entrance exam (高考) data from the command line. Data source: 掌上高考 (gaokao.cn), operated by China Education Online (中国教育在线), under the Ministry of Education.

Prerequisites

gaokao-cli must be installed at ~/.local/bin/gaokao-cli. No WebBridge or browser required — all data comes from public CDN JSON APIs.

Commands

1. List provinces
gaokao-cli provinces

Returns all 31 provinces with IDs. Use province names (e.g. 北京) or IDs (e.g. 11) in other commands.

2. Score lines (省控线/批次线)
gaokao-cli score-line --province 北京
gaokao-cli score-line --province 北京 --year 2025
gaokao-cli score-line --province 河南 --year 2025 --type 物理类
FlagShortRequiredDescription
--province-pYesProvince name or ID
--year-yNoYear (default: latest)
--type-tNo综合/理科/文科/物理类/历史类
3. Score section (一分一段表)
# Full table
gaokao-cli score-section --province 北京 --year 2025

# Lookup specific score — returns rank, count, and 同位分 (equivalent scores in prior years)
gaokao-cli score-section --province 天津 --year 2025 --score 650

# Old gaokao provinces with 文理分科
gaokao-cli score-section --province 河南 --year 2024 --type 理科 --score 600
FlagShortRequiredDescription
--province-pYesProvince name or ID
--year-yNoYear (default: latest)
--type-tNo综合/理科/文科/物理类/历史类
--level-lNo本科/专科
--score-sNoSpecific score to lookup

Key feature: Each entry includes appositive_fraction — equivalent scores in previous years for the same rank (同位分), invaluable for cross-year comparison.

4. School search (院校查询)
gaokao-cli school --name 清华
gaokao-cli school --985
gaokao-cli school --211 --province 北京
gaokao-cli school --dual-class --province 上海
FlagShortRequiredDescription
--name-nNoFuzzy name search
--province-pNoFilter by province
--985No985 universities only
--211No211 universities only
--dual-classNo双一流 universities only
--level-lNo本科 or 专科
5. Batch reform history (批次改革历史)
gaokao-cli batch-history --province 北京
gaokao-cli batch-history   # all provinces

Shows when provinces merged batches or switched from 文理分科 to new gaokao model. Essential context for interpreting historical score lines.

Output format

All commands output JSON to stdout:

  • Success: {"ok": true, "data": ...}
  • Error: {"ok": false, "error": {"code": "...", "message": "..."}}

Data coverage

  • 31 provinces across mainland China
  • Score lines: 2014–2025 (varies by province)
  • 一分一段表: 2016–2025 (varies by province)
  • Schools: ~2,957 institutions including 985/211/双一流 tags

Province subject types

Different provinces use different subject classification:

TypeDescriptionUsed by
综合Comprehensive (3+3 model)北京, 天津, 上海, 浙江, 山东, 海南
物理类/历史类Physics/History track (3+1+2 model)广东, 湖北, 湖南, 河北, 福建, 重庆, 辽宁, 江苏 + 2025新增
理科/文科Traditional Science/ArtsRemaining provinces (shrinking as reform spreads)

Use batch-history to check when a province switched models.

Comments

Markdown supported