fly-flight

Query China domestic transport options through one skill. Use when a user wants domestic flight or high-speed rail results, departure and arrival times, stations or airports, airline or train details, or public reference fares from open web sources. Route the request by transport mode and return a shared outer response shape. 一个同时支持中国国内航班和高铁查询的统一 transport skill,可根据 mode 路由到航班或高铁 provider。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fly-flight" with this command: npx skills add baizhexue/fly-flight

Fly Flight

Use the unified transport entrypoint in this skill to handle China domestic trip lookup for both flights and high-speed rail.

这是一个统一的中国境内出行查询 skill,同时支持航班和高铁。 它通过同一个 transport 入口按 mode 路由到底层 provider。

Requirements

Require the following runtime environment before using this skill:

  • python3
  • node
  • Network access to Tongcheng public flight pages and official 12306 public endpoints

使用这个 skill 前,运行环境必须具备:

  • python3
  • node
  • 能访问同程公开航班页面和 12306 官方公开接口的网络环境

These dependencies are required whether the skill is installed from GitHub or from ClawHub.
无论这个 skill 是从 GitHub 安装还是从 ClawHub 安装,这些依赖都必须满足。

Current implementation status:

  • flight mode is implemented through Tongcheng public flight pages.
  • train mode is implemented through official 12306 public high-speed rail query and public price endpoints.

Quick Start

Flight query:

python3 {baseDir}/scripts/transport_service.py search \
  --mode flight --from 北京 --to 上海 --date 2026-03-20 --sort-by price --pretty

High-speed rail query:

python3 {baseDir}/scripts/transport_service.py search \
  --mode train --from 北京 --to 上海 --date 2026-03-20 \
  --seat-type second_class --sort-by price --pretty

The legacy flight-only entrypoint remains available for backward compatibility:

python3 {baseDir}/scripts/domestic_flight_public_service.py search \
  --from 北京 --to 上海 --date 2026-03-20 --sort-by price --pretty

Optional local HTTP mode:

python3 {baseDir}/scripts/transport_service.py serve --port 8766

Workflow

  1. Determine transport mode. Use flight for flights, airports, airlines, or plane tickets. Use train for high-speed rail, rail tickets, stations, or train numbers. If the user is ambiguous, infer conservatively from their wording or ask.

  2. Route to the correct provider. Use scripts/transport_service.py as the shared entrypoint. Flight mode delegates to scripts/providers/flight_public_service.py. Train mode delegates to scripts/providers/train_public_service.py.

  3. Preserve a shared outer response shape. Return mode, provider, trip_type, outbound, and optional return. Keep mode-specific fields inside each leg's options.

  4. Apply only mode-specific filters that make sense. Flight filters: airline, direct-only, preferred airports. Train filters: train type, seat type, preferred stations.

  5. Summarize results with the mode label. Clearly say whether the result is a flight result or a train result. Treat public-source prices as reference prices that can differ from final checkout prices.

Output Rules

  • Prefer up to 5 options unless the user asked for more.
  • State the exact travel date in YYYY-MM-DD.
  • Keep the outer response consistent across modes.
  • Do not force a single shared field schema for airports and stations; keep mode-specific details inside options.
  • For round trips, clearly separate outbound and return.
  • For train mode, explain that prices come from official public fare data and seat availability comes from public query results.

Resources

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Qunar

Help users make better Qunar travel-booking decisions from public platform trade-offs. Use when the user wants to think through flight, hotel, or travel book...

Registry SourceRecently Updated
4270Profile unavailable
General

Gonza Navifare Deals

Verify and compare flight prices across multiple booking sites using Navifare. Trigger when users share flight prices from any booking site (Skyscanner, Kaya...

Registry SourceRecently Updated
2550Profile unavailable
General

PandaMate China Travel Expert

中国入境旅游完整助手。当用户需要以下信息时触发:(1)入境中国签证、240小时过境免签、落地签等签证政策 (2)中国支付方式(支付宝/微信支付绑定境外银行卡、外币兑换) (3)中国交通(高铁、飞机、国内航班预订) (4)中国城市旅游攻略(北京、上海、广州、成都、杭州等) (5)中国海关入境申报、文化禁忌 (6)电...

Registry SourceRecently Updated
820Profile unavailable
General

LovTrip AI Travel Planner

AI 行程规划 / AI Travel Itinerary Planner — 智能生成多日旅行行程,支持景点搜索、预算计算、酒店航班。当用户需要旅行规划、生成行程、搜索景点酒店航班时使用。

Registry SourceRecently Updated
3990Profile unavailable