Search travel sites for flights and return a cost comparison table. Use when the user wants to find flights, compare airfares, or look up flight prices between two cities.
Search travel sites for flights and return a cost comparison table, then save results.
When this skill is invoked:
First, check whether travel_plans/ exists and contains any destination folders.
Then collect any remaining missing details via AskUserQuestion:
Use the Bash tool to run:
node playwright/search.js flights --origin "<ORIGIN>" --destination "<DESTINATION>" --depart <YYYY-MM-DD> --return <YYYY-MM-DD> --travelers <N>
This writes results to travel_plans/[destination-slug]/flights/processed=[YYYY-MM-DD]/results.md and updates summary.md automatically. Wait for the command to complete.
Read the written results.md file. Identify any rows marked N/A or sites that returned an error.
Silent mode: Execute all Chrome MCP browser steps without narrating individual actions (clicks, scrolls, typing). Use the tools quietly and only report the final prices found or a single error message if a site is blocked.
For each site with an N/A result, use mcp__claude-in-chrome__* tools to search that site in Chrome and retrieve results. Refer to the per-site navigation guides in sites/ for UI steps:
sites/google-flights.mdsites/southwest.mdsites/expedia.mdsites/kayak.mdFor each selected option, note:
If any MCP searches succeeded, edit results.md to replace the N/A rows with the new data.
For each site, find the top 1–2 highest-quality or most preferred flight options. Prioritize by:
If a site still cannot be searched after MCP attempt, leave it as "N/A" and continue.
Present the results as a markdown table:
| Site | Airline | Departure → Return | Stops | Per Person | Total (Group) |
|---|---|---|---|---|---|
| Google Flights | ... | ... | ... | $X | $X |
| Southwest | ... | ... | ... | $X | $X |
| Expedia | ... | ... | ... | $X | $X |
| Kayak | ... | ... | ... | $X | $X |
Derive a folder-safe destination name from the destination input: lowercase, spaces replaced with hyphens (e.g. "San Diego, CA" → san-diego-ca).
Write results to travel_plans/[destination-slug]/flights/processed=[YYYY-MM-DD]/results.md (create directories if needed):
## Flights — Searched: [current date and time]
### Inputs
| Field | Value |
|---|---|
| Origin | [origin city] |
| Destination | [destination city] |
| Departure | [departure date] |
| Return | [return date] |
| Travelers | [number] |
### Results
[paste the full results table here]
Update travel_plans/[destination-slug]/summary.md (create if it doesn't exist):