google-flights

Search Google Flights for prices, schedules, and booking links via browser automation.

Updated Oct 7, 2022
One-click install
npx skills add https://github.com/tamagusko/linux-cfg --skill google-flights-tamagusko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-flights
Source: https://github.com/tamagusko/linux-cfg/tree/main/dotfiles/claude/skills/google-flights
Command: npx skills add https://github.com/tamagusko/linux-cfg --skill google-flights-tamagusko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agent-browser, and includes references (resource) components.

What problem does it solve? Checking flight prices manually means opening Google Flights, filling forms, and comparing cabins by hand. This Skill automates that entire search from the terminal, returning structured flight results and booking links without leaving your coding agent. ## Core Features & Use Cases - URL Fast Path Search: Builds a Google Flights query URL to get round-trip, one-way, business, or first-class results in as few as 2-3 browser commands. - Economy vs Business Comparison: Runs parallel browser sessions for international routes and merges results with a price-delta column so upgrade costs are visible at a glance. - Booking Link Extraction: Clicks a chosen flight to extract provider names, prices, and direct booking URLs from airlines and OTAs. - Use Case: Ask for flights from BKK to NRT on specific dates and receive a compact numbered list of airlines, times, durations, and prices, then pick one to get booking links. ## Quick Start Ask your agent to find the cheapest round-trip flights from LAX to Tokyo departing June 1 and returning June 15, including a business class price comparison.

Frequently Asked Questions about google-flights

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Google Flights from the terminal or a coding agent?

Use this skill with the agent-browser CLI installed. It constructs a Google Flights URL with your origin, destination, and dates, opens it in a browser session, and snapshots the results into a compact list of prices, times, and airlines.

How to compare economy and business class flight prices at once?

For international routes, the skill runs two parallel browser sessions, one for economy and one for business, then matches flights by airline and departure time. The output shows both prices with a percentage delta for the upgrade cost.

Does Google Flights automation support multi-city or premium economy searches?

Yes, but not through the URL fast path. Multi-city trips with 3+ legs and premium economy require the interactive fallback workflow, which automates the Google Flights form directly by clicking trip type, cabin class, and date pickers.

What dependency does the google-flights skill require?

It requires the agent-browser CLI to be installed and available in your PATH. All browser interactions, including opening pages, snapshots, clicks, and form fills, are executed through agent-browser commands.

Why did the airport autocomplete fail during a flight search?

The autocomplete needs about 2 seconds after typing for the dropdown to populate, and you must click the suggestion rather than press Enter. If it still fails, clear the field, retype the full city name instead of the IATA code, and re-snapshot.

Can this skill book or purchase flights for me?

No. It finds flights and extracts booking provider links with prices, but it does not complete purchases on booking sites. You follow the extracted link to finish the booking yourself.