Tencent Yuanbao Gaokao - Score-to-Rank Lookup: Gaokao Score-to-Rank Table Query Skill

Introduction

During the college application phase, candidates and parents often have to convert repeatedly between “Score ↔ Provincial Ranking ↔ Score Segment”. Score-to-rank table data is segmented by province, year, and subject category. Policies also differ across traditional Arts/Sciences, 3+3, and 3+1+2 models. Relying solely on memory or manual table lookups makes it easy to miss parameters. If you ask an Agent like Cursor or Claude Code in natural language, “What is the approximate ranking for a score of X in province Y?”, the model often resorts to vague generalities if it lacks a structured data source.

Below is an introduction to the enterprise-source Skill on SkillHub: Tencent Yuanbao Gaokao - Score-to-Rank Lookup (Coordinate: @tencent-adm/score-range). It strings together slot extraction for region, year, and subject category, error correction for new Gaokao subject selections, and score-to-rank table queries into a fixed workflow. It fetches data from the Tencent Gaokao search side via a local script, making it suitable for verifiable score-to-rank queries within Agent conversations.

What is this

Tencent Yuanbao Gaokao - Score-to-Rank Lookup is an information retrieval Skill for the “Score-to-Rank Table” (One-Point-One-Segment Table): it looks up provincial rankings (cumulative position) based on scores, reverse-calculates score ranges based on rankings, or displays segment tables under given conditions. SkillHub categorizes it as knowledge-management. The source is enterprise, the publisher is Yuanbao Gaokao Connect, and the current version is 0.1.3. The page indicates requires_api_key=false; no additional API Key is needed to install the Skill itself. Data queries are completed by fetch_data.py within the Skill package accessing the gaokao.search.qq.com interface.

Official Entries:

  • API / Resource Page: https://api.skillhub.cn/tencent-adm/score-range
  • SkillHub Details: https://www.skillhub.cn/skills/tencent-adm/score-range

Core Functions

Based on the SKILL.md and fetch_data.py within the Skill package, the verified capabilities are as follows.

  1. Extract query conditions from natural language
    The Agent identifies the following in steps: Region (place), Year (year), Subject Category (classify), Score (score), Provincial Ranking (rank). Region supports aliases, typo tolerance, and city-to-province mapping; if the region is not identified, it will ask for the province.

  2. Adapt subject category rules by province and year
    Combines ref/classify.json with the new Gaokao switch table in the documentation to map and correct errors between traditional Arts/Sciences, 3+3 (Comprehensive), and 3+1+2 (Physics/History); Mongolian-taught classes in Inner Mongolia are handled separately.

  3. Score-to-rank data query
    Calls fetch_data.py after confirming region, year, and subject category. Supports:

    • --score: Look up the number of people in that segment and cumulative position (provincial ranking) based on the score;
    • --rank: Reverse-lookup the corresponding score range based on the position;
    • If neither score nor ranking is provided, it can still pull segment table data and guide the user in the conversation to supply the score or ranking.
  4. Output constraints
    The Skill requires that data must be fetched via ./fetch_data.py; the Agent is forbidden from bypassing the script to construct full API requests directly. The script’s stdout is JSON, facilitating model parsing.

Installation and Enablement

Installation methods follow the official SkillHub instructions: https://skillhub.cn/install/skillhub.md

First, confirm if the skillhub CLI is already available on your machine:

command -v skillhub && skillhub --version

If not installed, use the official one-click script (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing @tencent-adm/score-range, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. The package name provided on the SkillHub page is @tencent-adm/score-range. The corresponding CLI installation example is:

skillhub install score-range --namespace tencent-adm --dir <Your Agent skills directory>

Common client skills paths (from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Agent according to your client’s requirements so that SKILL.md is loaded. The Skill package includes reference data such as ref/place.json, ref/classify.json, and fetch_data.py. Running queries requires a working python3 on the local machine.

Typical Usage

In Agent Conversations (Recommended)
Once the Skill is enabled, simply describe the province, year, subject category, and score or ranking in spoken language. The Agent will execute Steps 1–9 of SKILL.md. Examples (intent examples, not guaranteed fixed phrasing):

  • “What is the approximate provincial ranking for 600 points in the History category in Fujian 2024?”
  • “What position corresponds to 650 points in the Comprehensive category in Beijing last year?”
  • “For the Physics category in Guangdong, what score range corresponds to a ranking of 5000?”

If the user only provides the province and subject category without a score or ranking, the Skill will follow the process to ask for the score or provincial ranking before querying.

Direct Script Invocation (Debugging or Verification)
In the Skill directory, the invocation method is consistent with the fetch_data.py comments:

python3 ./fetch_data.py --place 福建 --year 2024 --classify 历史 --score 600

When querying by ranking, add --rank, for example:

python3 ./fetch_data.py --place 福建 --year 2024 --classify 历史 --rank 1000

For multiple provinces, years, or subject categories, parameter values are separated by spaces (consistent with the conventions for place/year/classify in SKILL.md). In the returned JSON, score represents the score or score segment, num is the number of people at that score, and total_num is the cumulative number of people (ranking).

Applicable Scenarios and Notes

Who it is for

  • Developers or content teams performing Gaokao application assistance and score-to-rank conversions within Agents;
  • Scenarios requiring structuring “Province + Year + Subject Category + Score/Ranking” before answering questions, rather than pure open-domain chatting.

Limitations and Notes

  1. Data and Policy Timeliness: Interface data comes from https://gaokao.search.qq.com/skills_data (type=score_range in the script). Actual application submissions must still be based on announcements from provincial examination authorities. In the Skill documentation, “this year” refers to 2026 and “last year” refers to 2025; attention should be paid to whether the Skill is updated after the year changes.
  2. Network Environment: fetch_data.py needs to access the above domain; table lookups are unavailable in offline environments.
  3. Subject Category and Year Must Match: The new Gaokao switch year table is written in SKILL.md. Incorrect year or subject category entries will lead to results inconsistent with the candidate’s actual subject stream.
  4. Enterprise Source and Statistics: The SkillHub page shows approximately 707 downloads and 1 installation (statistics vary with platform updates). This may differ from download counts on third-party reposts; SkillHub should be treated as the source of truth.

Conclusion

Tencent Yuanbao Gaokao - Score-to-Rank Lookup breaks down score-to-rank queries into an executable workflow of slot extraction + script data fetching, covering the differences in subject selection between new and old Gaokao. It is suitable for hanging on Agents that support Skills to perform mutual lookups of provincial rankings and score segments. For installation and path configuration, see https://skillhub.cn/install/skillhub.md. For Skill details, see https://www.skillhub.cn/skills/tencent-adm/score-range. For resource coordinates, see https://api.skillhub.cn/tencent-adm/score-range.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye