← Back to Skills Marketplace
baizhexue

Domestic Flight Search

by baizhexue · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
296
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install domestic-flight-search-skill
Description
Query China domestic flights with schedules, airline details, airport resolution, and Juhe reference prices. Use when a user asks for domestic China flight o...
README (SKILL.md)

Domestic Flight Search

Use the local Python script in this skill to query China domestic flights from the Juhe flight API. Tell users they must apply for their own Juhe API key before live queries will work.

Provider docs: https://www.juhe.cn/docs/api/id/818

Setup Requirement

This skill does not ship with an API key. Users must create their own Juhe account, subscribe to the flight API, and set JUHE_FLIGHT_API_KEY before running live searches.

Quick Start

Set the API key first:

export JUHE_FLIGHT_API_KEY='your_juhe_api_key'

Run a direct query:

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

Optional reusable local HTTP mode:

python3 {baseDir}/scripts/domestic_flight_service.py serve --port 8765

Then call:

curl 'http://127.0.0.1:8765/search?from=北京&to=上海&date=2026-03-20'

Workflow

  1. Resolve the user's origin and destination. Accept common Chinese city names, airport names, or IATA codes. If the user says “北京首都” or “浦东机场”, keep the airport-specific query.

  2. Query the script. For a single answer, run the CLI. For repeated machine-to-machine calls, use the local HTTP service.

  3. Summarize the result. Mention airline, flight number, departure and arrival airport, departure and arrival time, duration, and ticket_price. Call the price 参考票价, not a guaranteed bookable fare.

  4. Handle ambiguity and missing setup. If the city is not recognized, ask for a specific airport or 3-letter code. If the user wants a round trip, run two one-way queries. If JUHE_FLIGHT_API_KEY is missing, tell the user to apply for a Juhe key and configure it before retrying.

Output Rules

  • Sort results by lowest ticket_price first.
  • Prefer up to 5 options unless the user asked for more.
  • State the exact travel date in YYYY-MM-DD.
  • If the provider returns no results, say that no flight was found for that route/date under the current query.
  • If the provider fails, surface the provider error_code and reason briefly.

Resources

Usage Guidance
This skill appears to do what it claims. Before installing or running it: (1) obtain your own Juhe API key and set JUHE_FLIGHT_API_KEY (do not share this key); (2) run the CLI or local HTTP server only on machines you trust — avoid binding the server to a public interface so other hosts cannot trigger queries using your environment key; (3) review the included Python script if you will run it in an environment with sensitive data (it reads only the JUHE_* env vars and the included JSON mapping files); (4) when in doubt, run the test using the bundled sample response first to confirm behavior without contacting the provider.
Capability Analysis
Type: OpenClaw Skill Name: domestic-flight-search-skill Version: 0.1.0 The skill is a legitimate tool for querying Chinese domestic flights using the Juhe API. The Python script (domestic_flight_service.py) uses standard libraries to perform name resolution via local JSON data and fetches flight information from a verified provider endpoint (apis.juhe.cn). There is no evidence of data exfiltration, malicious execution, or prompt injection; the code requires a user-provided API key and defaults to local-only network binding for its optional HTTP service mode.
Capability Assessment
Purpose & Capability
Name/description match the requested artifacts: the skill ships a Python script that queries Juhe's flight API, uses included city/airport mapping data, and declares JUHE_FLIGHT_API_KEY as the primary credential — all of which are expected for a Juhe-based flight lookup tool.
Instruction Scope
SKILL.md directs the agent to run the bundled Python CLI or optional local HTTP server and to obtain a Juhe API key before live queries. The runtime instructions reference only the included data files and the sample response; they do not ask the agent to read unrelated system files or exfiltrate arbitrary data. Note: the optional 'serve' mode opens a local HTTP endpoint (default 127.0.0.1) which will call Juhe using the environment API key — run only on trusted hosts and avoid binding to public interfaces.
Install Mechanism
No install spec is provided; this is instruction-plus-scripts only and requires python3 already on PATH. Nothing is downloaded or written to disk by an installer, which is low risk and proportional to the task.
Credentials
The skill requires a single provider credential (JUHE_FLIGHT_API_KEY, with fallback JUHE_API_KEY) which is necessary and sufficient to call the Juhe API. No unrelated secrets or system credentials are requested. The code reads only those env vars.
Persistence & Privilege
The skill is not forced-always and uses normal agent invocation. It does not modify other skills or system-wide agent settings. The only runtime persistence is an optional local HTTP service (user launches it explicitly).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install domestic-flight-search-skill
  3. After installation, invoke the skill by name or use /domestic-flight-search-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of the domestic-flight-search skill for querying China domestic flights. - Supports city/airport name to IATA resolution and schedules via Juhe API. - Users must supply their own Juhe API key via the JUHE_FLIGHT_API_KEY environment variable. - Includes command-line and optional local HTTP service modes. - Returns flight options with airline details, airport info, and reference prices. - Handles ambiguous input, missing city/airport, or absent API key with user guidance.
Metadata
Slug domestic-flight-search-skill
Version 0.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Domestic Flight Search?

Query China domestic flights with schedules, airline details, airport resolution, and Juhe reference prices. Use when a user asks for domestic China flight o... It is an AI Agent Skill for Claude Code / OpenClaw, with 296 downloads so far.

How do I install Domestic Flight Search?

Run "/install domestic-flight-search-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Domestic Flight Search free?

Yes, Domestic Flight Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Domestic Flight Search support?

Domestic Flight Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Domestic Flight Search?

It is built and maintained by baizhexue (@baizhexue); the current version is v0.1.0.

💬 Comments