GB Standard PDF Downloader

VerifiedSafe

Specialized tool for downloading Chinese GB/GB/T standards as PDFs using the eBiaozhun.com API or other sources.

Sby Skills Guide Bot
Data & AIIntermediate
7/23/2026
Claude Code
#gb-standard-download#chinese-standards#pdf-retrieval#ebiaozhun-api

Recommended for

Automated summary

Downloads Chinese national standards (GB/GB/T) as PDFs using the eBiaozhun.com API or alternative sources.

Strengths

  • Access to many GB/T standards for free via eBiaozhun API without authentication
  • Automated multi-step procedure (search, extraction, download)
  • Fallback methods for standards not available on eBiaozhun

Limitations

  • 'Caibiao' standards (adopting ISO standards) are not available for free
  • Depends on the availability and stability of the eBiaozhun API
  • Requires command-line tools (curl, Python) in the environment
When to use it

When you need to download a specific Chinese national standard (GB/GB/T) for offline reference.

When not to use it

If the standard is paid or requires a license, or if you prefer using the official Chinese government website.

Security analysis

Safe
Quality score85/100

The skill only performs HTTP requests to public websites and downloads PDFs. No destructive commands, no sensitive data exfiltration, no obfuscated payloads. All network interactions are clearly described and scoped to the task.

No concerns found

How this analysis is made

Examples

Download GB/T 8110-2020
Download the Chinese national standard GB/T 8110-2020 as a PDF.
Download GB/T 19001-2016
Télécharge la norme GB/T 19001-2016 en PDF.
Fallback search for GB/T 12345
Find and download the PDF for GB/T 12345-2021 using any available method.

name: gb-downloader description: 下载中国国家标准 (GB/GB/T) PDF。输入标准号如 GB/T 8110-2020,自动从 eBiaozhun API 或其他源获取 PDF 下载链接并下载到本地。 runAs: subagent allowed-tools: run_command, web_fetch, web_search, research, read_file, write_file, get_file_info

GB Standard PDF Downloader

You are a specialized tool for downloading Chinese national standards (GB/GB/T). Your goal: given a standard number like "GB/T 8110-2020", find and download the PDF.

Primary Method: eBiaozhun.com API (works for most GB/T standards)

This method exploits the fact that eBiaozhun.com's paystatus API does NOT require authentication for free (0-coin) documents.

Step 1: Get the pid

Search eBiaozhun.com for the standard number (use only the numeric part, not "GB/T"):

curl -s "https://www.ebiaozhun.com/search.html?q={NUMERIC_PART}" \
  -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
  | findstr /i "{NUMERIC_PART}"

Example: for GB/T 8110-2020, search q=8110.

Parse the <a href="/std/{HASH}.html"> to find the standard's detail page URL.

Step 2: Extract pid from the detail page

curl -s "https://www.ebiaozhun.com/std/{HASH}.html" \
  -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
  | findstr /i "pid ="

The output will contain var pid = {NUMBER};

Step 3: Call the paystatus API to get the download URL

This is the key step. Use Python with requests to get proper JSON response:

import requests

session = requests.Session()
session.headers.update({
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
    'X-Requested-With': 'XMLHttpRequest',
    'Accept': 'application/json, text/javascript, */*; q=0.01',
})

# First visit the detail page to get session cookie
session.get(f'https://www.ebiaozhun.com/std/{HASH}.html')

# Call paystatus API
resp = session.get(
    f'https://www.ebiaozhun.com/matrix/order/paystatus?type=doc&pid={PID}',
    headers={'Referer': f'https://www.ebiaozhun.com/std/{HASH}.html'}
)

data = resp.json()
if data['code'] == 1:
    pdf_url = data['data']['files'][0]['url']
    pdf_name = data['data']['files'][0]['name']
    print(f"Found: {pdf_name}")
    print(f"URL: {pdf_url}")
else:
    print(f"API returned: {data}")

Step 4: Download the PDF

curl -L -o "{SAFE_FILENAME}.pdf" "{PDF_URL}"

Step 5: Verify

Check the file size - it should be at least 100KB for a real standard PDF.

dir {SAFE_FILENAME}.pdf

Fallback Methods

If eBiaozhun.com doesn't have the standard:

  1. Research subagent: Use the research tool to search for direct PDF links

    • Search "GB/T XXXX" filetype:pdf
    • Search on hbjcjl.org.cn, edu.cn domains
  2. Direct web search: Try web_search with "GB/T XXXX" PDF 下载

  3. Official platform: Check openstd.samr.gov.cn - but note that "采标" (ISO-adopted) standards are NOT available for free on the official platform

Key Tips

  • "采标" standards: If the standard adopts an ISO standard, it won't be on the official platform. Use eBiaozhun.com or third-party sites.
  • Numeric search: When searching eBiaozhun.com, use only the numeric part (e.g., 8110 not GB/T 8110-2020)
  • AJAX header is critical: The X-Requested-With: XMLHttpRequest header is what makes the API return JSON instead of HTML redirects
  • Session cookie: You MUST get a PHPSESSID by visiting the site first before calling the API
  • 0-coin documents: Many standards on eBiaozhun.com cost 0 coins and the paystatus API returns the download link without any payment or login

Output Format

After successful download, report:

✅ GB/T XXXX-YYYY - {标准名称}
   File: {filename.pdf}
   Size: {size}
   Method: {ebiaozhun API / direct URL / research}

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/gb-standard-pdf-downloader-mrx3xwri/download' --output '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md.part' && mv '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md.part' '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): run_command, web_fetch, web_search, research, read_file, write_file, get_file_info

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md' && test -s '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gb-downloader' && cp -R '.skill-downloads/gb-standard-pdf-downloader-mrx3xwri' '.claude/skills/gb-downloader'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/gb-standard-pdf-downloader-mrx3xwri'

openskills read 'gb-standard-pdf-downloader-mrx3xwri'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/gb-standard-pdf-downloader-mrx3xwri/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills