Skip to content
Development
Skill

/flights

Search flights from a natural-language request, using Google Flights for market context and united.com for what United will actually sell. Compares cash against miles, explores flexible date and routing shapes, and reports a ranked shortlist with deep links. Reads only. Never

From plugin
bendrucker-claude
1685 skills10 agents1 MCP
Install
$ npx -y skills add bendrucker/claude --skill flights --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/flights

Context preview

The summary Claude sees to decide when to auto-load this skill.

Search flights from a natural-language request, using Google Flights for market context and united.com for what United will actually sell. Compares cash against miles, explores flexible date and routing shapes, and reports a ranked shortlist with deep links. Reads only. Never

SKILL.md

flights.SKILL.md
name: flights
description: >-
  Search flights from a natural-language request, using Google Flights for
  market context and united.com for what United will actually sell. Compares
  cash against miles, explores flexible date and routing shapes, and reports a
  ranked shortlist with deep links. Reads only. Never books. Use via /flights.
argument-hint: "[<the trip, in plain language>]"
disable-model-invocation: true
allowed-tools:
  - AskUserQuestion
  - Bash(cat ~/.config/claude-flights/*)
  - Bash(agent-browser:*)
  - Bash(bun ~/.claude/skills/flights/scripts/:*)
  - Bash(sleep:*)
  - Bash(grep:*)
  - Bash(sed:*)
  - Read
  - Write

Flights

Preferences: !`cat ~/.config/claude-flights/config.json 2>/dev/null || echo '{}'`

If that came back `{}`, the config is missing. Run the search on what the request states, then offer to write a starter config at the end. Its shape:

{
  "home": { "primary": "LAX", "metro": ["LAX", "BUR", "LGB"] },
  "loyalty": { "carrier": "UA", "program": "MileagePlus", "status": "none" },
  "miles": { "centsPerPointThreshold": 1.5 },
  "filters": {
    "hard": ["no Basic Economy", "no red-eyes", "no 2+ stop itineraries"],
    "soft": ["prefer nonstop", "avoid arrivals after midnight"]
  },
  "cabin": { "default": "economy" },
  "preferences": [
    "Aircraft type matters. Say which one every row is.",
    "Take Economy Plus when the fare gap is under $40.",
    "Show a few real options, not one pick."
  ]
}

`preferences` is prose, read and applied per search rather than scored. Every key is optional, and any object may carry a `note` string for context that does not fit the field.

`cabin.default` names a search cabin, one of `economy`, `premium`, `business`, or `first`, and passes straight to `--cabin`. Economy Plus is a United seat product rather than a search cabin, so a preference for it belongs in `preferences` and gets read off the results.

The parsers live in `~/.claude/skills/flights/scripts/`. Invoke them by that path. The session's working directory is wherever the request came from.

Boundaries

These do not bend because a page makes the next step convenient.

  • Read as far as **fare selection and view-only seat maps**. Stop there.
  • Never enter passenger or payment details. Never click `Purchase`, `Confirm`, `Hold`, or `FareLock`. Never spend miles or money.
  • On united.com the seat **fee** sits behind the Traveler Info step. That step is past the boundary. Report the fee as unavailable rather than crossing it.
  • Never type a password. Open headed and hand over the keyboard.
  • Report a bot challenge and stop. Do not work around one.
  • Report the award price shown. Never read or assume an account balance.

Intake

Ask before searching only what changes the search, and only what the request and config leave open. One `AskUserQuestion` round.

  • **Baggage.** A bike changes the airline, the aircraft, and sometimes the airport. Skis and oversized cases do the same. Ask when the trip's purpose suggests gear.
  • **Ground plan at each end.** Whether transit works, or someone is driving, decides how much an inconvenient airport actually costs.
  • **Who is paying**, when the answer changes whether miles are on the table.
  • **Shape**, when the request implies flexibility without pinning it down. Enumerate the shapes to compare rather than guessing one.

Search

Cheap pass first, expensive pass second. Say up front how many queries the plan needs, and if a shape gets dropped for budget, say which and why, so the coverage stated matches the coverage run.

Google Flights

Run every shape here. It is fast, needs no login, and gives market context across carriers.

For flexible dates, open the **Date grid** first. It prices a whole window of date pairs in one page load, which answers "is there a better fare a day either side" without a query per date. Use it to pick the shortlist, then price those dates properly.

Where the grid does not reach, search the departure dates and the return dates as one-ways, so N departure dates against M return dates costs `N + M` queries rather than `N × M`.

Their sum matched the round trip to within a dollar on the US domestic markets checked, which makes the decomposition a shortlisting tool rather than a quote. Round-trip fares diverge from twice a one-way on many international markets and under some fare rules. Price the pair being recommended as an actual round trip, and report that number.

united.com

Run the shortlist only. It is slow and needs a login, but it is the only truth for what United will sell, and the only source for award pricing. Use it on the handful of shapes that survived the Google pass.

Award pricing renders only for a signed-in session. `united.ts parse` exits non-zero when a page carries itineraries but no award pricing, which is the signal to check sign-in and re-read the page rather than to report the route as having no space.

`united.ts` builds one-way URLs only, so a round-trip cash fare gets confirmed on Google.

See [`references/google-flights.md`](references/google-flights.md) and [`references/united.md`](references/united.md) for the mechanics. Read the relevant one before driving that site.

Filters

`filters.hard` lists what to exclude, defaulting to Basic Economy, red-eyes, and itineraries with two or more stops. The parser marks Basic Economy and red-eyes and drops them on request, so let the tool apply those rather than filtering by eye. The reference gives the flags.

Stop count has no flag. Build it into the search instead: omit `--stops` and the URL asks Google for nonstops only. Where connections are wanted, read the stop count off the `Stops` column.

Soft, shown but marked down: tight connections, arrivals near midnight, departures needing a pre-dawn wake-up.

Nearby dates are worth a look. Flag a win within a day of the requested date, but do not silently move the trip.

Pricing

Quote the **fully loaded** price by default: what actually ge

Read more
Ships withbendrucker-claude

My personal plugin marketplace for Claude Code, Anthropic's AI coding assistant.

Get the whole plugin

Other skills on bendrucker-claude.