Agent skill

12306

by infometa in infometa/workbuddyskills

Query China Railway 12306 for train schedules, remaining tickets, and station info.

No licenceAuto-check: notes

Install 12306

skills CLI
$ npx skills add infometa/workbuddyskills --skill 12306 -a claude-code

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

GitHub CLI
$ gh skill install infometa/workbuddyskills 12306 --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/infometa/workbuddyskills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/12306 .claude/skills/12306 && 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
12306
GitHub stars
346
Token cost
~735 tokens
SKILL.md length
217 words
Files
4 (incl. scripts)
Skills in repo
218
Repo updated
First seen
Licence
None found

At a glance

Query China Railway 12306 for train schedules, remaining tickets, and station info.

  • User asks about train/高铁/火车 tickets
  • SKILL.md covers Query Tickets, Station Lookup and Notes
  • Runs JavaScript scripts from its folder; calls node
  • Availability within China

What it does

12306 is an agent skill from infometa/workbuddyskills. Query China Railway 12306 for train schedules, remaining tickets, and station info. Use when user asks about train/高铁/火车 tickets, schedules, or availability within China.

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `README.md`).

The repository describes itself as: WorkBuddy skills / connectors / experts archive for offline study.

When your agent uses it

  • User asks about train/高铁/火车 tickets
  • Availability within China

Example prompts

  • “/12306”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash, Read

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

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

  • Network

    No URLs in SKILL.md.

    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

12306 loads about 735 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 217 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read

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); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 217 words (~735 tokens).

“Query train schedules and remaining tickets from China Railway 12306.”

— opening of SKILL.md by infometa
name
12306
allowed-tools
Bash, Read
description_zh
查询 12306 国内列车时刻、余票与站点信息
description_en
Query China Railway 12306 train schedules and ticket availability
version
1.0.2

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (scripts) in skills/12306 of infometa/workbuddyskills.

  • SKILL.md
  • README.md
  • scripts/query.mjs
  • scripts/stations.mjs

Open the folder on GitHubat commit 692b3eb

Compare with similar skills

12306 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.

12306 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
12306 this skillinfometa/workbuddyskills346—~735Automated safety check: NotesNone
Scheduleasgeirtj/system_prompts_leaks69k—~2.9kAutomated safety check: PassCC0-1.0
Scheduleasgeirtj/system_prompts_leaks69k—~597Automated safety check: PassCC0-1.0
Ito Trainingaffaan-m/ECC276k1 repos~1.5kAutomated safety check: PassMIT
Cron Scheduleruvnet/ruflo74k—~257Automated safety check: PassMIT
Train Ticketsnano-muse/nanoMuse381—~1.4kAutomated safety check: PassGPL-3.0

Similar skills

  • Schedule

    asgeirtj/system_prompts_leaks

    Create, update, list, or run scheduled cloud agents (routines) that execute on a cron schedule.

    69k GitHub stars~2.9k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Schedule

    asgeirtj/system_prompts_leaks

    Create or update a scheduled task that runs automatically. An agent skill from asgeirtj/system_prompts_leaks.

    69k GitHub stars~597 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Ito Training

    affaan-m/ECC

    Inspect the availability of ML training on a completed Itô compute booking and, when the canonical backend becomes available, hand off an explicitly confirmed training manifest.

    276k GitHub starsUsed in 1 repo~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Cron Schedule

    ruvnet/ruflo

    Schedule persistent background workers via CronCreate. An agent skill from ruvnet/ruflo.

    74k GitHub stars~257 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Train Tickets

    nano-muse/nanoMuse

    Trains in China through the 12306 MCP server: routes, dates, options, connections and stops with no screen; booking only on the user's word, in the 12306 app on their phone, stopping before payment.

    381 GitHub stars~1.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Scheduling

    asgeirtj/system_prompts_leaks

    Find meeting or appointment times, create private calendar holds or invitations, and reschedule or cancel events within the user's authorization.

    69k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

More from infometa/workbuddyskills

All 218 skills in this repo
  • Campus Event Playbook

    infometa/workbuddyskills

    This skill should be used when planning, coordinating, running, or reviewing student-led campus events, including club recruitment, freshman mixers, welcome activities, small talks, competitions…

    346 GitHub stars~861 tokensUpdated yesterday
    Auto-check passed
  • Teachany

    infometa/workbuddyskills

    K-12 interactive courseware creation. An agent skill from infometa/workbuddyskills.

    346 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check: notes
  • Weight Management HTML

    infometa/workbuddyskills

    A skill your agent uses when the adult weight-management MCP needs to be installed/set up in WorkBuddy (connector) or its result must be rendered as a standalone Chinese HTML plan.

    346 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Agent Browser

    infometa/workbuddyskills

    A skill your agent uses when the user needs browser automation, including opening web pages, taking screenshots, extracting page content, clicking elements, filling forms, or testing web flows.

    346 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • AI Research Radar

    infometa/workbuddyskills

    定时任务:每日研究简报。漏掉重要论文和行业报告?每天帮你盯着,关键信息一条不漏 This skill should be used when the user asks about 定时任务:每日研究简报.

    346 GitHub stars~438 tokensUpdated yesterday
    Auto-check passed
  • Check Deck

    infometa/workbuddyskills

    Investment banking presentation quality checker. An agent skill from infometa/workbuddyskills.

    346 GitHub stars~687 tokensUpdated yesterday
    Auto-check passed

Questions about 12306

What does 12306 do?

Query China Railway 12306 for train schedules, remaining tickets, and station info. 12306 is an agent skill from infometa/workbuddyskills. Query China Railway 12306 for train schedules, remaining tickets, and station info.

When should I use 12306?

12306 fits situations like: user asks about train/高铁/火车 tickets; availability within China.

How do I install 12306 in Claude Code?

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

How do I install 12306 in Codex?

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

Can I use 12306 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 infometa/workbuddyskills --skill 12306 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/12306, .gemini/skills/12306, .github/skills/12306 and .opencode/skills/12306 in your project.

What does 12306 need to run?

Going by SKILL.md and its folder, 12306 needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read.

Does 12306 access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is 12306 safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does 12306 use?

No licence was found for 12306 or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does 12306 use?

About 735 tokens (SKILL.md is roughly 2.9k 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 12306?

Skills that share tags, products or a category with 12306: Schedule (asgeirtj/system_prompts_leaks, 69k stars), Schedule (asgeirtj/system_prompts_leaks, 69k stars), Ito Training (affaan-m/ECC, 276k stars) and Cron Schedule (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 12306?

infometa (a GitHub user) maintains it in infometa/workbuddyskills, which has 346 GitHub stars. The repository holds 218 skills in this directory. The repository was last updated on October 8, 2026.

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