low-cost-round-trip-flight-search
Installation
SKILL.md
Round-trip flight search
Goal: find the cheapest bookable return journey that fits the user's request (or their stated objective), and show the useful runners-up you found on the way, with dates, airports, flight numbers, price and key restrictions.
- Run
python -B <skill-directory>/scripts/resolve_harness.py. Keep the returned paths. Readworkflow_refonce; it is the full reference. You do not need the Request Schema or implementation files. - Write a fresh Request from the template and the user's words, then
start. Do not open old Runs.journey_shape: round_trip; dates:outbound_departure_window,return_departure_window(or exact dates /travel_windowsfor disjoint options); stay:minimum_stay_nights,maximum_stay_nights.- A city or region endpoint ("Frankfurt city", "Greater Bay Area") becomes an
origin/destinationregion declaration (workflow §1), not an airport list. - Origin rules govern outbound access and return egress; destination rules govern outbound egress and return access.
- Search and
recordeach finding as you go (workflow §2). Readclockfor each observation'scaptured_at. - Explore (workflow §3): challenge the current best; discover airports beyond borders on both sides; try open-jaw (fly into one airport, home from another) and separate outbound/return tickets via
combinewhen allowed; for each direction, search from both ends and connect cheap pieces (air, rail, bus) as in a one-way search; follow cheaper leads; cross-check sellers. Search both date windows, not just the first attractive pair. deliver, then answer as in workflow §6.
Round-trip specifics:
- One seller's joint outbound-and-return price is one Offer covering all its flights; never split it into invented one-way prices.
- Stay nights count from destination arrival date to return departure date (local). Long-haul arrivals are often the next day, so a source's "7-day trip" (departure to return) can be only 6 nights: pick calendar lengths with that in mind. A return departure date says nothing about arrival time back home.
- For recurring presence rules ("must be in the city on Mondays"), translate into concrete
presence_intervalsfor this search horizon. - A cheap option that later violates a revised requirement stays saved and shows as an alternative with its violation.