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★ 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:
rampCLI installed and logged in (ramp auth login). Run whererampworks (oruv run rampinside 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 jsonon everytravel search-flightcall (including the Step 5 return search). Parse it into a friendly table — never show raw JSON, and never pipe throughpython/jq. MCP callers get structured JSON directly; the same table rule applies. - Every command needs a
--rationale(CLI) orrationale(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) ordeparture/arrival(MCP) each take one value: an airport code (SFO) or a Ramp city id (search_codefrom 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 valuesECONOMY,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 nextjob_idread (Step 3).include_fare_options— always on, including pagination and the return-leg search.wait_for_results— CLI: alwaystrue(blocks until results are ready). MCP: alwaysfalse(returns immediately with ajob_idandsearch_complete: false; gather preferences and poll as described in Step 3) — except the Step 5 return-offer read, which is always synchronous and rejectsfalseon 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 withnext_cursor(Step 3) when they do.--sort_key— off usesWEIGHTED_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 ajob_idpage.- Use
ramp travel search-flight(CLI) orSearchFlights(MCP) for flight searches; checkramp travel --helpif the CLI alias is unavailable.
Delegated booking
Only set traveler_user_id when the user explicitly asks to book for another person. Otherwise
omi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, 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…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…