AGENT SKILL

flight-search-strategy

Canonical multi-source flight search strategy. Source priority (Duffel, Ignav, Google Flights, Skiplagged, Kiwi, Seats.aero, Southwest), parallel workflow, market selection for international price arbitrage.

License 许可
MIT
最近更新
2026-11-09
Stars
★ 978
Forks
120

01 前言 Front Matter

name
flight-search-strategy
summary
The canonical multi-source search workflow. Source priority (Duffel > Ignav > Google Flights > others), market selection for international routes, source accuracy hierarchy, common failure modes.
category
reference
description
Canonical multi-source flight search strategy. Source priority (Duffel, Ignav, Google Flights, Skiplagged, Kiwi, Seats.aero, Southwest), parallel workflow, market selection for international price arbitrage.

03 SKILL.md 正文

Flight Search Strategy

Search ALL Sources for EVERY Flight Search

This is not a pick-one list. Each source returns different results, different prices, and different airlines. Missing a source means missing options. The priority order determines which price to trust when sources disagree, not which sources to skip.

Priority Source Strengths Blind Spots
1 Duffel (skill) Most accurate cash prices. Real GDS per-fare-class data. Bookable. No Southwest. No award pricing. Offers expire in 15-30 min.
2 Ignav (skill) Fast REST API. Market selection for price arbitrage. Free. No Southwest. No award pricing.
3 Google Flights (skill, agent-browser) Covers ALL airlines including Southwest cash prices. Free. Economy/business comparison. Prices can be inflated vs GDS. No points pricing.
4 Skiplagged (MCP) Hidden city fares. Zero config. No Southwest. Can be noisy on small markets.
5 Kiwi.com (MCP) Virtual interlining (creative cross-airline routings). Zero config. Returns garbage on small markets. No Southwest.
6 Seats.aero (skill + MCP) Award flight availability across 25+ programs. The crown jewel for points. Partner API with a key, official MCP without one. Cached data, not live. No cash prices. No Southwest. Keyless MCP only covers the next 60 days.
7 SerpAPI (skill, optional) Google Hotels search. Destination discovery (Google Travel Explore). NOT for flights (inflated prices). Hotels and "where should I go?" only.
8 Southwest (skill, Patchright) Fare classes, points pricing, Companion Pass. All 4 fare classes, cash + points. Pre-built Docker image: ghcr.io/borski/sw-fares. Or local Patchright (headed mode). ~20s per search.

The Standard Flight Search Workflow

Run ALL of these in parallel: Duffel + Ignav + Google Flights + Skiplagged + Kiwi.

Skiplagged and Kiwi are keyless MCP servers — they are available in every properly launched session. Attempt the tool call before ever claiming MCP is unavailable, and never substitute improvised browser scraping for these sources (see fallback-and-resilience).

Always add Seats.aero for award comparison. Use the Partner API skill when SEATS_AERO_API_KEY is set. Without a key, use the seats-aero MCP (get_flights), which covers flights departing in the next 60 days. See the seats-aero skill for the routing table. Always run the Southwest skill if SW flies the route.

Don't skip sources. Don't assume one source has everything. Present the combined results with the best options highlighted regardless of which source found them.

For a single unified comparison, use the compare-flights skill which orchestrates all of the above in parallel and applies transfer partner optimization.

Round Trip vs One-Way Construction

When the trip has a return date, price BOTH constructions — proactively, without being asked:

  1. The round-trip fare on every source (Duffel, Ignav, Kiwi, Skiplagged, and Google Flights all quote returns).
  2. Two one-ways, searched independently — which also surfaces the mixed construction (outbound on carrier A, return on carrier B) that round-trip searches can't see.

Run all of it in the same parallel batch; it's two extra searches, not a second pass.

Which wins is route-dependent, so never assume:

  • Round trips often win internationally on legacy carriers, where return fares are discounted relative to two one-ways.
  • One-way pairs often win domestically, on ULCCs, and anywhere Southwest flies (SW prices every leg as a one-way). They also buy flexibility: each leg can be changed or canceled independently.
  • Mixed-carrier pairs frequently beat both when outbound and return are priced by different airlines' sale calendars.

Present the verdict explicitly with the delta: "Round trip $842 vs best one-way pair $918 — book the round trip, saves $76" (or the reverse). If the gap is under ~$50, mention the flexibility advantage of separate tickets before recommending the round trip.

For Southwest Specifically

Use the southwest skill:

docker run --rm ghcr.io/borski/sw-fares --origin SJC --dest DEN --depart 2026-05-15 --points

Or:

python3 skills/southwest/scripts/search_fares.py --origin SJC --dest DEN --depart 2026-05-15 --points

Returns all 4 fare classes (Wanna Get Away, WGA+, Anytime, Business Select), cash and points pricing.

The google-flights skill is a faster fallback for SW cash prices only (no fare class breakdown, no points pricing).

Monitoring Existing Southwest Reservations

docker run --rm -e SW_USERNAME -e SW_PASSWORD \
  ghcr.io/borski/sw-fares change --conf ABC123 --first Jane --last Doe --json

Logs in, selects both legs, and shows fare diffs for every available flight. Negative diffs = savings opportunity. Use --list to discover all upcoming confirmation numbers. Read-only. Never modifies reservations.

Market Selection Strategy

Different country markets return different prices for the same route. Searching from Thailand (&gl=TH) vs the US (&gl=US) can save hundreds of dollars.

Always try multiple markets for international flights:

  1. Departure country market first (e.g., &gl=US for flights from the US)
  2. Destination country market (e.g., &gl=JP for flights to Japan)
  3. Ask the user before trying more (e.g., third countries, VPN markets)

This applies to:

  • google-flights via the &gl=XX URL parameter
  • ignav via the market field in the search payload

Duffel and SerpAPI don't support market selection.

Source Accuracy Hierarchy

When sources disagree on cash prices:

Duffel > Airline website > SerpAPI > Skiplagged/Kiwi

  1. Duffel returns real GDS prices per fare class. These are bookable. Tested: Duffel showed $271 basic / $325 main. SerpAPI showed $541 for the same flight. The gap was consistent across multiple itineraries.
  2. SerpAPI (Google Flights) inflates prices. Often shows "main cabin" or bundled fares, not the cheapest bookable fare class. Useful for Google Hotels and destination discovery, but do not trust it as the sole source for flight cash prices.
  3. Kiwi returns garbage on small markets. Filter hard or skip Kiwi for domestic routes to small airports.

Common Failure Modes

  • Running only one source and missing better options on others.
  • Trusting SerpAPI prices as bookable (they're often inflated).
  • Skipping Southwest because "no GDS has it" — exactly why you need the SW skill.
  • Skipping Seats.aero because the user "doesn't have those points" — they may have them via transfer, see the partner-awards skill.
  • Single-market search on international routes (always try at least 2 markets).

04 同仓库更多 Skills

borski
borski/travel-hacking-toolkit

wikipedia-airports

Discover destinations served from any airport via Wikipedia. Sanity-check whether an airline flies a specific route, find regional service that fare tools miss, identify late-split-return airport options.

★ 978
borski
borski/travel-hacking-toolkit

wheretocredit

Mileage earning rates by airline and booking class via wheretocredit.com. Redeemable and qualifying miles across 50+ programs. Use when deciding where to credit a flight or comparing earning rates.

★ 978
borski
borski/travel-hacking-toolkit

vrbo

Search VRBO (Vrbo / Expedia Group) vacation rentals including entire homes, condos, and cabins via Patchright browser automation. VRBO sits behind Akamai Bot Manager so plain HTTP and standard Playwright get a 429 bot wall. Use for whole-home or group stays, multi-bedroom rentals, and Airbnb-vs-VRBO comparisons. Trigger phrases include search VRBO, Vrbo rentals, vacation rental, cabin rental, whole house, condo for the group.

★ 978
borski
borski/travel-hacking-toolkit

tripadvisor

TripAdvisor Content API for hotel ratings, restaurant search, attraction reviews, rankings, and nearby locations. Use when evaluating hotels or researching destinations. 5K calls/month.

★ 978
borski
borski/travel-hacking-toolkit

trip-planner

Full trip planning orchestration. Combines flight search, hotel search, and points optimization into one cost analysis. Use when the user says "plan a trip" or wants the complete picture for a destination.

★ 978
borski
borski/travel-hacking-toolkit

trip-log

Save flight searches, itineraries, and booked trips to the trips/logs/ directory for future reference. OPT-IN — use when the user asks to log a trip or look up past searches, or on every search only if the user has said they want automatic logging. Also use to update status when a trip is booked or completed.

★ 978