Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

flights

FreeRuns bundled scriptsNot checked

Query flight offers (price, schedule, availability) via Amadeus API. Use when user asks about flight/机票/航班 prices, schedules, or availability.

modbenderby modbender★ 21 GitHub stars

About this skill

Flight Query (Amadeus)

Query real-time flight offers including price, schedule, stops, and seat availability.

Setup

Set environment variables (or hardcoded defaults are used):

export AMADEUS_API_KEY=your_key
export AMADEUS_API_SECRET=your_secret
# For production (real data):
export AMADEUS_BASE_URL=https://api.amadeus.com

Query Flights

node {baseDir}/scripts/query.mjs <FROM_IATA> <TO_IATA> [-d YYYY-MM-DD] [options]

Examples

# Hong Kong to Shanghai
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25

# Direct flights only
node {baseDir}/scripts/query.mjs SWA HGH -d 2026-02-24 --direct

# Business class
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 -c BUSINESS

# JSON output
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 --json

Options

  • -d, --date <YYYY-MM-DD>: Departure date (default: today)
  • -a, --adults <n>: Number of adults (default: 1)
  • -c, --class <class>: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST
  • --direct: Non-stop flights only
  • -n, --max <n>: Max results (default: 20)
  • --currency <code>: Currency code (default: CNY)
  • --json: Raw JSON output

Airport Lookup

node {baseDir}/scripts/airports.mjs 揭阳    # → SWA
node {baseDir}/scripts/airports.mjs 杭州    # → HGH
node {baseDir}/scripts/airports.mjs tokyo   # API lookup

Built-in mappings for 40+ Chinese cities. Falls back to Amadeus API for others.

Notes

  • Test environment returns simulated data; production returns real prices
  • Switch to production: set AMADEUS_BASE_URL=https://api.amadeus.com
  • Free tier: 2000 calls/month (production)

Install flights in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

scripts/airports.mjsscripts/query.mjs

FAQ

What does the flights skill do?

Query flight offers (price, schedule, availability) via Amadeus API. Use when user asks about flight/机票/航班 prices, schedules, or availability.

How do I install the flights skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the flights skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare flights with