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…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
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, orFareLock. 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 and 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 wan
Установить flights в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
AskUserQuestionRead(~/.config/claude-flights/**)Bash(cat ~/.config/claude-flights/*)Bash(agent-browser:*)Bash(bun ~/.claude/skills/flights/scripts/:*)Bash(sleep:*)Bash(grep:*)Bash(sed:*)ReadWriteBash(echo:*)Вложенные файлы
FAQ
Что делает скилл 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 books. Use via /flights.
Как установить скилл flights?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flights запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub