google-flights · imoonkey — Claude Code skill: what it does, how to install
Searches Google Flights, tracks price trends, and extracts itinerary baggage rules inside the agent workflow.
npx skills add imoonkey/openweb --skill google-flights -a claude-codeWhat google-flights does
This skill extracts flight data directly from rendered Google Flights web pages using DOM adapters. It retrieves available flights with prices, travel duration, stops, and airline details. You can also explore candidate destinations from an origin city without setting a fixed arrival airport.
Most operations rely on the tfs route parameter copied from a Google Flights URL. Without this encoded string, queries like searchFlights, getPriceInsights, and getFlightOverview cannot resolve the specific route or fetch monthly price predictions.
The tool also pulls itinerary specifics through getFlightBookingDetails, including baggage allowances and booking links. All actions run through the openweb CLI wrapper.
What it helps with
- search flights on a specific route with prices and durations
- identify the cheapest and most expensive months for travel
- explore budget destinations from a departure city
- fetch baggage policies and booking links for an itinerary
Example prompts for the agent
- Find flights for route tfs
CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdy...using searchFlights - Explore travel destinations from my default departure city
- Get baggage policies and booking links for the selected flight
How to install google-flights
1Skills CLI (Vercel)
npx skills add imoonkey/openweb --skill google-flights -a claude-code2Manually: put the files in place
~/.claude/skills/google-flights/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/google-flights/
1Skills CLI (Vercel)
npx skills add imoonkey/openweb --skill google-flights -a codex2Manually: put the files in place
.agents/skills/google-flights/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add imoonkey/openweb --skill google-flights -a cursor2Manually: put the files in place
.cursor/skills/google-flights/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install imoonkey/openweb google-flights2Manually: put the files in place
.github/skills/google-flights/SKILL.md1Skills CLI (Vercel)
npx skills add imoonkey/openweb --skill google-flights -a gemini-cli2Platform CLI
gemini skills install https://github.com/imoonkey/openweb --path src/sites/google-flightsManually: put the files in place
.devin/skills/google-flights/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add imoonkey/openweb --skill google-flights -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about google-flights
How to install google-flights in Claude Code?
Run npx skills add imoonkey/openweb --skill google-flights -a claude-code. The skill definition will be added to ~/.claude/skills/google-flights/SKILL.md.
What does the google-flights skill do?
It queries rendered Google Flights pages via adapters to return flight schedules, airfare insights, baggage rules, and direct booking links.
What is the tfs parameter required by operations?
It is the encoded route and dates string found inside the Google Flights URL. Methods such as searchFlights and getPriceInsights use it to target the right itinerary.
Source text
SKILL.md · MIT
# Google Flights
## Overview
Flight search and pricing — adapter-based DOM extraction from rendered Google Flights pages.
## Workflows
### Search flights on a route
1. `searchFlights(tfs)` → `flights[]` with airline, times, price, stops, duration
### Explore destinations from an origin
1. `exploreDestinations()` → `destinations[]` with flightPrice, dates, stops
2. Build `tfs` for a chosen destination → `searchFlights(tfs)` for specific flights
### Compare search results with price insights
1. `searchFlights(tfs)` → current flight options and prices
2. `getPriceInsights(tfs)` → cheapest/most expensive months, price trend, popular airlines
3. `getFlightOverview(tfs)` → cheapest fares and fastest nonstop for the route
All `tfs`-based operations share the same encoded route parameter (from the Google Flights URL).
### Get booking details for a specific itinerary
1. `searchFlights(tfs)` → pick a flight
2. `getFlightBookingDetails(tfs)` → leg details, baggage policies, booking links
## Operations
| Operation | Intent | Key Input | Key Output | Notes |
|-----------|--------|-----------|------------|-------|
| searchFlights | search flights by route and dates | tfs (encoded route+dates) | origin, destination, flights[].airline, price, stops, duration | entry point; verified |
| getFlightOverview | cheapest fares and fastest flight for a route | tfs (encoded route) | cheapestOptions[].price, airline, fastestFlight, nonstopFrequency | entry point; same tfs |
| getFlightBookingDetails | itinerary details with baggage | tfs (encoded itinerary) | totalPrice, legs[].airline, duration, bagPolicies, bookWith | entry point; same tfs |
| exploreDestinations | browse destinations by budget from origin | — (optional tfs) | destinations[].destination, flightPrice, hotelPricePerNight, dates | entry point |
| getPriceInsights | monthly price trends and predictions | tfs (encoded route) | priceTrend, cheapestMonth, mostExpensiveMonth, popularAirlines | entry point; same tfs |
## Quick Start
```bash
# Search flights RDU → LGA (tfs from Google Flights URL)
openweb google-flights exec searchFlights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'
# Explore destinations (default origin)
openweb google-flights exec exploreDestinations '{}'
# Price insights for a route
openweb google-flights exec getPriceInsights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'
```
© imoonkey · MIT · imoonkey/openweb
Similar skills
All skills for Browser and scraping →google-flights by other authors comes first.