Agent skill

Google Flights

by borski in borski/travel-hacking-toolkit

Browser-automated Google Flights search via agent-browser. An agent skill from borski/travel-hacking-toolkit.

MITAuto-check passedProductivity & Automation

Install Google Flights

skills CLI
$ npx skills add borski/travel-hacking-toolkit --skill google-flights -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borski/travel-hacking-toolkit google-flights --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borski/travel-hacking-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/travel-hacking-toolkit/skills/google-flights .claude/skills/google-flights && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
google-flights
GitHub stars
688
Token cost
~1.6k tokens
SKILL.md length
571 words
Files
1
Skills in repo
46
Repo updated
First seen
Licence
MIT

At a glance

Browser-automated Google Flights search via agent-browser. An agent skill from borski/travel-hacking-toolkit.

  • Works in 3 steps: Departure country market first (&gl=US… → Destination country market (&gl=JP for… → Ask the user before trying additional…
  • Tasks that involve Browser automation
  • SKILL.md covers Prerequisites, When to Use, When NOT to Use and Session Convention, plus 7 more sections
  • Calls npm; reaches google.com

What it does

Google Flights is an agent skill from borski/travel-hacking-toolkit. Browser-automated Google Flights search via agent-browser. All airlines including Southwest. Cash prices, schedules, economy/business comparison, market selection.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Browser automation. The repository describes itself as: AI-powered travel hacking and search with cash, points, miles, and award flights. Drop-in skills and MCP servers for Claude, Codex, and OpenCode. The licence is MIT.

When your agent uses it

  • Tasks that involve Browser automation

Example prompts

  • “/google-flights”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(agent-browser:*)

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Departure country market first (&gl=US for flights from the US)
  2. Destination country market (&gl=JP for flights to Japan)
  3. Ask the user before trying additional markets

What it can do on your machine

Read from SKILL.md and the folder at commit db82131. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(agent-browser:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Google Flights loads about 1.6k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 571 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from borski/travel-hacking-toolkit at commit db82131, republished under its MIT licence (© borski). 571 words, ~1,638 tokens.

Download SKILL.mdSave it as .claude/skills/google-flights/SKILL.md (or your agent's skills folder).
name
google-flights
description
Browser-automated Google Flights search via agent-browser. All airlines including Southwest. Cash prices, schedules, economy/business comparison, market selection.
allowed-tools
Bash(agent-browser:*)
category
flights
summary
Browser-automated Google Flights. All airlines including Southwest.
api_key
None (requires agent-browser)

Search Google Flights via agent-browser to find flight prices, schedules, and availability.

Prerequisites

Requires agent-browser CLI:

bash
npm install -g agent-browser && agent-browser install

When to Use

  • User asks to search/find/compare flights or airfare
  • User wants to know flight prices between cities
  • User asks about flight schedules or availability
  • User wants to find the cheapest flight for specific dates
  • Southwest flights: Google Flights is one of the only sources for SW cash prices. No GDS or API returns Southwest.

When NOT to Use

  • Completing purchases: This skill finds flights and extracts booking links, but do not attempt to complete a purchase on a booking site.
  • Hotels/rental cars: Use other tools for non-flight travel searches.
  • Historical price data: Google Flights shows current prices, not historical.

Session Convention

  • Economy + Business comparison (default): --session econ and --session biz
  • Single cabin search: --session flights
  • Interactive fallback: --session flights

Fast Path: URL-Based Search (Preferred)

Construct a URL with a natural language ?q= parameter. Loads results directly. 3 commands total.

URL Template
https://www.google.com/travel/flights?q=Flights+from+{ORIGIN}+to+{DEST}+on+{DATE}[+returning+{DATE}][+one+way][+business+class][+N+passengers][&gl=XX]
Default: Economy + Business Comparison

Run two parallel sessions (economy and business) to show the price delta:

bash
# Launch both in parallel
agent-browser --session econ open "https://www.google.com/travel/flights?q=Flights+from+BKK+to+NRT+on+2026-03-20+returning+2026-03-27" &
agent-browser --session biz open "https://www.google.com/travel/flights?q=Flights+from+BKK+to+NRT+on+2026-03-20+returning+2026-03-27+business+class" &
wait

# Wait for both to load
agent-browser --session econ wait --load networkidle &
agent-browser --session biz wait --load networkidle &
wait

# Snapshot both
agent-browser --session econ snapshot -i
agent-browser --session biz snapshot -i

# Close biz (only needed for delta column); keep econ alive for booking links
agent-browser --session biz close
One Way

Add +one+way to the URL:

bash
agent-browser --session flights open "https://www.google.com/travel/flights?q=Flights+from+LAX+to+LHR+on+2026-04-15+one+way"
agent-browser --session flights wait --load networkidle
agent-browser --session flights snapshot -i
What Works via URL
FeatureURL syntaxStatus
Round trip+returning+YYYY-MM-DDWorks
One way+one+wayWorks
Business class+business+classWorks
First class+first+classWorks
N passengers+N+passengersWorks
Adults + children+2+adults+1+childWorks
IATA codesBKK, NRT, LAXWorks
City namesBangkok, TokyoWorks
Dates as YYYY-MM-DD2026-03-20Works (best)
Market/locale&gl=TH (country code)Works
Premium economy+premium+economyFails
Multi-cityN/AFails
Reading Results from Snapshot

Each flight appears as a link element with a full description:

link "From 20508 Thai baht round trip total. Nonstop flight with Air Japan.
     Leaves Suvarnabhumi Airport at 12:10 AM on Friday, March 20 and arrives
     at Narita International Airport at 8:15 AM on Friday, March 20.
     Total duration 6 hr 5 min. Select flight"

Parse into a markdown table (see Output Format below).

Market Selection Strategy

Different country markets return different prices for the same route. Always try:

  1. Departure country market first (&gl=US for flights from the US)
  2. Destination country market (&gl=JP for flights to Japan)
  3. Ask the user before trying additional markets

The &gl=XX parameter sets the market. Use ISO 3166-1 alpha-2 country codes.

Booking Options Handoff

After presenting results, offer booking links. When the user picks a flight:

bash
agent-browser --session econ click @eN    # Click the flight's link
agent-browser --session econ wait 3000
agent-browser --session econ snapshot -i  # Shows booking providers with prices and URLs
Show full SKILL.md (232 more words)Show less

Output Format

Always use markdown tables for flight results.

Economy + Business comparison (default)
#AirlineStopsDurationDepartArriveEconomyBusinessDelta
1JALNonstop5h 55m8:05 AM4:00 PM$523$1,490+185%
2THAINonstop5h 50m10:30 PM6:20 AM+1$628$1,675+166%
Economy only
#AirlineStopsDurationDepartArrivePrice
1JALNonstop5h 55m8:05 AM4:00 PM$523
Format rules
  • One row per flight
  • For connections, show stop cities (e.g., "1 stop via ICN")
  • No code blocks around the table
  • After the table, highlight cheapest, fastest, and best value

Interactive Workflow (Fallback)

Use for multi-city, premium economy, or when the URL path fails. See the google-flights skill in ajimix/travel-hacking-toolkit for the full interactive reference with step-by-step commands for form filling, date pickers, and multi-city searches.

Key Rules

RuleWhy
Prefer URL fast path3 commands vs 15+ interactive
wait --load networkidleSmarter than fixed wait 5000
Use fill not type for airportsClears existing text first
Wait 2s after typing airport codesAutocomplete needs API roundtrip
Always CLICK suggestions, never EnterEnter is unreliable for autocomplete
Re-snapshot after every interactionDOM changes invalidate refs
Keep results session alive for booking linksClose biz session after capturing delta

Troubleshooting

  • Consent popups: Click "Accept all" or "Reject all" in the snapshot.
  • URL fast path didn't work: Fall back to interactive.
  • Bot detection / CAPTCHA: Inform user. Do NOT solve CAPTCHAs.

© borski, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/travel-hacking-toolkit/skills/google-flights of borski/travel-hacking-toolkit.

Open the folder on GitHubat commit db82131

Compare with similar skills

Google Flights next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Google Flights compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Flights this skillborski/travel-hacking-toolkit688—~1.6kAutomated safety check: PassMIT
Agent Browserquran/quran.com-frontend-next1.9k42 repos~3.3kAutomated safety check: PassNone
Dev-Browser CLI AutomationSawyerHood/dev-browser6.7k1 repos~455Automated safety check: PassMIT
Agent Browsersuperagent-ai/grok-cli3.5k1 repos~633Automated safety check: PassMIT
Browser Automationopenclaw/openclaw392k—~2.9kAutomated safety check: PassMIT
Camoufox CLIBin-Huang/camoufox-cli3501 repos~4.5kAutomated safety check: PassMIT

Similar skills

  • Agent Browser

    quran/quran.com-frontend-next

    Automates browser interactions for web testing, form filling, screenshots, and data extraction.

    1.9k GitHub starsUsed in 42 repos~3.3k tokens
    Productivity & AutomationAuto-check passed
  • Dev-Browser CLI Automation

    SawyerHood/dev-browser

    Browser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web…

    6.7k GitHub starsUsed in 1 repo~455 tokens
    Productivity & AutomationAuto-check passed
  • Agent Browser

    superagent-ai/grok-cli

    Use the host-side agent-browser CLI for local browser smoke tests, screenshots, snapshots, and simple UI validation against forwarded localhost URLs.

    3.5k GitHub starsUsed in 1 repo~633 tokens
    Productivity & AutomationAuto-check passed
  • Browser Automation

    openclaw/openclaw

    A skill your agent uses when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

    392k GitHub stars~2.9k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Camoufox CLI

    Bin-Huang/camoufox-cli

    Anti-detect browser automation CLI & Skills for AI agents. An agent skill from Bin-Huang/camoufox-cli.

    350 GitHub starsUsed in 1 repo~4.5k tokens
    Productivity & AutomationAuto-check passed
  • Browser

    VibiumDev/vibium

    Automate browsers with the Vibium CLI. An agent skill from VibiumDev/vibium.

    2.9k GitHub stars~4.8k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed

More from borski/travel-hacking-toolkit

All 46 skills in this repo
  • Amex Travel

    borski/travel-hacking-toolkit

    Search Amex travel portal for cash prices, MR points pricing, IAP discounts, and FHR/THC hotel benefits via Patchright.

    688 GitHub stars~3.1k tokensUpdated 3 days ago
    Auto-check passed
  • Chase Travel

    borski/travel-hacking-toolkit

    Search Chase UR travel portal via Patchright for cash prices, points pricing, Points Boost offers, and Chase Edit hotel benefits.

    688 GitHub stars~2.8k tokensUpdated 3 days ago
    Auto-check passed
  • Deutsche Bahn

    borski/travel-hacking-toolkit

    Deutsche Bahn train schedules, journey planning, and departures across Germany and into neighboring countries (Austria, Switzerland, Netherlands, France, Belgium).

    688 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Sutochno

    borski/travel-hacking-toolkit

    Search Sutochno.ru (СУТОЧНО.РУ), a Russian short-term apartment-rental platform where you book directly from owners and pay in rubles (Mir card / bank transfer).

    688 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Ticketsatwork

    borski/travel-hacking-toolkit

    Search TicketsAtWork (EBG corporate perks) for hotels, theme park tickets, attractions, and rental cars via Patchright.

    688 GitHub stars~4.2k tokensUpdated 3 days ago
    Auto-check passed
  • Vrbo

    borski/travel-hacking-toolkit

    Search VRBO (Vrbo / Expedia Group) vacation rentals including entire homes, condos, and cabins via Patchright browser automation.

    688 GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed

Questions about Google Flights

What does Google Flights do?

Browser-automated Google Flights search via agent-browser. An agent skill from borski/travel-hacking-toolkit. Google Flights is an agent skill from borski/travel-hacking-toolkit. Browser-automated Google Flights search via agent-browser.

When should I use Google Flights?

Google Flights fits situations like: tasks that involve Browser automation.

How do I install Google Flights in Claude Code?

Run `npx skills add borski/travel-hacking-toolkit --skill google-flights -a claude-code`. Or copy the skill folder (plugins/travel-hacking-toolkit/skills/google-flights in borski/travel-hacking-toolkit) into .claude/skills/google-flights in your project. Claude Code loads it when a task matches its description.

How do I install Google Flights in Codex?

Run `npx skills add borski/travel-hacking-toolkit --skill google-flights -a codex`. Or copy the skill folder (plugins/travel-hacking-toolkit/skills/google-flights in borski/travel-hacking-toolkit) into .agents/skills/google-flights in your project. Codex loads it when a task matches its description.

Can I use Google Flights in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borski/travel-hacking-toolkit --skill google-flights -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-flights, .gemini/skills/google-flights, .github/skills/google-flights and .opencode/skills/google-flights in your project.

What does Google Flights need to run?

Going by SKILL.md and its folder, Google Flights needs the command-line tools its instructions call (npm). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(agent-browser:*).

Does Google Flights access the network?

SKILL.md names 1 domain. In commands or code: google.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Google Flights safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Google Flights use?

Google Flights is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Google Flights use?

About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Google Flights?

Skills that share tags, products or a category with Google Flights: Agent Browser (quran/quran.com-frontend-next, 1.9k stars), Dev-Browser CLI Automation (SawyerHood/dev-browser, 6.7k stars), Agent Browser (superagent-ai/grok-cli, 3.5k stars) and Browser Automation (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Flights?

borski (a GitHub user) maintains it in borski/travel-hacking-toolkit, which has 688 GitHub stars. The repository holds 46 skills in this directory. The repository was last updated on October 5, 2026.

Source: borski/travel-hacking-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.