airnz-flights
Search public Air New Zealand fare snapshots and timetable fallback data through a lightweight no-login CLI. Use when the task involves Air NZ route/date fare…
от thecolab-ai★ 41 звезда на GitHub
Установить airnz-flights в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Air New Zealand Flights
Goal
Query live public Air New Zealand fare snapshots when the anonymous browser-style search is accepted, with a public timetable fallback when Air NZ returns request-auth/CAPTCHA.
Use this when
- A user asks to search current Air New Zealand flights by origin, destination, and date
- A user wants a public timetable snapshot for NZ domestic or Air NZ-served routes
- A workflow needs flight times, flight numbers, duration, stops, or booking-search handoff URLs
- An agent is comparing public airline availability without logging in or holding seats
Do not use this for
- Booking, payment, seat selection, fare holds, checkout, Airpoints login, manage-booking, refund/change actions, or passenger details
- Private/authenticated booking data
- High-volume scraping, fare-history warehousing, or bypassing Air NZ controls
- Claims about final payable totals; prices, when returned, are pre-checkout fare snapshots only
Preferred workflow
- Ask for or infer IATA airport codes and a specific departure date.
- Run
scripts/cli.py ORIGIN DESTINATION YYYY-MM-DDwith the narrowest useful query. - Prefer
--browseron headless servers or anti-bot-sensitive workflows when CloakBrowser is installed; if it is not installed, the CLI returnscloakbrowser_not_installedso the agent can recommend installation. - Use
--directif only direct services are useful. - Use
--limitfor concise human output or--jsonfor agent chaining. - Treat results as live snapshots: fares/schedules can change without notice.
- If JSON includes
fare_search_blocked: true, Air NZ returned request-auth/CAPTCHA and the CLI has fallen back to schedules only. - Send users to the returned booking search URL if they want to complete a booking themselves.
CLI
Run from the repository root:
python3 skills/airnz-flights/scripts/cli.py <origin> <destination> <date> [flags]
Examples:
python3 skills/airnz-flights/scripts/cli.py AKL WLG 2026-07-13 --limit 5
python3 skills/airnz-flights/scripts/cli.py AKL WLG 2026-07-13 --browser --limit 5
python3 skills/airnz-flights/scripts/cli.py AKL CHC 2026-07-13 --browser --json
python3 skills/airnz-flights/scripts/cli.py WLG ZQN 2026-08-04 --direct
Flags
--direct— direct flights only--adults N— adult passenger count for the fare-search attempt--browser— use optional CloakBrowser headless mode; if unavailable, returnscloakbrowser_not_installedfor agents to surface as an installation recommendation; if its licence session limit is in use, returnsbrowser_session_limit(exit 76), and any other start-up failure returnsbrowser_launch_failed(exit 1)--limit N— max rows in human output--json— emit machine-readable JSON
Resources
- CLI entrypoint:
scripts/cli.py - Live smoke test:
scripts/smoke_test.sh - API/source notes:
references/api-notes.md
Notes
- Python Playwright is required for the timetable fallback because Air NZ's same public timetable feed can return empty results to bare non-browser clients while returning the public schedule in a normal browser context.
- The CLI first attempts the browser-sniffed anonymous fare-search flow (
/vbook/ajax/bui/flights/search→selectitinerary) and parses embeddedlegOptionsprices when Air NZ accepts the request. - If Air NZ returns request-auth/CAPTCHA, the CLI falls back to
/feeds/flight-timetablesand marksfare_search_blocked: true. --browseris optional, not mandatory. It imports CloakBrowser only when requested, so normal validation/smoke runs still work on clean hosts.- If
--browser --jsonis requested and CloakBrowser is missing, the CLI returns a machine-readablecloakbrowser_not_installederror plus an installation recommendation instead of pretending the browser path ran. - The CLI deliberately stops before fare selection; it does not create a booking session, hold seats, or progress to checkout.
- Keep usage narrow and respectful.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/api-notes.md
- references/source-notes.md
- scripts/cli.py
- scripts/smoke_test.py
- scripts/smoke_test.sh
- scripts/test_contract.py
FAQ
Что делает скилл airnz-flights?
Search public Air New Zealand fare snapshots and timetable fallback data through a lightweight no-login CLI. Use when the task involves Air NZ route/date fare snapshots, fare products, flight numbers, departure/arrival times, duration, stops, or machine-readable current flight data. Optional --browser mode uses CloakBrowser when installed and returns cloakbrowser_not_installed when unavailable. Read-only; no login, Airpoints, seat holds, booking, payment, manage-booking, or checkout actions.
Как установить скилл airnz-flights?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл airnz-flights запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…