[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BXJ3H6CA83T4KXA04XG7G2":3,"skill-same:01M7BXJ3H6CA83T4KXA04XG7G2":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7BXJ3H6CA83T4KXA04XG7G2","ramp-book-flight",null,"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.","CognitionAI\u002Fdevin-marketplace","CognitionAI","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163493330?v=4","01M7BVSRD98NC4FG8T3EZS6V5M","Cognition","01M7BVSRDX111C2XPWJ0E6MY26",29,"MIT","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Framp\u002Fskills\u002Framp-book-flight\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ramp-book-flight\narea: Travel\nsupported_surfaces: [cli, mcp]\ndescription: \"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.\"\n---\n\n# Book a Flight (conversational flight search)\n\nThe user describes a trip in plain words. Turn that into `ramp travel` commands (CLI) or\nMCP tool calls, run them, and show clean results. **Never show or ask the user to type a CLI\ncommand or tool name** — talk like a travel helper (\"Searching Toronto → San Francisco,\nJul 1…\"), not about flags or tool names.\n\nThe Steps, Phases, checklist, and flag names in this guide are **your** internal scaffolding —\nnever surface them to the user. Don't say \"Phase 1,\" \"Step 3,\" or name flags; just narrate in\nplain travel language (\"Let me pull up the fare and check it before booking…\").\n\n## Prerequisites\n\n- **CLI:** `ramp` CLI installed and logged in (`ramp auth login`). Run where `ramp` works (or\n  `uv run ramp` inside the ramp-cli repo).\n- **MCP:** Ramp MCP server connected. Tools are called by their CamelCase names\n  (`SearchFlights`, `SubmitFlightBooking`, `SubmitFlightCancellation`, etc.).\n\n## Scope\n\n- ✅ Resolve cities to airports; search one-way and round-trip; show offers.\n- ✅ Round-trip: fetch the matching **return** flights for the outbound the user picks (Step 5).\n- ✅ **Book the ticket** — preview, confirm only on an explicit yes, then verify (Step 6).\n  Booking spends **real money**; it defaults to the logged-in user unless the user explicitly\n  asks to book for another traveler.\n- ✅ Compare cabins\u002Ffares — **only when asked** (see \"Cabin and fare options\").\n- ✅ Read or update the traveler's profile, and read trips and bookings (see \"Supporting tools\").\n- ✅ Book for another traveler when explicitly asked and authorized (see \"Delegated booking\").\n- ✅ **Cancel an existing flight booking** — preview the exact terms, confirm only on an explicit\n  yes (see \"Cancelling a flight booking\"). Availability is per-business; degrade gracefully when\n  the command is missing.\n- ❌ Changes\u002Fmodifications, refund-status follow-ups after a cancellation, seat selection,\n  hotels, cars, and multi-city are outside this flow — point the traveler to the Ramp web app\n  or the booking's support channel instead.\n\n## Rules for every command\n\n- **Always `--output json`** on every `travel search-flight` call (including the Step 5 return\n  search). Parse it into a friendly table — never show raw JSON, and never pipe through\n  `python`\u002F`jq`. MCP callers get structured JSON directly; the same table rule applies.\n- Every command needs a `--rationale` (CLI) or `rationale` (MCP). Once the trip is known, name it\n  in every related command's rationale (route + dates, e.g. \"Toronto→SFO, Jul 1-8\") and keep that\n  same reference through search, returns, preview, book, and verify — rationales are logged, so a\n  consistent trip reference groups a trip's commands.\n- `--departure`\u002F`--arrival` (CLI) or `departure`\u002F`arrival` (MCP) each take **one** value: an\n  airport code (`SFO`) or a Ramp city id (`search_code` from Step 2). No lists.\n- **Both surfaces present results as Markdown tables** — never as UI components, cards,\n  interactive widgets, bullet lists, numbered lists, or prose. A Markdown table is the only\n  acceptable presentation format for flight offers, fare comparisons, and fund displays.\n- `cabin_class` — offer **Economy**, **Premium Economy**, **Business**, **First** (API values\n  `ECONOMY`, `PREMIUM_ECONOMY`, `BUSINESS`, `FIRST`; never offer Basic Economy, though it can\n  still appear as a returned fare). Pass one value, or a list for alternatives like \"Business or\n  First.\" **CLI:** required before the first search — ask it as part of Step 1's grouped\n  question. **MCP:** omit on the first search unless the traveler already gave a cabin; ask for\n  it after kickoff and send it on the next `job_id` read (Step 3).\n- `include_fare_options` — always on, including pagination and the return-leg search.\n- `wait_for_results` — **CLI:** always `true` (blocks until results are ready). **MCP:** always\n  `false` (returns immediately with a `job_id` and `search_complete: false`; gather preferences\n  and poll as described in Step 3) — **except** the Step 5 return-offer read, which is always\n  synchronous and rejects `false` on both surfaces.\n\nThese stay optional — add only when the traveler asks:\n\n- `--limit` — off returns a default page. **Show at most 10 flights** in the results table;\n  if the response contains more, present the first 10 and tell the traveler they can ask for\n  more. Paginate with `next_cursor` (Step 3) when they do.\n- `--sort_key` — off uses `WEIGHTED_SCORE`. Other keys: `LOWEST_TOTAL_AMOUNT`,\n  `SHORTEST_DURATION`, `LEAST_NUMBER_OF_STOPS`, `EARLIEST_DEPARTURE_TIME`,\n  `LATEST_DEPARTURE_TIME`, `EARLIEST_ARRIVAL_TIME`, `LATEST_ARRIVAL_TIME`. Applies to a new\n  search only — re-sort by starting fresh, not on a `job_id` page.\n- Use `ramp travel search-flight` (CLI) or `SearchFlights` (MCP) for flight searches; check\n  `ramp travel --help` if the CLI alias is unavailable.\n\n## Delegated booking\n\nOnly set `traveler_user_id` when the user explicitly asks to book for another person. Otherwise\nomit it everywhere and book for the logged-in user.\n\nWhen the user asks to book for someone else:\n\n1. Resolve that traveler before profile preflight or search:\n\n```bash\nramp users list --name_search \"Taylor Smith\" --page_size 5 \\\n  --rationale \"resolve the traveler for the Toronto→SFO trip\" --output json\n```\n\nMCP:\n\n```json\n{\n  \"name_search\": \"Taylor Smith\",\n  \"page_size\": 5,\n  \"rationale\": \"resolve the traveler for the Toronto→SFO trip\"\n}\n```\n\nCall `GetAllReducedUsers` with the above.\n\nUse the returned traveler user UUID as `traveler_user_id`. If more than one user could match,\nask the requester to pick the exact traveler before continuing.\n\n2. Preserve the same `traveler_user_id` across the whole delegated flow: profile preflight,\n   `profile-update` if needed, every `search-flight` \u002F `SearchFlights` call (initial search,\n   resume pages, and round-trip return search), both `travel book` \u002F `SubmitFlightBooking`\n   preview and confirm calls, and booking verification\u002Fretries. Do not switch traveler ids\n   mid-flow.\n\n3. If traveler lookup fails or a target-aware call returns an authorization\u002Fempty-access result,\n   respond in plain travel-helper language. Do not mention `traveler_user_id`, flags, command\n   names, command counts, or CLI mechanics. Say you couldn't find\u002Faccess that traveler and ask\n   whether to continue for the requester or search again with a Ramp email\u002Fexact profile name.\n   Example: *\"I couldn't find a traveler named Emmy Song in this Ramp directory. If you want to\n   book for yourself, I can continue using your own traveler profile. Otherwise, send me the\n   traveler's Ramp email or exact profile name and I'll search again.\"* Do not silently fall back\n   to self-booking.\n\n## Step 1 — gather trip details\n\nUse what the user gave you; infer the rest.\n\n- **CLI:** gather every required detail plus cabin and other preferences together in one grouped\n  question before searching. Never search first and ask about preferences later.\n- **MCP:** gather only the required details before searching — destination, origin, dates, trip\n  type. Cabin and other preferences wait until after the search starts (Step 3).\n\nInfer silently, then say back (don't ask):\n\n| Slot | Assume |\n|---|---|\n| **Trip type** | round-trip if there's a return date, \"back on…\", or a stay length; else one-way. Ask only if truly unclear. |\n| **Relative dates** | resolve to `YYYY-MM-DD` and always say the date back so mistakes surface before money moves. |\n| **Airport given** | `SFO`, `JFK`, etc. → use directly, skip Step 2. |\n\nSay assumptions in one line as you go — *\"Searching JFK → SFO, Mon Jul 6, round-trip…\"*.\n\nIf a required detail is still missing — plus, on CLI, cabin and other preferences — ask for all\nof it in one grouped question (selectable options, one question per item). Required:\n**destination**, **origin** (if no home airport to guess), **departure date**, **one-way vs\nround-trip** (if unclear), and **return date** (round-trip). Keep dates in the future — 14+ days\nout is safest (a common policy cutoff). Never re-ask what they told you.\n\n## Step 2 — resolve a place to a `--departure`\u002F`--arrival` value\n\n- **Airport code** (`SFO`, `JFK`) → use directly, skip this step.\n- **City\u002Fvague place** (\"New York\", \"the Bay Area\") → look it up first:\n\n```bash\nramp travel locations --query \"New York\" --location_type city --limit 5 \\\n  --rationale \"resolve New York to a metro id for the user's trip\" --output json\n```\n\nMCP:\n\n```json\n{\n  \"query\": \"New York\",\n  \"location_type\": \"city\",\n  \"limit\": 5,\n  \"rationale\": \"resolve New York to a metro id for the user's trip\"\n}\n```\n\nCall `GetFlightBookingLocations` with the above.\n\nFor a **city**, the metro id is its **`search_code`** (a UUID; `iata_code` is empty). Pass\nthat one `search_code` to search the whole metro (New York covers JFK\u002FLGA\u002FEWR; Toronto covers\nYYZ\u002FYTZ). For one specific airport, search `--location_type airport` and pass its `iata_code`.\n\n## Step 3 — search flights\n\nAdd `--return_date` only for round-trips and `--traveler_user_id` only for delegated bookings.\nPass `cabin_class`, `include_fare_options`, and `wait_for_results` per \"Rules for every command.\"\n\n**When the traveler named a departure weekday** (\"leave Sunday\", \"out next Friday\"), also pass\n`--requested_weekday` with the lowercase day (`sunday`), if the flight-search command lists it\n(skip it on an older CLI). The server rejects the search when the departure date doesn't fall\non that weekday, and the error names the correct nearby dates — retry with the corrected date\nfrom the error; never clear the error by changing the weekday. It's departure-only: for an\n**arrival** day (\"be home by Sunday\"), leave it off — the right flight may depart the day\nbefore (a red-eye) — and let the Step 4 date strings show both days. If the rejection, or phrasing like \"Sunday night\", leaves it ambiguous whether the\ntraveler means late Sunday or a just-after-midnight Monday departure, ask them which they mean\ninstead of silently moving the date.\n\n```bash\nramp travel search-flight --output json \\\n  --departure YYZ --arrival SFO \\\n  --departure_date 2026-07-01 --return_date 2026-07-08 \\\n  --cabin_class ECONOMY --include_fare_options --wait_for_results=true \\\n  --rationale \"search flights for the Toronto→SFO trip, Jul 1-8\"\n```\n\nMCP:\n\n```json\n{\n  \"departure\": \"YYZ\",\n  \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-01\",\n  \"return_date\": \"2026-07-08\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"search flights for the Toronto→SFO trip, Jul 1-8\"\n}\n```\n\nCall `SearchFlights` with the above; include `cabin_class` only if the traveler already gave one.\n\n### MCP: kick off search first, then gather preferences\n\n1. The initial call above returns immediately with `search_complete: false` and a canonical\n   `job_id` — do not present empty offers as final; the search is still running. (It may already\n   return `search_complete: true` with offers; if so, skip straight to Step 4 and present them.)\n2. In that same turn, ask the 1-4 most important unresolved preferences in one grouped\n   question: cabin class (always ask when not already known), then timing, airline, nonstop,\n   fare-tier, and price-versus-schedule preferences when relevant — the same set described in\n   \"Rules for every command.\" Never mention that a search was started, is running, or is likely\n   to finish soon; lead directly into the questions. Stop after asking and do not call\n   `SearchFlights` again this turn.\n3. On the traveler's next turn, process every answer, then call `SearchFlights` again with the\n   same `job_id` and `wait_for_results=false`. Resend `include_fare_options` and every currently\n   known preference — including `cabin_class` — since neither persists on the job on its own;\n   the traveler's newly given answers just add to that resent set. Omit `departure`, `arrival`,\n   `departure_date`, and `return_date` — the job retains the route and dates from the first call.\n   If the traveler **withdraws** a previously stated preference (e.g. \"actually, airline doesn't\n   matter\"), pass that field name in `clear_preferences` so the job drops it; never silently omit\n   a removed preference and never send a placeholder value.\n4. If that response is still incomplete, acknowledge any applied preferences without narrating\n   search status or timing, ask one more concise question about any remaining materially useful\n   preference, then stop again. Limit preference gathering to **at most two turns** of questions\n   after the kickoff; if the search is still incomplete after that, simply wait for the next user\n   turn to poll without asking more questions. Once `search_complete` is `true`, present the full\n   results as in Step 4.\n\nIf a `SEARCH_STILL_RUNNING` error includes a `job_id`, apply the same rule and resume that job\nonly on a later user turn. Never sleep, back off, or present incomplete offers as final.\n\n```json\n{\n  \"job_id\": \"{job_id_from_initial_response}\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"apply the traveler's cabin preference to the Toronto→SFO flight search\"\n}\n```\n\n### CLI synchronous search\n\nThe CLI response (with `--wait_for_results=true`) normally contains the complete\nranked set. Check `search_complete` before presenting it. If it is `false`, do not\ncall search again in the same turn: explain that the search is still running and\nwait for the traveler to ask to continue. On that later turn, re-call with the\nresponse's canonical `job_id` and the same `cabin_class`\u002F`include_fare_options`\nsettings. If a `SEARCH_STILL_RUNNING` error includes a `job_id`, apply the same\nrule and resume that job only on a later user turn. Never sleep, back off, poll,\nor present incomplete offers as final.\n\nOnce complete, empty `offers` = no match — tell the user and offer to change dates\u002Fairports.\n(Output is also token-capped, so a long result may page: pass the canonical `job_id` and\n`next_cursor` as `--cursor` to fetch more, only if the user wants beyond the first page.)\n\n**Show at most 10 flights** in the results table. If the response returns more than 10\noffers, present only the first 10 (in returned order) and tell the traveler more are\navailable on request. Never present more than 10 rows at once.\n\n**On both surfaces, for round-trips, save this search's `job_id`** for the return search in\nStep 5.\n\n## Step 4 — show the offers\n\nTurn the JSON into **one Markdown table** — never as prose, a bullet list, a numbered list,\nor a plain sentence list. The table is the only acceptable presentation format for flight\nresults on both CLI and MCP. Keep each offer's `id` out of the table (you need it for\nreturns\u002Fbooking). Each `offers[]` item has exactly these keys (don't invent others): `id`,\n`airline_name`, `flight_number`, `departure_airport`\u002F`arrival_airport`,\n`departure_time`\u002F`arrival_time`, `departure_date`\u002F`arrival_date` (for the `⁺¹` next-day mark),\n`duration`, `stops`, `price`, `in_policy`\u002F`policy_reason`, `fare_name` (free-text fare label),\n`ancillaries`, and `fare_options` (the per-fare grid — **present only when you passed\n`--include_fare_options`**).\n\n| # | Airline | Flight | Fare | Depart → Arrive | Duration \u002F stops | Price (round-trip total) | Policy |\n|---|---------|--------|------|-----------------|------------------|--------------------------|--------|\n| 1 | JetBlue | B6 0115 | Blue Basic | 6:00 AM → 9:15 AM | 6h 15m \u002F Nonstop | **$289** | ✓ |\n\n- **#** — the row's on-screen position (top = `1`, no gaps), not the JSON index. If you\n  reorder (e.g. cheapest in-policy first), renumber top to bottom. Keep a private `#`→`id`\n  map so \"book #3\" resolves correctly.\n- **Depart → Arrive** — local times; add `⁺¹` when arrival is next-day.\n- **Fare** — show the selected fare's `fare_name` when present; otherwise `—`. For a\n  fare-options comparison, use the selected row's fare name, category, and price rather than\n  the parent offer's cheapest-fare values.\n- **Duration \u002F stops** — combine the returned `duration` and `stops` (for example,\n  `6h 15m \u002F Nonstop`).\n- **Ancillaries** — when fare benefits matter to the comparison, summarize each returned\n  `ancillaries` entry using its `display_name`, `offer_type`, and `price` when present. Show\n  `INCLUDED`, `CHARGEABLE`, or `NOT_INCLUDED` as returned; a missing category is unknown and\n  must not be presented as excluded. Apply the same rule to nested fare-option ancillaries.\n- **Price** — always show. Round-trip header says **\"round-trip total\"** (covers both legs);\n  one-way says **\"Price\"**. Say which in words.\n- **Policy** — when `fare_options` is present, use the applicable nested fare's\n  `in_policy`\u002F`policy_reason`, never the parent offer's usually-null verdict. For the initial\n  offer row, use a nested fare only when the top-level offer `id` exactly matches that fare's\n  `id`; otherwise treat policy as unknown until the traveler selects an exact fare row. Never\n  match fares by price, amount, currency, or array position. After the traveler chooses a fare,\n  use that exact fare-option row. Render `true` as **✓**,\n  `false` as **✗** plus the returned reason, and `null` as **—** (unknown, not out of policy).\n  When `fare_options` is absent, use the offer-level verdict.\n\nAbove the table, lead with the route and travel date, taking the weekday from the offers'\n`departure_date` strings (weekday included, e.g. \"Mon, Jul 13, 2026\" → **\"SFO → EWR — Mon,\nJul 13\"**). The day you show must come from the API's date strings — never pair the traveler's\nwords (\"Sunday\") with a date you computed. Judge a mismatch against the day the traveler\nactually named: a departure day against `departure_date`, an arrival day against\n`arrival_date` — a Saturday red-eye arriving Sunday **matches** \"be home by Sunday\". On a real\nmismatch, re-search with the corrected date instead of presenting these offers. For an\narrival-day request, show each offer's `departure_date` **and** `arrival_date` as returned so\nthe traveler sees both days. If `search_policy_summary` has text, show it once as a short banner.\nDo not invent recommendation reasons or infer policy from price, cabin, or approval data.\n\nWhen the response includes `web_search_url`, end the results message with one final markdown link\nlabeled `See all results` pointing at the exact returned URL. Never rewrite, re-encode, shorten,\nor substitute any part of it, and never use another label.\n\n## Step 5 — round-trip: confirm the outbound, then fetch returns\n\nRound-trips only. **Wait for the user to name the outbound.** Don't guess or default to\ncheapest\u002Ffirst. Ask *\"Which outbound do you want? I'll pull the matching returns once you\npick.\"* If vague (\"the morning one\") and more than one fits, confirm the exact flight.\n\nThe return step is a **second flight-search call** — same command, with the chosen outbound's\n`id` as `--outbound_offer_id` plus the Step 3 `job_id` (carries outbound\ncontext for return-policy). For delegated bookings, also pass the same `--traveler_user_id`.\nDon't pass `--departure`\u002F`--arrival`\u002Fdates again — mixing them with `--outbound_offer_id` is\nrejected.\n\n```bash\nramp travel search-flight --output json \\\n  --outbound_offer_id \"\u003Cchosen_outbound_offer_id>\" \\\n  --job_id \"\u003Cjob_id_from_step_3>\" \\\n  --include_fare_options --wait_for_results=true \\\n  --rationale \"return offers for the chosen outbound, Toronto→SFO trip Jul 1-8\"\n```\n\nMCP:\n\n```json\n{\n  \"outbound_offer_id\": \"{chosen_outbound_offer_id}\",\n  \"job_id\": \"{job_id_from_step_3}\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": true,\n  \"rationale\": \"return offers for the chosen outbound, Toronto→SFO trip Jul 1-8\"\n}\n```\n\nCall `SearchFlights` with the above.\n\n**Return-offer reads are always synchronous, on both CLI and MCP** — unlike the outbound search,\nthis call rejects `wait_for_results=false`; always pass `true` and use the response directly.\n\nThe response is `is_round_trip: true` with `offers` being the return legs. (Return mode is\nsynchronous, so its `job_id` is null; page more returns by reusing `--outbound_offer_id` +\n`--cursor`.) Show them like Step 4, including the **max 10 rows** cap. **Each return offer's\nprice is the full round-trip total** — say so (*\"the nonstop keeps your trip at $289; the\n1-stop return makes it $396 total\"*). For policy, use the applicable nested fare verdict as\nin Step 4; only omit the Policy column when that applicable verdict is unavailable. The id\nyou carry to booking is the chosen **return** offer's `id`.\n\n## Step 6 — book (preview → confirm → verify)\n\nAlways three steps; never book in one shot, never assume a yes, never book a flight the\ntraveler didn't name. Booking spends **real money**.\n\nBefore previewing or confirming a booking, check whether the traveler already has a Ramp\ntravel profile:\n\n```bash\nramp travel profile --output json \\\n  --rationale \"check whether the Toronto→SFO Jul 1-8 trip traveler profile is ready for booking\"\n```\n\nMCP:\n\n```json\n{\n  \"rationale\": \"check whether the Toronto→SFO Jul 1-8 trip traveler profile is ready for booking\"\n}\n```\n\nCall `GetTravelerProfile` with the above.\n\nIf `has_profile` is `false`, collect the required traveler details in one message, then update\nthe profile before continuing. Use the tool to save the details the traveler gives you; do not\nsend them to the Ramp web app for this.\n\nFor delegated bookings, pass the same `traveler_user_id` from the user lookup flow to\n`travel profile` \u002F `GetTravelerProfile` and, if needed, `travel profile-update` \u002F\n`UpdateTravelerProfile`. For self-booking, omit `traveler_user_id`.\n\n```bash\nramp travel profile-update --output json \\\n  --first_name \"Taylor\" \\\n  --last_name \"Smith\" \\\n  --date_of_birth \"1990-01-15\" \\\n  --email \"taylor@example.com\" \\\n  --phone_number \"+14155550123\" \\\n  --id_gender MALE \\\n  --rationale \"create the traveler profile needed to book the Toronto→SFO Jul 1-8 trip\"\n```\n\nMCP:\n\n```json\n{\n  \"first_name\": \"Taylor\",\n  \"last_name\": \"Smith\",\n  \"date_of_birth\": \"1990-01-15\",\n  \"email\": \"taylor@example.com\",\n  \"phone_number\": \"+14155550123\",\n  \"id_gender\": \"MALE\",\n  \"rationale\": \"create the traveler profile needed to book the Toronto→SFO Jul 1-8 trip\"\n}\n```\n\nCall `UpdateTravelerProfile` with the above. `id_gender` is required (`MALE` or `FEMALE`); the\nprofile update fails without it.\n\nOnly continue when the update succeeds. Confirm the profile-update result reports success, or\nre-run `travel profile` to verify the traveler now has a profile before moving on. For delegated\nbookings, re-run it with the same `traveler_user_id`. If the update fails, correct the missing\ndetails and retry instead of continuing to booking.\n\nOnce the profile exists, continue to the normal preview, confirmation, and verification flow.\n\n**Which id:** one-way → the chosen offer's `id` from `search-flight` \u002F `SearchFlights`;\nround-trip → the chosen **return** offer's `id` from Step 5 (it represents the whole\nround-trip and its both-legs total — **not** the outbound id). Pass it as the first arg\n(`ramp travel book \"\u003Cid>\"` on CLI). Behind it is **`flight_offer_uuid`**, so a `--json` body\nor MCP `SubmitFlightBooking` call uses key `flight_offer_uuid`, not `offer_id`.\n\n### Phase 1 — preview (always first)\n\nRun `book` **without `--confirm`** — that returns the preview and books nothing.\nFor delegated bookings, pass the same `--traveler_user_id` used for profile preflight\u002Fsearch.\n\n```bash\nramp travel book \"\u003Cflight_offer_uuid>\" --output json \\\n  --rationale \"preview fare for the Toronto→SFO Jul 1 trip before the traveler confirms\"\n```\n\nMCP:\n\n```json\n{\n  \"flight_offer_uuid\": \"{flight_offer_uuid}\",\n  \"confirm\": false,\n  \"rationale\": \"preview fare for the Toronto→SFO Jul 1 trip before the traveler confirms\"\n}\n```\n\nCall `SubmitFlightBooking` with the above.\n\nShow plainly: traveler (`traveler_name_display` when present), route\u002Fdates, airline\u002Fflight,\ncabin\u002Ffare (`itinerary.fare_name` when present), payment timing (`payment_display` when\npresent), **total**, policy result, fare details, and the paying fund. If `loyalty_programs`\nis present, show each matching program's `display_name` and only the last four characters of\nits `loyalty_number`; do not expose its logo URL or full loyalty number. A preview without\n`spend_allocation_id` auto-uses `recommended_fund_uuid` when an eligible fund is available.\nLabel a fund `\u003Cfund name> (recommended)` only when the tool auto-populated that\nrecommendation; a user-selected fund never gets that label, even when its UUID matches.\n\n**Fare details:** when the preview returns `ancillaries_by_slice` (or equivalent ancillary\ndata), present a compact breakdown using each ancillary's `display_name`, `offer_type`, and\n`price` when present. Group them as:\n- **Included:** ancillaries with `offer_type=INCLUDED` — show `display_name` only.\n- **Costs extra:** ancillaries with `offer_type=CHARGEABLE` — show `display_name` and `price`.\n- **Not included:** ancillaries with `offer_type=NOT_INCLUDED` — show `display_name` only.\nOmit each group when it has no entries. Do not infer ancillary terms that the preview did not\nreturn.\n\nThe preview returns `eligible_funds`, `fund_eligibility_status`, and `selected_fund_uuid` when a\nfund was explicitly passed; a non-null `selected_fund_uuid` is the booking fund. If\n`fund_eligibility_status=lookup_failed`, do not confirm; repeat\nthe preview to resolve funding. If it is `none_eligible`, the valid path is to request new funds.\nIf the traveler chooses or changes to an eligible fund, call preview again with `confirm=false`\nand that fund's `fund_uuid` as `spend_allocation_id`; present the refreshed preview and wait for\na separate explicit confirmation turn.\n\nUse `approval_display_status` verbatim for approval messaging. Do not infer the wording from\n`requires_approval` or `approval_steps` alone.\n\nIf `loyalty_program_names_to_offer` is non-empty and this is a self-booking, ask whether to save\none of the returned programs and stop for the answer before asking for booking confirmation. Save\nonly the exact returned program name with the membership number the traveler provides. For a\ndelegated booking, do not offer or attempt to save loyalty; the save action targets the requester,\nnot the selected traveler. If the traveler saves a program, run a fresh preview and require fresh\nconfirmation.\n\nThe preview returns the itinerary dates as weekday-qualified strings — **`outbound_date`**\n(e.g. \"Mon, Jul 13, 2026\") and, for round-trips, **`return_date`**. The read-back must quote\nthem **exactly as returned, weekday included** — never re-derive the weekday or repeat one\nfrom earlier conversation. These are departure dates — check them against a departure day the\ntraveler named; for an arrival day (\"be home by Sunday\"), check the chosen offer's\n`arrival_date` instead and read that day back too (a Saturday-departing red-eye arriving\nSunday is correct). On a real mismatch, **stop and re-search (Step 3) with the corrected\ndate** — don't ask for confirmation. If the preview doesn't include these fields, verify each\nISO travel date with Python's calendar instead (use `python` if only that executable is\navailable):\n\n```bash\npython3 -c 'from datetime import date; import sys; dates = map(date.fromisoformat, sys.argv[1:]); print(\"\\n\".join(\"{}: {} {}, {}\".format(d.isoformat(), d.strftime(\"%A, %B\"), d.day, d.year) for d in dates))' 2026-07-06 2026-07-10\n```\n\nThen state the total in plain words and **ask for a clear yes**. The confirmation prompt must\ninclude the preview's date string for every leg, along with the local departure time: *\"This\nbooks LHR → JFK on Delta, departing Mon, Jul 6, 2026 at 10:00 AM, for **$412 total**, paid\nfrom the Travel fund. Book it?\"* For a round-trip, include both outbound and return dates and\ntimes. Stop and wait.\n\n### Phase 2 — confirm (only after a clear \"yes\")\n\nAdd `--confirm` and pass the preview's numeric `expected_total_amount` verbatim as\n`--expected_total_amount` (with no currency symbol). This rejects the booking if the fare moved\ninstead of quietly charging more. Do not copy the display-formatted `total_amount`.\nFor delegated bookings, pass the same `--traveler_user_id` used in the preview.\n\n```bash\nramp travel book \"\u003Cflight_offer_uuid>\" --confirm \\\n  --expected_total_amount \u003Cpreview_expected_total_amount> --output json \\\n  --rationale \"book the Toronto→SFO Jul 1 trip; traveler approved the previewed fare\"\n```\n\nMCP:\n\n```json\n{\n  \"flight_offer_uuid\": \"{flight_offer_uuid}\",\n  \"confirm\": true,\n  \"expected_total_amount\": \"{preview_expected_total_amount}\",\n  \"spend_allocation_id\": \"{fund_uuid_from_latest_preview}\",\n  \"rationale\": \"book the Toronto→SFO Jul 1 trip; traveler approved the previewed fare\"\n}\n```\n\nCall `SubmitFlightBooking` with the above. Include exactly one funding path: `spend_allocation_id`\n(the exact fund from the latest preview, including the recommended UUID when the preview\nauto-populated it) or `request_new_fund: true` (with `reason` as the trip purpose). Never omit\nboth and never pass both.\n\nExtra flags, only when they apply:\n\n- **`--spend_allocation_id \u003Cfund_uuid>`** — use the exact fund from the latest preview, including\n  the recommended UUID when that preview auto-populated it.\n- **`--request_new_fund=true`** plus **`--reason \"\u003Ctrip purpose>\"`** — use only when the latest\n  preview showed the new-fund path. `reason` is the trip purpose shown to approvers, not a\n  generic booking note.\n- **`--oop_reason \"\u003Cjustification>\"`** — required for an out-of-policy quote.\n- **`--trip_id \u003Cuuid>`** — attach to an existing trip; off to auto-pick\u002Fcreate.\n\nConfirmation requires exactly one funding path: `spend_allocation_id` or\n`request_new_fund=true`. Never omit both and never pass both. Preserve the exact funding path\nfrom the latest preview.\n\nIf `confirm=true` fails for **any** reason, stop. Relay the error `message`, follow\n`agent_guidance`, and never retry, tweak parameters, switch offer\u002Ffare, or confirm again without\na fresh preview and a fresh explicit confirmation. A price-change error therefore requires a\nnew preview and new approval; it is not permission to retry the confirmation.\n\n### Phase 3 — verify it went through\n\n**The confirm response is optimistic, not final** — it can say `approved`\u002F`pending_approval`\nand still fail in fulfillment. Don't say \"you're booked\" off the confirm alone:\n\nOn a successful confirmation, retain the exact `booking.booking_request_id` from the response.\nUse it to select the matching entry from `travel bookings`; never select an older entry by route,\nflight number, or timestamp.\n\n```bash\nramp travel bookings --include_flights --output json \\\n  --city SFO --travel_date 2026-07-01 \\\n  --rationale \"verify the Toronto→SFO Jul 1 booking reached a terminal status\"\n```\n\nMCP:\n\n```json\n{\n  \"include_flights\": true,\n  \"city\": \"SFO\",\n  \"travel_date\": \"2026-07-01\",\n  \"rationale\": \"verify the Toronto→SFO Jul 1 booking reached a terminal status\"\n}\n```\n\nCall `GetBookings` with the above.\n\nUse the known city, airline, flight number, and travel date as lookup filters. They combine\nwith AND and are applied before the result limit. Flight-number matching ignores spaces,\npunctuation, case, and leading zeroes in the numeric portion. If `results_truncated` is true,\nadd another known filter and retry rather than treating the returned entries as exhaustive.\n\nFor delegated bookings, pass the same `--traveler_user_id` when verifying and on every retry;\notherwise `travel bookings` checks the requester's bookings.\n\nEach `travel bookings` entry has a generic `id` and a `booking_request_id`. Match the retained\nconfirmation `booking_request_id` exactly, then use that matching entry's generic `id` with\n`travel booking-details` for detailed status questions. Do not fuzzy-match by route, flight number,\nor `booked_at`. If the matching request is missing from the default result, retry once with\n`--include_failed`; if it is still missing, report that verification could not locate the submitted\nrequest rather than using another entry. Report the matching entry's `status`. Cancelled, rejected,\nand failed requests do not block rebooking. Most read\nfor themselves (`CONFIRMED`, `PENDING_APPROVAL`, `CANCELLED`). Two need care:\n\n- **`PROCESSING`** is **not final** — report that fulfillment is still processing; do not report\n  it as booked yet.\n- **`FAILED`** — show `error_message` exactly. If it points to missing traveler details, use\n  `travel profile` \u002F `GetTravelerProfile` and `travel profile-update` \u002F\n  `UpdateTravelerProfile` with the same traveler target to complete the profile before a new\n  booking attempt.\n\n`travel booking-details` (CLI) \u002F `GetBookingDetails` (MCP) is flag-gated by\n`OMNI_TRAVEL_BOOKING_SUPPORT_SKILL_ENABLED`. If it is not available, degrade gracefully with\nthe information from `travel bookings` \u002F `GetBookings` rather than claiming the detailed\nlookup succeeded. When available, relay `request_status`, `current_total_amount`,\n`error_message`, and `approval.pending_approval_summary` verbatim when approval is pending.\n\n## Cabin and fare options\n\nEvery search response already returns the fare grid because `include_fare_options=true` is\nalways on. The cabin answer — collected before searching on CLI, or applied to the running job\non MCP (see Step 3) — determines which cabins are policy-evaluated. If the traveler asks to\nbroaden or change cabins, re-read the existing `job_id` with the new `cabin_class` and\n`include_fare_options=true`; do not start a new route search unless the route, dates, trip, or\ntraveler changed.\n\n`include_fare_options: true` adds each flight's bookable fare classes to `fare_options` (each\nwith `fare_name`, `fare_category` — `Basic Economy`\u002F`Economy`\u002F`Economy Plus`\u002F`Premium`\u002F\n`Business`\u002F`First` — `price`, `in_policy`\u002F`policy_reason`, and a bookable fare `id`).\n\nThe offer's top-level `price` is the **cheapest** fare; `fare_options` lists the upgrades. To\nbook a specific fare, pass that fare option's `id`, **not** the offer's top-level `id`.\n\nSend the always-on search fields via the command flags when available, otherwise via the `--json`\nbody:\n\n```bash\nramp travel search-flight --output json --json '{\n  \"departure\": \"JFK\", \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-06\", \"return_date\": \"2026-07-10\",\n  \"cabin_class\": \"ECONOMY\", \"wait_for_results\": true,\n  \"include_fare_options\": true,\n  \"rationale\": \"compare cabin\u002Ffare classes for the JFK→SFO trip, Jul 6-10\"\n}'\n```\n\nHere cabin is already known because the traveler explicitly asked for a cabin\u002Ffare comparison,\nso MCP callers can include `cabin_class` on this fresh search too; still set\n`wait_for_results=false` and poll as in Step 3:\n\n```json\n{\n  \"departure\": \"JFK\",\n  \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-06\",\n  \"return_date\": \"2026-07-10\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"compare cabin\u002Ffare classes for the JFK→SFO trip, Jul 6-10\"\n}\n```\n\nCall `SearchFlights` with the above.\n\nRe-send `include_fare_options` and the active `cabin_class` on every follow-up call (pagination,\nthe cabin refinement, and the Step 5 return search); these settings do not persist on their own.\nMCP callers keep using `wait_for_results=false` and poll on outbound follow-up calls, but the\nStep 5 return search is always synchronous — pass `wait_for_results=true` there instead.\n\nPresent a **single cabin-grid Markdown table** — one row per flight, one column per cabin\ncategory — ordered by departure time (a comparison, not a ranked list). Never present this\nas a bullet list or prose:\n\n| # | Depart → Arrive | Airline \u002F Flight | Basic Econ | Economy | Econ+ | Premium | Business |\n|---|-----------------|------------------|-----------|---------|-------|---------|----------|\n| 1 | 7:00 AM → 9:49 AM | DL 0742 | **$154** | **$209** | $354 | $759 | $3,849 |\n\n- **#** — display position (top = `1`); keep an internal `#`→per-cabin-fare-`id` map so\n  \"book #2 in economy\" resolves to the right fare option `id`.\n- **Depart → Arrive** — local times, `⁺¹` for next-day.\n- One column per `fare_category`; cell = that fare's `price`, `—` if the flight doesn't sell it.\n- **Bold = in policy** (`in_policy: true`); plain otherwise; render `null` plain (don't claim\n  out-of-policy). Add a one-line legend.\n\nAbove the table, give the lead line (cheapest fare anywhere + the highest in-policy cabin) and\nmake the upgrade math explicit (*\"Basic Economy $289, in policy; Economy $399; Business\n$1,101, out of policy\"*).\n\n## Supporting tools (profile, trips, bookings)\n\nFive supporting tools; use when relevant, not on every booking.\n\n- **`travel profile`** (CLI) \u002F `GetTravelerProfile` (MCP) — the traveler's saved profile (name,\n  email, phone, DOB, gender, KTN\u002FTSA, redress, loyalty). Use for \"what's my known traveler\n  number?\" and before booking to check whether `has_profile` is true.\n- **`travel profile-update`** (CLI) \u002F `UpdateTravelerProfile` (MCP) — saves missing traveler\n  details before booking when `travel profile` \u002F `GetTravelerProfile` returns `has_profile:\n  false`, or when a failed booking points to missing traveler details.\n- **`travel list`** (CLI) \u002F `GetUserTrips` (MCP) — the traveler's trips\n  (`--status completed|ongoing|upcoming`, `--cursor` \u002F `status`, `cursor`). Each has `id`,\n  `trip_name`, dates, locations. Use to find a trip `id` for `--trip_id` \u002F `trip_id` on `book` \u002F\n  `SubmitFlightBooking`. Note: delegated trip lookup is not exposed on MCP; `GetUserTrips`\n  returns the caller's own trips only.\n- **`travel bookings`** (CLI) \u002F `GetBookings` (MCP) — existing flight\u002Fhotel bookings\n  (`--include_flights`\u002F`--include_hotels`, `--city`, `--hotel_name`, `--flight_airline`,\n  `--flight_number`, `--travel_date`, `--limit` \u002F their corresponding MCP fields). Supplied\n  filters for the same booking type combine with AND before the limit; mixed hotel- and\n  flight-specific filters match each type independently. Each entry has a `status`\n  (`CONFIRMED`\u002F`PENDING_APPROVAL`\u002F`FAILED` + `error_message`), route\u002Ftimes, and\n  `trip_name`\u002F`trip_id`. If `results_truncated` is true, narrow the filters before treating the\n  result as exhaustive. **Source of truth for whether a booking succeeded** (Phase 3) and for\n  \"what flights do I have booked?\".\n- **`travel booking-details`** (CLI) \u002F `GetBookingDetails` (MCP) — detailed status for one\n  exact `travel bookings` \u002F `GetBookings` entry ID when the booking support capability is\n  available. Use it for `request_status`, `current_total_amount`, `error_message`, and\n  approval details; relay a pending `pending_approval_summary` verbatim. If unavailable,\n  degrade gracefully to `travel bookings` \u002F `GetBookings`.\n\n## Cancelling a flight booking\n\nCancelling forfeits or spends real money, so it follows the same preview → explicit yes →\nconfirm discipline as booking. The command is `ramp travel cancel-flight` (CLI) \u002F\n`SubmitFlightCancellation` (MCP); it is enabled per business, so it may be absent for some\naccounts (see \"If cancellation is unavailable\").\n\n### Identify the exact booking first\n\nNever guess which booking to cancel. Resolve it from `ramp travel bookings --include_flights\n--output json` (same `--traveler_user_id` for delegated travelers), passing every known `city`,\n`flight_airline`, `flight_number`, and `travel_date` filter, and use the exact entry `id` — the\nsame exact ID the skill already uses with `travel booking-details`. If more than one booking\ncould match (\"cancel my SFO flight\"), show the likely matches and ask which one; never pick by\nroute, date, or recency on your own. If `results_truncated` is true, ask for another identifying\ndetail and run a narrower lookup before selecting a booking. If the traveler pasted an ID that\nthis conversation's `travel bookings` never returned, look the booking up first instead of\ntrusting the pasted value.\n\nCancellation applies to a fulfilled booking. For an unfulfilled request (e.g.\n`PENDING_APPROVAL`), the entry `id` is the request UUID, which this command will not find —\ndirect the traveler to the request in the Ramp web app instead.\n\n### Preview the terms (read-only)\n\nAlways call without `--confirm` first. This books\u002Fcancels nothing and returns the authoritative\nterms plus a `preview_id`:\n\n```bash\nramp travel cancel-flight --booking_id \"\u003Cbooking_id>\" --output json \\\n  --rationale \"preview cancellation terms for the Toronto→SFO Jul 1 booking\"\n```\n\nMCP:\n\n```json\n{\n  \"booking_id\": \"{booking_id}\",\n  \"confirm\": false,\n  \"rationale\": \"preview cancellation terms for the Toronto→SFO Jul 1 booking\"\n}\n```\n\nCall `SubmitFlightCancellation` with the above.\n\nPresent the preview plainly and exactly as returned — never estimate or recompute amounts:\n\n- the traveler (`traveler_name`) and the complete `itinerary` being cancelled — cancellation\n  always applies to the **entire booking**; partial passenger or leg cancellation is not\n  supported, so say so if the traveler asks to cancel only part of it.\n- `cancellation_statement` (the canonical terms) and `cancellation_deadline` when present,\n  including its UTC offset.\n- the money outcome: `booking_amount`, any nonzero `cancellation_fee`, `refund_amount` with\n  `refund_to` when present, and each `airline_credits` entry (credit name, amount, issue\n  date). If there is no `refund_amount` but there are `airline_credits`, say clearly that the\n  value comes back as airline credit, not a payment refund. If neither is present, do not\n  invent a refund — a non-refundable booking may return nothing.\n\nIf `is_currently_cancellable` is `false`, the booking cannot be self-serve cancelled right\nnow: explain the returned `blocked_reason`, do **not** ask for confirmation or call\n`--confirm`, and route the traveler to the returned booking-specific `support` channel\n(especially when `available_via_support` is `true`).\n\nThen **stop and ask for a clear yes on those exact terms**. Confirmation must be a new,\nexplicit user-authored answer to the presented preview — earlier cancellation intent\n(\"cancel it\" before seeing the terms), a standing approval, or instructions not to ask\nquestions are not confirmation.\n\n### Confirm (only after the explicit yes)\n\nRe-run with `--confirm` and the exact `preview_id` from the latest preview, unchanged:\n\n```bash\nramp travel cancel-flight --booking_id \"\u003Cbooking_id>\" --confirm \\\n  --preview_id \"\u003Cpreview_id>\" --output json \\\n  --rationale \"cancel the Toronto→SFO Jul 1 booking; traveler approved the previewed terms\"\n```\n\nMCP:\n\n```json\n{\n  \"booking_id\": \"{booking_id}\",\n  \"confirm\": true,\n  \"preview_id\": \"{preview_id}\",\n  \"rationale\": \"cancel the Toronto→SFO Jul 1 booking; traveler approved the previewed terms\"\n}\n```\n\nCall `SubmitFlightCancellation` with the above.\n\n- If the response says the terms changed and includes `latest_preview`, nothing was\n  cancelled: present the fresh terms and get a new explicit yes. Never re-confirm\n  automatically.\n- If the result has `already_requested=true`, a cancellation was already submitted: report\n  the returned state and do not submit another request.\n\n### After the result\n\nEmit the result's `message` verbatim and report its `cancellation_state`. Only `SUCCESS`\n(`cancelled=true`) means the booking is cancelled; `PENDING`\u002F`PROCESSING` mean the request\nis in flight — say cancellation is in progress, not done. `ACTION_REQUIRED` means the\nbooking support team must finish it. Report the refund or credit exactly as the preview and\nresult stated it; **never promise a refund timeline** the response didn't state, and route\nlater \"where's my refund?\" follow-ups to the Ramp web app or the booking's support channel.\n\n### If a cancellation call fails\n\nStop. Unlike booking errors, cancellation errors carry no separate `agent_guidance` field —\nthe returned `message` (and any `support` routing or `latest_preview`) **is** the guidance:\nrelay the `message` verbatim and never retry the call or vary parameters (a different\nbooking ID, dropping `preview_id`, toggling `--confirm`) to get past an error. A failed\nconfirm may still have partially gone through — before any second attempt, re-check the\nbooking's actual state with `travel bookings` \u002F `travel booking-details`, and only start\nagain (from a fresh preview) if the booking is genuinely still active. A `FAILED`\ncancellation routes to the returned support channel, not to a retry: Ramp emails the\ntraveler when an accepted cancellation later fails, and the booking stops being self-serve\ncancellable (a fresh preview returns `blocked_reason` and support routing), so a retry\ncannot succeed anyway.\n\n### If cancellation is unavailable\n\n`travel cancel-flight` (CLI) \u002F `SubmitFlightCancellation` (MCP) is enabled per business. If the\ncommand\u002Ftool is missing or Ramp reports the capability is unavailable, do not say the booking\ncan't be cancelled — say self-serve cancellation isn't enabled here and direct the traveler to\nthe booking in the Ramp web app or the booking's support channel. Cancellation also only covers bookings this flow could have\nmade: an unsupported provider (e.g. a Priceline-fulfilled flight) or a guest booking returns\nan error with support routing — relay it and point the traveler there.\n\nChanges, rebooking, and seat or date modifications are **not** cancellations and stay outside\nthis skill — send the traveler to the Ramp web app or the booking's support channel for those.\n\n## Gotchas\n\n- Offers expire from the cache. If a return or book call fails with a cache\u002Foffer error,\n  re-run the search (Step 3) for fresh offers and continue.\n","# Book a Flight (conversational flight search)\n\nThe user describes a trip in plain words. Turn that into `ramp travel` commands (CLI) or\nMCP tool calls, run them, and show clean results. **Never show or ask the user to type a CLI\ncommand or tool name** — talk like a travel helper (\"Searching Toronto → San Francisco,\nJul 1…\"), not about flags or tool names.\n\nThe Steps, Phases, checklist, and flag names in this guide are **your** internal scaffolding —\nnever surface them to the user. Don't say \"Phase 1,\" \"Step 3,\" or name flags; just narrate in\nplain travel language (\"Let me pull up the fare and check it before booking…\").\n\n## Prerequisites\n\n- **CLI:** `ramp` CLI installed and logged in (`ramp auth login`). Run where `ramp` works (or\n  `uv run ramp` inside the ramp-cli repo).\n- **MCP:** Ramp MCP server connected. Tools are called by their CamelCase names\n  (`SearchFlights`, `SubmitFlightBooking`, `SubmitFlightCancellation`, etc.).\n\n## Scope\n\n- ✅ Resolve cities to airports; search one-way and round-trip; show offers.\n- ✅ Round-trip: fetch the matching **return** flights for the outbound the user picks (Step 5).\n- ✅ **Book the ticket** — preview, confirm only on an explicit yes, then verify (Step 6).\n  Booking spends **real money**; it defaults to the logged-in user unless the user explicitly\n  asks to book for another traveler.\n- ✅ Compare cabins\u002Ffares — **only when asked** (see \"Cabin and fare options\").\n- ✅ Read or update the traveler's profile, and read trips and bookings (see \"Supporting tools\").\n- ✅ Book for another traveler when explicitly asked and authorized (see \"Delegated booking\").\n- ✅ **Cancel an existing flight booking** — preview the exact terms, confirm only on an explicit\n  yes (see \"Cancelling a flight booking\"). Availability is per-business; degrade gracefully when\n  the command is missing.\n- ❌ Changes\u002Fmodifications, refund-status follow-ups after a cancellation, seat selection,\n  hotels, cars, and multi-city are outside this flow — point the traveler to the Ramp web app\n  or the booking's support channel instead.\n\n## Rules for every command\n\n- **Always `--output json`** on every `travel search-flight` call (including the Step 5 return\n  search). Parse it into a friendly table — never show raw JSON, and never pipe through\n  `python`\u002F`jq`. MCP callers get structured JSON directly; the same table rule applies.\n- Every command needs a `--rationale` (CLI) or `rationale` (MCP). Once the trip is known, name it\n  in every related command's rationale (route + dates, e.g. \"Toronto→SFO, Jul 1-8\") and keep that\n  same reference through search, returns, preview, book, and verify — rationales are logged, so a\n  consistent trip reference groups a trip's commands.\n- `--departure`\u002F`--arrival` (CLI) or `departure`\u002F`arrival` (MCP) each take **one** value: an\n  airport code (`SFO`) or a Ramp city id (`search_code` from Step 2). No lists.\n- **Both surfaces present results as Markdown tables** — never as UI components, cards,\n  interactive widgets, bullet lists, numbered lists, or prose. A Markdown table is the only\n  acceptable presentation format for flight offers, fare comparisons, and fund displays.\n- `cabin_class` — offer **Economy**, **Premium Economy**, **Business**, **First** (API values\n  `ECONOMY`, `PREMIUM_ECONOMY`, `BUSINESS`, `FIRST`; never offer Basic Economy, though it can\n  still appear as a returned fare). Pass one value, or a list for alternatives like \"Business or\n  First.\" **CLI:** required before the first search — ask it as part of Step 1's grouped\n  question. **MCP:** omit on the first search unless the traveler already gave a cabin; ask for\n  it after kickoff and send it on the next `job_id` read (Step 3).\n- `include_fare_options` — always on, including pagination and the return-leg search.\n- `wait_for_results` — **CLI:** always `true` (blocks until results are ready). **MCP:** always\n  `false` (returns immediately with a `job_id` and `search_complete: false`; gather preferences\n  and poll as described in Step 3) — **except** the Step 5 return-offer read, which is always\n  synchronous and rejects `false` on both surfaces.\n\nThese stay optional — add only when the traveler asks:\n\n- `--limit` — off returns a default page. **Show at most 10 flights** in the results table;\n  if the response contains more, present the first 10 and tell the traveler they can ask for\n  more. Paginate with `next_cursor` (Step 3) when they do.\n- `--sort_key` — off uses `WEIGHTED_SCORE`. Other keys: `LOWEST_TOTAL_AMOUNT`,\n  `SHORTEST_DURATION`, `LEAST_NUMBER_OF_STOPS`, `EARLIEST_DEPARTURE_TIME`,\n  `LATEST_DEPARTURE_TIME`, `EARLIEST_ARRIVAL_TIME`, `LATEST_ARRIVAL_TIME`. Applies to a new\n  search only — re-sort by starting fresh, not on a `job_id` page.\n- Use `ramp travel search-flight` (CLI) or `SearchFlights` (MCP) for flight searches; check\n  `ramp travel --help` if the CLI alias is unavailable.\n\n## Delegated booking\n\nOnly set `traveler_user_id` when the user explicitly asks to book for another person. Otherwise\nomit it everywhere and book for the logged-in user.\n\nWhen the user asks to book for someone else:\n\n1. Resolve that traveler before profile preflight or search:\n\n```bash\nramp users list --name_search \"Taylor Smith\" --page_size 5 \\\n  --rationale \"resolve the traveler for the Toronto→SFO trip\" --output json\n```\n\nMCP:\n\n```json\n{\n  \"name_search\": \"Taylor Smith\",\n  \"page_size\": 5,\n  \"rationale\": \"resolve the traveler for the Toronto→SFO trip\"\n}\n```\n\nCall `GetAllReducedUsers` with the above.\n\nUse the returned traveler user UUID as `traveler_user_id`. If more than one user could match,\nask the requester to pick the exact traveler before continuing.\n\n2. Preserve the same `traveler_user_id` across the whole delegated flow: profile preflight,\n   `profile-update` if needed, every `search-flight` \u002F `SearchFlights` call (initial search,\n   resume pages, and round-trip return search), both `travel book` \u002F `SubmitFlightBooking`\n   preview and confirm calls, and booking verification\u002Fretries. Do not switch traveler ids\n   mid-flow.\n\n3. If traveler lookup fails or a target-aware call returns an authorization\u002Fempty-access result,\n   respond in plain travel-helper language. Do not mention `traveler_user_id`, flags, command\n   names, command counts, or CLI mechanics. Say you couldn't find\u002Faccess that traveler and ask\n   whether to continue for the requester or search again with a Ramp email\u002Fexact profile name.\n   Example: *\"I couldn't find a traveler named Emmy Song in this Ramp directory. If you want to\n   book for yourself, I can continue using your own traveler profile. Otherwise, send me the\n   traveler's Ramp email or exact profile name and I'll search again.\"* Do not silently fall back\n   to self-booking.\n\n## Step 1 — gather trip details\n\nUse what the user gave you; infer the rest.\n\n- **CLI:** gather every required detail plus cabin and other preferences together in one grouped\n  question before searching. Never search first and ask about preferences later.\n- **MCP:** gather only the required details before searching — destination, origin, dates, trip\n  type. Cabin and other preferences wait until after the search starts (Step 3).\n\nInfer silently, then say back (don't ask):\n\n| Slot | Assume |\n|---|---|\n| **Trip type** | round-trip if there's a return date, \"back on…\", or a stay length; else one-way. Ask only if truly unclear. |\n| **Relative dates** | resolve to `YYYY-MM-DD` and always say the date back so mistakes surface before money moves. |\n| **Airport given** | `SFO`, `JFK`, etc. → use directly, skip Step 2. |\n\nSay assumptions in one line as you go — *\"Searching JFK → SFO, Mon Jul 6, round-trip…\"*.\n\nIf a required detail is still missing — plus, on CLI, cabin and other preferences — ask for all\nof it in one grouped question (selectable options, one question per item). Required:\n**destination**, **origin** (if no home airport to guess), **departure date**, **one-way vs\nround-trip** (if unclear), and **return date** (round-trip). Keep dates in the future — 14+ days\nout is safest (a common policy cutoff). Never re-ask what they told you.\n\n## Step 2 — resolve a place to a `--departure`\u002F`--arrival` value\n\n- **Airport code** (`SFO`, `JFK`) → use directly, skip this step.\n- **City\u002Fvague place** (\"New York\", \"the Bay Area\") → look it up first:\n\n```bash\nramp travel locations --query \"New York\" --location_type city --limit 5 \\\n  --rationale \"resolve New York to a metro id for the user's trip\" --output json\n```\n\nMCP:\n\n```json\n{\n  \"query\": \"New York\",\n  \"location_type\": \"city\",\n  \"limit\": 5,\n  \"rationale\": \"resolve New York to a metro id for the user's trip\"\n}\n```\n\nCall `GetFlightBookingLocations` with the above.\n\nFor a **city**, the metro id is its **`search_code`** (a UUID; `iata_code` is empty). Pass\nthat one `search_code` to search the whole metro (New York covers JFK\u002FLGA\u002FEWR; Toronto covers\nYYZ\u002FYTZ). For one specific airport, search `--location_type airport` and pass its `iata_code`.\n\n## Step 3 — search flights\n\nAdd `--return_date` only for round-trips and `--traveler_user_id` only for delegated bookings.\nPass `cabin_class`, `include_fare_options`, and `wait_for_results` per \"Rules for every command.\"\n\n**When the traveler named a departure weekday** (\"leave Sunday\", \"out next Friday\"), also pass\n`--requested_weekday` with the lowercase day (`sunday`), if the flight-search command lists it\n(skip it on an older CLI). The server rejects the search when the departure date doesn't fall\non that weekday, and the error names the correct nearby dates — retry with the corrected date\nfrom the error; never clear the error by changing the weekday. It's departure-only: for an\n**arrival** day (\"be home by Sunday\"), leave it off — the right flight may depart the day\nbefore (a red-eye) — and let the Step 4 date strings show both days. If the rejection, or phrasing like \"Sunday night\", leaves it ambiguous whether the\ntraveler means late Sunday or a just-after-midnight Monday departure, ask them which they mean\ninstead of silently moving the date.\n\n```bash\nramp travel search-flight --output json \\\n  --departure YYZ --arrival SFO \\\n  --departure_date 2026-07-01 --return_date 2026-07-08 \\\n  --cabin_class ECONOMY --include_fare_options --wait_for_results=true \\\n  --rationale \"search flights for the Toronto→SFO trip, Jul 1-8\"\n```\n\nMCP:\n\n```json\n{\n  \"departure\": \"YYZ\",\n  \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-01\",\n  \"return_date\": \"2026-07-08\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"search flights for the Toronto→SFO trip, Jul 1-8\"\n}\n```\n\nCall `SearchFlights` with the above; include `cabin_class` only if the traveler already gave one.\n\n### MCP: kick off search first, then gather preferences\n\n1. The initial call above returns immediately with `search_complete: false` and a canonical\n   `job_id` — do not present empty offers as final; the search is still running. (It may already\n   return `search_complete: true` with offers; if so, skip straight to Step 4 and present them.)\n2. In that same turn, ask the 1-4 most important unresolved preferences in one grouped\n   question: cabin class (always ask when not already known), then timing, airline, nonstop,\n   fare-tier, and price-versus-schedule preferences when relevant — the same set described in\n   \"Rules for every command.\" Never mention that a search was started, is running, or is likely\n   to finish soon; lead directly into the questions. Stop after asking and do not call\n   `SearchFlights` again this turn.\n3. On the traveler's next turn, process every answer, then call `SearchFlights` again with the\n   same `job_id` and `wait_for_results=false`. Resend `include_fare_options` and every currently\n   known preference — including `cabin_class` — since neither persists on the job on its own;\n   the traveler's newly given answers just add to that resent set. Omit `departure`, `arrival`,\n   `departure_date`, and `return_date` — the job retains the route and dates from the first call.\n   If the traveler **withdraws** a previously stated preference (e.g. \"actually, airline doesn't\n   matter\"), pass that field name in `clear_preferences` so the job drops it; never silently omit\n   a removed preference and never send a placeholder value.\n4. If that response is still incomplete, acknowledge any applied preferences without narrating\n   search status or timing, ask one more concise question about any remaining materially useful\n   preference, then stop again. Limit preference gathering to **at most two turns** of questions\n   after the kickoff; if the search is still incomplete after that, simply wait for the next user\n   turn to poll without asking more questions. Once `search_complete` is `true`, present the full\n   results as in Step 4.\n\nIf a `SEARCH_STILL_RUNNING` error includes a `job_id`, apply the same rule and resume that job\nonly on a later user turn. Never sleep, back off, or present incomplete offers as final.\n\n```json\n{\n  \"job_id\": \"{job_id_from_initial_response}\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"apply the traveler's cabin preference to the Toronto→SFO flight search\"\n}\n```\n\n### CLI synchronous search\n\nThe CLI response (with `--wait_for_results=true`) normally contains the complete\nranked set. Check `search_complete` before presenting it. If it is `false`, do not\ncall search again in the same turn: explain that the search is still running and\nwait for the traveler to ask to continue. On that later turn, re-call with the\nresponse's canonical `job_id` and the same `cabin_class`\u002F`include_fare_options`\nsettings. If a `SEARCH_STILL_RUNNING` error includes a `job_id`, apply the same\nrule and resume that job only on a later user turn. Never sleep, back off, poll,\nor present incomplete offers as final.\n\nOnce complete, empty `offers` = no match — tell the user and offer to change dates\u002Fairports.\n(Output is also token-capped, so a long result may page: pass the canonical `job_id` and\n`next_cursor` as `--cursor` to fetch more, only if the user wants beyond the first page.)\n\n**Show at most 10 flights** in the results table. If the response returns more than 10\noffers, present only the first 10 (in returned order) and tell the traveler more are\navailable on request. Never present more than 10 rows at once.\n\n**On both surfaces, for round-trips, save this search's `job_id`** for the return search in\nStep 5.\n\n## Step 4 — show the offers\n\nTurn the JSON into **one Markdown table** — never as prose, a bullet list, a numbered list,\nor a plain sentence list. The table is the only acceptable presentation format for flight\nresults on both CLI and MCP. Keep each offer's `id` out of the table (you need it for\nreturns\u002Fbooking). Each `offers[]` item has exactly these keys (don't invent others): `id`,\n`airline_name`, `flight_number`, `departure_airport`\u002F`arrival_airport`,\n`departure_time`\u002F`arrival_time`, `departure_date`\u002F`arrival_date` (for the `⁺¹` next-day mark),\n`duration`, `stops`, `price`, `in_policy`\u002F`policy_reason`, `fare_name` (free-text fare label),\n`ancillaries`, and `fare_options` (the per-fare grid — **present only when you passed\n`--include_fare_options`**).\n\n| # | Airline | Flight | Fare | Depart → Arrive | Duration \u002F stops | Price (round-trip total) | Policy |\n|---|---------|--------|------|-----------------|------------------|--------------------------|--------|\n| 1 | JetBlue | B6 0115 | Blue Basic | 6:00 AM → 9:15 AM | 6h 15m \u002F Nonstop | **$289** | ✓ |\n\n- **#** — the row's on-screen position (top = `1`, no gaps), not the JSON index. If you\n  reorder (e.g. cheapest in-policy first), renumber top to bottom. Keep a private `#`→`id`\n  map so \"book #3\" resolves correctly.\n- **Depart → Arrive** — local times; add `⁺¹` when arrival is next-day.\n- **Fare** — show the selected fare's `fare_name` when present; otherwise `—`. For a\n  fare-options comparison, use the selected row's fare name, category, and price rather than\n  the parent offer's cheapest-fare values.\n- **Duration \u002F stops** — combine the returned `duration` and `stops` (for example,\n  `6h 15m \u002F Nonstop`).\n- **Ancillaries** — when fare benefits matter to the comparison, summarize each returned\n  `ancillaries` entry using its `display_name`, `offer_type`, and `price` when present. Show\n  `INCLUDED`, `CHARGEABLE`, or `NOT_INCLUDED` as returned; a missing category is unknown and\n  must not be presented as excluded. Apply the same rule to nested fare-option ancillaries.\n- **Price** — always show. Round-trip header says **\"round-trip total\"** (covers both legs);\n  one-way says **\"Price\"**. Say which in words.\n- **Policy** — when `fare_options` is present, use the applicable nested fare's\n  `in_policy`\u002F`policy_reason`, never the parent offer's usually-null verdict. For the initial\n  offer row, use a nested fare only when the top-level offer `id` exactly matches that fare's\n  `id`; otherwise treat policy as unknown until the traveler selects an exact fare row. Never\n  match fares by price, amount, currency, or array position. After the traveler chooses a fare,\n  use that exact fare-option row. Render `true` as **✓**,\n  `false` as **✗** plus the returned reason, and `null` as **—** (unknown, not out of policy).\n  When `fare_options` is absent, use the offer-level verdict.\n\nAbove the table, lead with the route and travel date, taking the weekday from the offers'\n`departure_date` strings (weekday included, e.g. \"Mon, Jul 13, 2026\" → **\"SFO → EWR — Mon,\nJul 13\"**). The day you show must come from the API's date strings — never pair the traveler's\nwords (\"Sunday\") with a date you computed. Judge a mismatch against the day the traveler\nactually named: a departure day against `departure_date`, an arrival day against\n`arrival_date` — a Saturday red-eye arriving Sunday **matches** \"be home by Sunday\". On a real\nmismatch, re-search with the corrected date instead of presenting these offers. For an\narrival-day request, show each offer's `departure_date` **and** `arrival_date` as returned so\nthe traveler sees both days. If `search_policy_summary` has text, show it once as a short banner.\nDo not invent recommendation reasons or infer policy from price, cabin, or approval data.\n\nWhen the response includes `web_search_url`, end the results message with one final markdown link\nlabeled `See all results` pointing at the exact returned URL. Never rewrite, re-encode, shorten,\nor substitute any part of it, and never use another label.\n\n## Step 5 — round-trip: confirm the outbound, then fetch returns\n\nRound-trips only. **Wait for the user to name the outbound.** Don't guess or default to\ncheapest\u002Ffirst. Ask *\"Which outbound do you want? I'll pull the matching returns once you\npick.\"* If vague (\"the morning one\") and more than one fits, confirm the exact flight.\n\nThe return step is a **second flight-search call** — same command, with the chosen outbound's\n`id` as `--outbound_offer_id` plus the Step 3 `job_id` (carries outbound\ncontext for return-policy). For delegated bookings, also pass the same `--traveler_user_id`.\nDon't pass `--departure`\u002F`--arrival`\u002Fdates again — mixing them with `--outbound_offer_id` is\nrejected.\n\n```bash\nramp travel search-flight --output json \\\n  --outbound_offer_id \"\u003Cchosen_outbound_offer_id>\" \\\n  --job_id \"\u003Cjob_id_from_step_3>\" \\\n  --include_fare_options --wait_for_results=true \\\n  --rationale \"return offers for the chosen outbound, Toronto→SFO trip Jul 1-8\"\n```\n\nMCP:\n\n```json\n{\n  \"outbound_offer_id\": \"{chosen_outbound_offer_id}\",\n  \"job_id\": \"{job_id_from_step_3}\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": true,\n  \"rationale\": \"return offers for the chosen outbound, Toronto→SFO trip Jul 1-8\"\n}\n```\n\nCall `SearchFlights` with the above.\n\n**Return-offer reads are always synchronous, on both CLI and MCP** — unlike the outbound search,\nthis call rejects `wait_for_results=false`; always pass `true` and use the response directly.\n\nThe response is `is_round_trip: true` with `offers` being the return legs. (Return mode is\nsynchronous, so its `job_id` is null; page more returns by reusing `--outbound_offer_id` +\n`--cursor`.) Show them like Step 4, including the **max 10 rows** cap. **Each return offer's\nprice is the full round-trip total** — say so (*\"the nonstop keeps your trip at $289; the\n1-stop return makes it $396 total\"*). For policy, use the applicable nested fare verdict as\nin Step 4; only omit the Policy column when that applicable verdict is unavailable. The id\nyou carry to booking is the chosen **return** offer's `id`.\n\n## Step 6 — book (preview → confirm → verify)\n\nAlways three steps; never book in one shot, never assume a yes, never book a flight the\ntraveler didn't name. Booking spends **real money**.\n\nBefore previewing or confirming a booking, check whether the traveler already has a Ramp\ntravel profile:\n\n```bash\nramp travel profile --output json \\\n  --rationale \"check whether the Toronto→SFO Jul 1-8 trip traveler profile is ready for booking\"\n```\n\nMCP:\n\n```json\n{\n  \"rationale\": \"check whether the Toronto→SFO Jul 1-8 trip traveler profile is ready for booking\"\n}\n```\n\nCall `GetTravelerProfile` with the above.\n\nIf `has_profile` is `false`, collect the required traveler details in one message, then update\nthe profile before continuing. Use the tool to save the details the traveler gives you; do not\nsend them to the Ramp web app for this.\n\nFor delegated bookings, pass the same `traveler_user_id` from the user lookup flow to\n`travel profile` \u002F `GetTravelerProfile` and, if needed, `travel profile-update` \u002F\n`UpdateTravelerProfile`. For self-booking, omit `traveler_user_id`.\n\n```bash\nramp travel profile-update --output json \\\n  --first_name \"Taylor\" \\\n  --last_name \"Smith\" \\\n  --date_of_birth \"1990-01-15\" \\\n  --email \"taylor@example.com\" \\\n  --phone_number \"+14155550123\" \\\n  --id_gender MALE \\\n  --rationale \"create the traveler profile needed to book the Toronto→SFO Jul 1-8 trip\"\n```\n\nMCP:\n\n```json\n{\n  \"first_name\": \"Taylor\",\n  \"last_name\": \"Smith\",\n  \"date_of_birth\": \"1990-01-15\",\n  \"email\": \"taylor@example.com\",\n  \"phone_number\": \"+14155550123\",\n  \"id_gender\": \"MALE\",\n  \"rationale\": \"create the traveler profile needed to book the Toronto→SFO Jul 1-8 trip\"\n}\n```\n\nCall `UpdateTravelerProfile` with the above. `id_gender` is required (`MALE` or `FEMALE`); the\nprofile update fails without it.\n\nOnly continue when the update succeeds. Confirm the profile-update result reports success, or\nre-run `travel profile` to verify the traveler now has a profile before moving on. For delegated\nbookings, re-run it with the same `traveler_user_id`. If the update fails, correct the missing\ndetails and retry instead of continuing to booking.\n\nOnce the profile exists, continue to the normal preview, confirmation, and verification flow.\n\n**Which id:** one-way → the chosen offer's `id` from `search-flight` \u002F `SearchFlights`;\nround-trip → the chosen **return** offer's `id` from Step 5 (it represents the whole\nround-trip and its both-legs total — **not** the outbound id). Pass it as the first arg\n(`ramp travel book \"\u003Cid>\"` on CLI). Behind it is **`flight_offer_uuid`**, so a `--json` body\nor MCP `SubmitFlightBooking` call uses key `flight_offer_uuid`, not `offer_id`.\n\n### Phase 1 — preview (always first)\n\nRun `book` **without `--confirm`** — that returns the preview and books nothing.\nFor delegated bookings, pass the same `--traveler_user_id` used for profile preflight\u002Fsearch.\n\n```bash\nramp travel book \"\u003Cflight_offer_uuid>\" --output json \\\n  --rationale \"preview fare for the Toronto→SFO Jul 1 trip before the traveler confirms\"\n```\n\nMCP:\n\n```json\n{\n  \"flight_offer_uuid\": \"{flight_offer_uuid}\",\n  \"confirm\": false,\n  \"rationale\": \"preview fare for the Toronto→SFO Jul 1 trip before the traveler confirms\"\n}\n```\n\nCall `SubmitFlightBooking` with the above.\n\nShow plainly: traveler (`traveler_name_display` when present), route\u002Fdates, airline\u002Fflight,\ncabin\u002Ffare (`itinerary.fare_name` when present), payment timing (`payment_display` when\npresent), **total**, policy result, fare details, and the paying fund. If `loyalty_programs`\nis present, show each matching program's `display_name` and only the last four characters of\nits `loyalty_number`; do not expose its logo URL or full loyalty number. A preview without\n`spend_allocation_id` auto-uses `recommended_fund_uuid` when an eligible fund is available.\nLabel a fund `\u003Cfund name> (recommended)` only when the tool auto-populated that\nrecommendation; a user-selected fund never gets that label, even when its UUID matches.\n\n**Fare details:** when the preview returns `ancillaries_by_slice` (or equivalent ancillary\ndata), present a compact breakdown using each ancillary's `display_name`, `offer_type`, and\n`price` when present. Group them as:\n- **Included:** ancillaries with `offer_type=INCLUDED` — show `display_name` only.\n- **Costs extra:** ancillaries with `offer_type=CHARGEABLE` — show `display_name` and `price`.\n- **Not included:** ancillaries with `offer_type=NOT_INCLUDED` — show `display_name` only.\nOmit each group when it has no entries. Do not infer ancillary terms that the preview did not\nreturn.\n\nThe preview returns `eligible_funds`, `fund_eligibility_status`, and `selected_fund_uuid` when a\nfund was explicitly passed; a non-null `selected_fund_uuid` is the booking fund. If\n`fund_eligibility_status=lookup_failed`, do not confirm; repeat\nthe preview to resolve funding. If it is `none_eligible`, the valid path is to request new funds.\nIf the traveler chooses or changes to an eligible fund, call preview again with `confirm=false`\nand that fund's `fund_uuid` as `spend_allocation_id`; present the refreshed preview and wait for\na separate explicit confirmation turn.\n\nUse `approval_display_status` verbatim for approval messaging. Do not infer the wording from\n`requires_approval` or `approval_steps` alone.\n\nIf `loyalty_program_names_to_offer` is non-empty and this is a self-booking, ask whether to save\none of the returned programs and stop for the answer before asking for booking confirmation. Save\nonly the exact returned program name with the membership number the traveler provides. For a\ndelegated booking, do not offer or attempt to save loyalty; the save action targets the requester,\nnot the selected traveler. If the traveler saves a program, run a fresh preview and require fresh\nconfirmation.\n\nThe preview returns the itinerary dates as weekday-qualified strings — **`outbound_date`**\n(e.g. \"Mon, Jul 13, 2026\") and, for round-trips, **`return_date`**. The read-back must quote\nthem **exactly as returned, weekday included** — never re-derive the weekday or repeat one\nfrom earlier conversation. These are departure dates — check them against a departure day the\ntraveler named; for an arrival day (\"be home by Sunday\"), check the chosen offer's\n`arrival_date` instead and read that day back too (a Saturday-departing red-eye arriving\nSunday is correct). On a real mismatch, **stop and re-search (Step 3) with the corrected\ndate** — don't ask for confirmation. If the preview doesn't include these fields, verify each\nISO travel date with Python's calendar instead (use `python` if only that executable is\navailable):\n\n```bash\npython3 -c 'from datetime import date; import sys; dates = map(date.fromisoformat, sys.argv[1:]); print(\"\\n\".join(\"{}: {} {}, {}\".format(d.isoformat(), d.strftime(\"%A, %B\"), d.day, d.year) for d in dates))' 2026-07-06 2026-07-10\n```\n\nThen state the total in plain words and **ask for a clear yes**. The confirmation prompt must\ninclude the preview's date string for every leg, along with the local departure time: *\"This\nbooks LHR → JFK on Delta, departing Mon, Jul 6, 2026 at 10:00 AM, for **$412 total**, paid\nfrom the Travel fund. Book it?\"* For a round-trip, include both outbound and return dates and\ntimes. Stop and wait.\n\n### Phase 2 — confirm (only after a clear \"yes\")\n\nAdd `--confirm` and pass the preview's numeric `expected_total_amount` verbatim as\n`--expected_total_amount` (with no currency symbol). This rejects the booking if the fare moved\ninstead of quietly charging more. Do not copy the display-formatted `total_amount`.\nFor delegated bookings, pass the same `--traveler_user_id` used in the preview.\n\n```bash\nramp travel book \"\u003Cflight_offer_uuid>\" --confirm \\\n  --expected_total_amount \u003Cpreview_expected_total_amount> --output json \\\n  --rationale \"book the Toronto→SFO Jul 1 trip; traveler approved the previewed fare\"\n```\n\nMCP:\n\n```json\n{\n  \"flight_offer_uuid\": \"{flight_offer_uuid}\",\n  \"confirm\": true,\n  \"expected_total_amount\": \"{preview_expected_total_amount}\",\n  \"spend_allocation_id\": \"{fund_uuid_from_latest_preview}\",\n  \"rationale\": \"book the Toronto→SFO Jul 1 trip; traveler approved the previewed fare\"\n}\n```\n\nCall `SubmitFlightBooking` with the above. Include exactly one funding path: `spend_allocation_id`\n(the exact fund from the latest preview, including the recommended UUID when the preview\nauto-populated it) or `request_new_fund: true` (with `reason` as the trip purpose). Never omit\nboth and never pass both.\n\nExtra flags, only when they apply:\n\n- **`--spend_allocation_id \u003Cfund_uuid>`** — use the exact fund from the latest preview, including\n  the recommended UUID when that preview auto-populated it.\n- **`--request_new_fund=true`** plus **`--reason \"\u003Ctrip purpose>\"`** — use only when the latest\n  preview showed the new-fund path. `reason` is the trip purpose shown to approvers, not a\n  generic booking note.\n- **`--oop_reason \"\u003Cjustification>\"`** — required for an out-of-policy quote.\n- **`--trip_id \u003Cuuid>`** — attach to an existing trip; off to auto-pick\u002Fcreate.\n\nConfirmation requires exactly one funding path: `spend_allocation_id` or\n`request_new_fund=true`. Never omit both and never pass both. Preserve the exact funding path\nfrom the latest preview.\n\nIf `confirm=true` fails for **any** reason, stop. Relay the error `message`, follow\n`agent_guidance`, and never retry, tweak parameters, switch offer\u002Ffare, or confirm again without\na fresh preview and a fresh explicit confirmation. A price-change error therefore requires a\nnew preview and new approval; it is not permission to retry the confirmation.\n\n### Phase 3 — verify it went through\n\n**The confirm response is optimistic, not final** — it can say `approved`\u002F`pending_approval`\nand still fail in fulfillment. Don't say \"you're booked\" off the confirm alone:\n\nOn a successful confirmation, retain the exact `booking.booking_request_id` from the response.\nUse it to select the matching entry from `travel bookings`; never select an older entry by route,\nflight number, or timestamp.\n\n```bash\nramp travel bookings --include_flights --output json \\\n  --city SFO --travel_date 2026-07-01 \\\n  --rationale \"verify the Toronto→SFO Jul 1 booking reached a terminal status\"\n```\n\nMCP:\n\n```json\n{\n  \"include_flights\": true,\n  \"city\": \"SFO\",\n  \"travel_date\": \"2026-07-01\",\n  \"rationale\": \"verify the Toronto→SFO Jul 1 booking reached a terminal status\"\n}\n```\n\nCall `GetBookings` with the above.\n\nUse the known city, airline, flight number, and travel date as lookup filters. They combine\nwith AND and are applied before the result limit. Flight-number matching ignores spaces,\npunctuation, case, and leading zeroes in the numeric portion. If `results_truncated` is true,\nadd another known filter and retry rather than treating the returned entries as exhaustive.\n\nFor delegated bookings, pass the same `--traveler_user_id` when verifying and on every retry;\notherwise `travel bookings` checks the requester's bookings.\n\nEach `travel bookings` entry has a generic `id` and a `booking_request_id`. Match the retained\nconfirmation `booking_request_id` exactly, then use that matching entry's generic `id` with\n`travel booking-details` for detailed status questions. Do not fuzzy-match by route, flight number,\nor `booked_at`. If the matching request is missing from the default result, retry once with\n`--include_failed`; if it is still missing, report that verification could not locate the submitted\nrequest rather than using another entry. Report the matching entry's `status`. Cancelled, rejected,\nand failed requests do not block rebooking. Most read\nfor themselves (`CONFIRMED`, `PENDING_APPROVAL`, `CANCELLED`). Two need care:\n\n- **`PROCESSING`** is **not final** — report that fulfillment is still processing; do not report\n  it as booked yet.\n- **`FAILED`** — show `error_message` exactly. If it points to missing traveler details, use\n  `travel profile` \u002F `GetTravelerProfile` and `travel profile-update` \u002F\n  `UpdateTravelerProfile` with the same traveler target to complete the profile before a new\n  booking attempt.\n\n`travel booking-details` (CLI) \u002F `GetBookingDetails` (MCP) is flag-gated by\n`OMNI_TRAVEL_BOOKING_SUPPORT_SKILL_ENABLED`. If it is not available, degrade gracefully with\nthe information from `travel bookings` \u002F `GetBookings` rather than claiming the detailed\nlookup succeeded. When available, relay `request_status`, `current_total_amount`,\n`error_message`, and `approval.pending_approval_summary` verbatim when approval is pending.\n\n## Cabin and fare options\n\nEvery search response already returns the fare grid because `include_fare_options=true` is\nalways on. The cabin answer — collected before searching on CLI, or applied to the running job\non MCP (see Step 3) — determines which cabins are policy-evaluated. If the traveler asks to\nbroaden or change cabins, re-read the existing `job_id` with the new `cabin_class` and\n`include_fare_options=true`; do not start a new route search unless the route, dates, trip, or\ntraveler changed.\n\n`include_fare_options: true` adds each flight's bookable fare classes to `fare_options` (each\nwith `fare_name`, `fare_category` — `Basic Economy`\u002F`Economy`\u002F`Economy Plus`\u002F`Premium`\u002F\n`Business`\u002F`First` — `price`, `in_policy`\u002F`policy_reason`, and a bookable fare `id`).\n\nThe offer's top-level `price` is the **cheapest** fare; `fare_options` lists the upgrades. To\nbook a specific fare, pass that fare option's `id`, **not** the offer's top-level `id`.\n\nSend the always-on search fields via the command flags when available, otherwise via the `--json`\nbody:\n\n```bash\nramp travel search-flight --output json --json '{\n  \"departure\": \"JFK\", \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-06\", \"return_date\": \"2026-07-10\",\n  \"cabin_class\": \"ECONOMY\", \"wait_for_results\": true,\n  \"include_fare_options\": true,\n  \"rationale\": \"compare cabin\u002Ffare classes for the JFK→SFO trip, Jul 6-10\"\n}'\n```\n\nHere cabin is already known because the traveler explicitly asked for a cabin\u002Ffare comparison,\nso MCP callers can include `cabin_class` on this fresh search too; still set\n`wait_for_results=false` and poll as in Step 3:\n\n```json\n{\n  \"departure\": \"JFK\",\n  \"arrival\": \"SFO\",\n  \"departure_date\": \"2026-07-06\",\n  \"return_date\": \"2026-07-10\",\n  \"cabin_class\": \"ECONOMY\",\n  \"include_fare_options\": true,\n  \"wait_for_results\": false,\n  \"rationale\": \"compare cabin\u002Ffare classes for the JFK→SFO trip, Jul 6-10\"\n}\n```\n\nCall `SearchFlights` with the above.\n\nRe-send `include_fare_options` and the active `cabin_class` on every follow-up call (pagination,\nthe cabin refinement, and the Step 5 return search); these settings do not persist on their own.\nMCP callers keep using `wait_for_results=false` and poll on outbound follow-up calls, but the\nStep 5 return search is always synchronous — pass `wait_for_results=true` there instead.\n\nPresent a **single cabin-grid Markdown table** — one row per flight, one column per cabin\ncategory — ordered by departure time (a comparison, not a ranked list). Never present this\nas a bullet list or prose:\n\n| # | Depart → Arrive | Airline \u002F Flight | Basic Econ | Economy | Econ+ | Premium | Business |\n|---|-----------------|------------------|-----------|---------|-------|---------|----------|\n| 1 | 7:00 AM → 9:49 AM | DL 0742 | **$154** | **$209** | $354 | $759 | $3,849 |\n\n- **#** — display position (top = `1`); keep an internal `#`→per-cabin-fare-`id` map so\n  \"book #2 in economy\" resolves to the right fare option `id`.\n- **Depart → Arrive** — local times, `⁺¹` for next-day.\n- One column per `fare_category`; cell = that fare's `price`, `—` if the flight doesn't sell it.\n- **Bold = in policy** (`in_policy: true`); plain otherwise; render `null` plain (don't claim\n  out-of-policy). Add a one-line legend.\n\nAbove the table, give the lead line (cheapest fare anywhere + the highest in-policy cabin) and\nmake the upgrade math explicit (*\"Basic Economy $289, in policy; Economy $399; Business\n$1,101, out of policy\"*).\n\n## Supporting tools (profile, trips, bookings)\n\nFive supporting tools; use when relevant, not on every booking.\n\n- **`travel profile`** (CLI) \u002F `GetTravelerProfile` (MCP) — the traveler's saved profile (name,\n  email, phone, DOB, gender, KTN\u002FTSA, redress, loyalty). Use for \"what's my known traveler\n  number?\" and before booking to check whether `has_profile` is true.\n- **`travel profile-update`** (CLI) \u002F `UpdateTravelerProfile` (MCP) — saves missing traveler\n  details before booking when `travel profile` \u002F `GetTravelerProfile` returns `has_profile:\n  false`, or when a failed booking points to missing traveler details.\n- **`travel list`** (CLI) \u002F `GetUserTrips` (MCP) — the traveler's trips\n  (`--status completed|ongoing|upcoming`, `--cursor` \u002F `status`, `cursor`). Each has `id`,\n  `trip_name`, dates, locations. Use to find a trip `id` for `--trip_id` \u002F `trip_id` on `book` \u002F\n  `SubmitFlightBooking`. Note: delegated trip lookup is not exposed on MCP; `GetUserTrips`\n  returns the caller's own trips only.\n- **`travel bookings`** (CLI) \u002F `GetBookings` (MCP) — existing flight\u002Fhotel bookings\n  (`--include_flights`\u002F`--include_hotels`, `--city`, `--hotel_name`, `--flight_airline`,\n  `--flight_number`, `--travel_date`, `--limit` \u002F their corresponding MCP fields). Supplied\n  filters for the same booking type combine with AND before the limit; mixed hotel- and\n  flight-specific filters match each type independently. Each entry has a `status`\n  (`CONFIRMED`\u002F`PENDING_APPROVAL`\u002F`FAILED` + `error_message`), route\u002Ftimes, and\n  `trip_name`\u002F`trip_id`. If `results_truncated` is true, narrow the filters before treating the\n  result as exhaustive. **Source of truth for whether a booking succeeded** (Phase 3) and for\n  \"what flights do I have booked?\".\n- **`travel booking-details`** (CLI) \u002F `GetBookingDetails` (MCP) — detailed status for one\n  exact `travel bookings` \u002F `GetBookings` entry ID when the booking support capability is\n  available. Use it for `request_status`, `current_total_amount`, `error_message`, and\n  approval details; relay a pending `pending_approval_summary` verbatim. If unavailable,\n  degrade gracefully to `travel bookings` \u002F `GetBookings`.\n\n## Cancelling a flight booking\n\nCancelling forfeits or spends real money, so it follows the same preview → explicit yes →\nconfirm discipline as booking. The command is `ramp travel cancel-flight` (CLI) \u002F\n`SubmitFlightCancellation` (MCP); it is enabled per business, so it may be absent for some\naccounts (see \"If cancellation is unavailable\").\n\n### Identify the exact booking first\n\nNever guess which booking to cancel. Resolve it from `ramp travel bookings --include_flights\n--output json` (same `--traveler_user_id` for delegated travelers), passing every known `city`,\n`flight_airline`, `flight_number`, and `travel_date` filter, and use the exact entry `id` — the\nsame exact ID the skill already uses with `travel booking-details`. If more than one booking\ncould match (\"cancel my SFO flight\"), show the likely matches and ask which one; never pick by\nroute, date, or recency on your own. If `results_truncated` is true, ask for another identifying\ndetail and run a narrower lookup before selecting a booking. If the traveler pasted an ID that\nthis conversation's `travel bookings` never returned, look the booking up first instead of\ntrusting the pasted value.\n\nCancellation applies to a fulfilled booking. For an unfulfilled request (e.g.\n`PENDING_APPROVAL`), the entry `id` is the request UUID, which this command will not find —\ndirect the traveler to the request in the Ramp web app instead.\n\n### Preview the terms (read-only)\n\nAlways call without `--confirm` first. This books\u002Fcancels nothing and returns the authoritative\nterms plus a `preview_id`:\n\n```bash\nramp travel cancel-flight --booking_id \"\u003Cbooking_id>\" --output json \\\n  --rationale \"preview cancellation terms for the Toronto→SFO Jul 1 booking\"\n```\n\nMCP:\n\n```json\n{\n  \"booking_id\": \"{booking_id}\",\n  \"confirm\": false,\n  \"rationale\": \"preview cancellation terms for the Toronto→SFO Jul 1 booking\"\n}\n```\n\nCall `SubmitFlightCancellation` with the above.\n\nPresent the preview plainly and exactly as returned — never estimate or recompute amounts:\n\n- the traveler (`traveler_name`) and the complete `itinerary` being cancelled — cancellation\n  always applies to the **entire booking**; partial passenger or leg cancellation is not\n  supported, so say so if the traveler asks to cancel only part of it.\n- `cancellation_statement` (the canonical terms) and `cancellation_deadline` when present,\n  including its UTC offset.\n- the money outcome: `booking_amount`, any nonzero `cancellation_fee`, `refund_amount` with\n  `refund_to` when present, and each `airline_credits` entry (credit name, amount, issue\n  date). If there is no `refund_amount` but there are `airline_credits`, say clearly that the\n  value comes back as airline credit, not a payment refund. If neither is present, do not\n  invent a refund — a non-refundable booking may return nothing.\n\nIf `is_currently_cancellable` is `false`, the booking cannot be self-serve cancelled right\nnow: explain the returned `blocked_reason`, do **not** ask for confirmation or call\n`--confirm`, and route the traveler to the returned booking-specific `support` channel\n(especially when `available_via_support` is `true`).\n\nThen **stop and ask for a clear yes on those exact terms**. Confirmation must be a new,\nexplicit user-authored answer to the presented preview — earlier cancellation intent\n(\"cancel it\" before seeing the terms), a standing approval, or instructions not to ask\nquestions are not confirmation.\n\n### Confirm (only after the explicit yes)\n\nRe-run with `--confirm` and the exact `preview_id` from the latest preview, unchanged:\n\n```bash\nramp travel cancel-flight --booking_id \"\u003Cbooking_id>\" --confirm \\\n  --preview_id \"\u003Cpreview_id>\" --output json \\\n  --rationale \"cancel the Toronto→SFO Jul 1 booking; traveler approved the previewed terms\"\n```\n\nMCP:\n\n```json\n{\n  \"booking_id\": \"{booking_id}\",\n  \"confirm\": true,\n  \"preview_id\": \"{preview_id}\",\n  \"rationale\": \"cancel the Toronto→SFO Jul 1 booking; traveler approved the previewed terms\"\n}\n```\n\nCall `SubmitFlightCancellation` with the above.\n\n- If the response says the terms changed and includes `latest_preview`, nothing was\n  cancelled: present the fresh terms and get a new explicit yes. Never re-confirm\n  automatically.\n- If the result has `already_requested=true`, a cancellation was already submitted: report\n  the returned state and do not submit another request.\n\n### After the result\n\nEmit the result's `message` verbatim and report its `cancellation_state`. Only `SUCCESS`\n(`cancelled=true`) means the booking is cancelled; `PENDING`\u002F`PROCESSING` mean the request\nis in flight — say cancellation is in progress, not done. `ACTION_REQUIRED` means the\nbooking support team must finish it. Report the refund or credit exactly as the preview and\nresult stated it; **never promise a refund timeline** the response didn't state, and route\nlater \"where's my refund?\" follow-ups to the Ramp web app or the booking's support channel.\n\n### If a cancellation call fails\n\nStop. Unlike booking errors, cancellation errors carry no separate `agent_guidance` field —\nthe returned `message` (and any `support` routing or `latest_preview`) **is** the guidance:\nrelay the `message` verbatim and never retry the call or vary parameters (a different\nbooking ID, dropping `preview_id`, toggling `--confirm`) to get past an error. A failed\nconfirm may still have partially gone through — before any second attempt, re-check the\nbooking's actual state with `travel bookings` \u002F `travel booking-details`, and only start\nagain (from a fresh preview) if the booking is genuinely still active. A `FAILED`\ncancellation routes to the returned support channel, not to a retry: Ramp emails the\ntraveler when an accepted cancellation later fails, and the booking stops being self-serve\ncancellable (a fresh preview returns `blocked_reason` and support routing), so a retry\ncannot succeed anyway.\n\n### If cancellation is unavailable\n\n`travel cancel-flight` (CLI) \u002F `SubmitFlightCancellation` (MCP) is enabled per business. If the\ncommand\u002Ftool is missing or Ramp reports the capability is unavailable, do not say the booking\ncan't be cancelled — say self-serve cancellation isn't enabled here and direct the traveler to\nthe booking in the Ramp web app or the booking's support channel. Cancellation also only covers bookings this flow could have\nmade: an unsupported provider (e.g. a Priceline-fulfilled flight) or a guest booking returns\nan error with support routing — relay it and point the traveler there.\n\nChanges, rebooking, and seat or date modifications are **not** cancellations and stay outside\nthis skill — send the traveler to the Ramp web app or the booking's support channel for those.\n\n## Gotchas\n\n- Offers expire from the cache. If a return or book call fails with a cache\u002Foffer error,\n  re-run the search (Step 3) for fresh offers and continue.\n",{"area":24,"name":5,"description":7,"supported_surfaces":25},"Travel",[26,27],"cli","mcp","main","9836d94e88404aabb682086405c2aa9cba7657ac","plugins\u002Framp\u002Fskills\u002Framp-book-flight",156,"https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace","https:\u002F\u002Fgithub.com\u002FCognitionAI","https:\u002F\u002Fcognition.ai\u002F","Makers of Devin, the AI software engineer.","2026-11-13 07:08:23",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add CognitionAI\u002Fdevin-marketplace --skill ramp-book-flight",{"tool":43,"command":44},"bunx","bunx skills add CognitionAI\u002Fdevin-marketplace --skill ramp-book-flight",{"tool":46,"command":47},"pnpm","pnpm dlx skills add CognitionAI\u002Fdevin-marketplace --skill ramp-book-flight","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Framp\u002Fskills\u002Framp-book-flight\u002FSKILL.md",true,[],[52,58,65,71,78,85],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7BYC4AJGM98P2G9JH7QS24Z","business-data","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwindsor-ai\u002Fskills\u002Fbusiness-data\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7BYBZ0CD4CBCPZHRZ551BNK","workflow","Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of \"workflow\", \"durable functions\", \"resumable\", \"workflow sdk\", \"queue\", \"event\", \"push\", \"subscribe\", or step-based orchestration.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002Fupstream\u002FSKILL.md",[],[],{"skillNo":66,"name":60,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7BYB1XSZHKHD8JZTQJ62JN0","Vercel Workflow SDK expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7BYASGMK935J33E21N5WTW0","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7BY9WJERKSKEH9HK6E71GW2","vercel-storage","Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7BY9N034894YV2J9DCRZHYS","vercel-services","Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.","https:\u002F\u002Fgithub.com\u002FCognitionAI\u002Fdevin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[]]