Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04842

ramp-book-flight

Books flights conversationally: resolves cities to airports, searches one-way and round-trip flights, presents and compares offers, previews the fare, and…

БесплатноБез исполняемых скриптов
CognitionAIот CognitionAI★ 42 звезды на GitHub

Установить ramp-book-flight в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Book a Flight (conversational flight search)

The user describes a trip in plain words. Turn that into ramp travel commands (CLI) or MCP tool calls, run them, and show clean results. Never show or ask the user to type a CLI command or tool name — talk like a travel helper ("Searching Toronto → San Francisco, Jul 1…"), not about flags or tool names.

The Steps, Phases, checklist, and flag names in this guide are your internal scaffolding — never surface them to the user. Don't say "Phase 1," "Step 3," or name flags; just narrate in plain travel language ("Let me pull up the fare and check it before booking…").

Prerequisites

  • CLI: ramp CLI installed and logged in (ramp auth login). Run where ramp works (or uv run ramp inside the ramp-cli repo).
  • MCP: Ramp MCP server connected. Tools are called by their CamelCase names (SearchFlights, SubmitFlightBooking, SubmitFlightCancellation, etc.).

Scope

  • ✅ Resolve cities to airports; search one-way and round-trip; show offers.
  • ✅ Round-trip: fetch the matching return flights for the outbound the user picks (Step 5).
  • ✅ Book the ticket — preview, confirm only on an explicit yes, then verify (Step 6). Booking spends real money; it defaults to the logged-in user unless the user explicitly asks to book for another traveler.
  • ✅ Compare cabins/fares — only when asked (see "Cabin and fare options").
  • ✅ Read or update the traveler's profile, and read trips and bookings (see "Supporting tools").
  • ✅ Book for another traveler when explicitly asked and authorized (see "Delegated booking").
  • ✅ Cancel an existing flight booking — preview the exact terms, confirm only on an explicit yes (see "Cancelling a flight booking"). Availability is per-business; degrade gracefully when the command is missing.
  • ❌ Changes/modifications, refund-status follow-ups after a cancellation, seat selection, hotels, cars, and multi-city are outside this flow — point the traveler to the Ramp web app or the booking's support channel instead.

Rules for every command

  • Always --output json on every travel search-flight call (including the Step 5 return search). Parse it into a friendly table — never show raw JSON, and never pipe through python/jq. MCP callers get structured JSON directly; the same table rule applies.
  • Every command needs a --rationale (CLI) or rationale (MCP). Once the trip is known, name it in every related command's rationale (route + dates, e.g. "Toronto→SFO, Jul 1-8") and keep that same reference through search, returns, preview, book, and verify — rationales are logged, so a consistent trip reference groups a trip's commands.
  • --departure/--arrival (CLI) or departure/arrival (MCP) each take one value: an airport code (SFO) or a Ramp city id (search_code from Step 2). No lists.
  • Both surfaces present results as Markdown tables — never as UI components, cards, interactive widgets, bullet lists, numbered lists, or prose. A Markdown table is the only acceptable presentation format for flight offers, fare comparisons, and fund displays.
  • cabin_class — offer Economy, Premium Economy, Business, First (API values ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST; never offer Basic Economy, though it can still appear as a returned fare). Pass one value, or a list for alternatives like "Business or First." CLI: required before the first search — ask it as part of Step 1's grouped question. MCP: omit on the first search unless the traveler already gave a cabin; ask for it after kickoff and send it on the next job_id read (Step 3).
  • include_fare_options — always on, including pagination and the return-leg search.
  • wait_for_results — CLI: always true (blocks until results are ready). MCP: always false (returns immediately with a job_id and search_complete: false; gather preferences and poll as described in Step 3) — except the Step 5 return-offer read, which is always synchronous and rejects false on both surfaces.

These stay optional — add only when the traveler asks:

  • --limit — off returns a default page. Show at most 10 flights in the results table; if the response contains more, present the first 10 and tell the traveler they can ask for more. Paginate with next_cursor (Step 3) when they do.
  • --sort_key — off uses WEIGHTED_SCORE. Other keys: LOWEST_TOTAL_AMOUNT, SHORTEST_DURATION, LEAST_NUMBER_OF_STOPS, EARLIEST_DEPARTURE_TIME, LATEST_DEPARTURE_TIME, EARLIEST_ARRIVAL_TIME, LATEST_ARRIVAL_TIME. Applies to a new search only — re-sort by starting fresh, not on a job_id page.
  • Use ramp travel search-flight (CLI) or SearchFlights (MCP) for flight searches; check ramp travel --help if the CLI alias is unavailable.

Delegated booking

Only set traveler_user_id when the user explicitly asks to book for another person. Otherwise omi

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ramp-book-flight?

Books flights conversationally: resolves cities to airports, searches one-way and round-trip flights, presents and compares offers, previews the fare, and tickets the booking on the traveler's explicit approval. Also cancels an existing flight booking with a preview-then-confirm flow when the cancellation capability is enabled. The user describes a trip in plain language ('book a flight from Toronto to SFO') and never needs to know a CLI command or tool name. Use when someone wants to book, find, search, or compare flights, says 'fly from X to Y', or wants to cancel a flight they booked. Not for changes, refund-status follow-ups, seat selection, hotels, cars, or multi-city trips.

Как установить скилл ramp-book-flight?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ramp-book-flight запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ramp-book-flight с