[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74YM16PNJQNDYBJ490EBFH2":3,"skill-same:01M74YM16PNJQNDYBJ490EBFH2":70},{"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":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M74YM16PNJQNDYBJ490EBFH2","amex-travel",null,"Search Amex travel portal for cash prices, MR points pricing, IAP discounts, and FHR\u002FTHC hotel benefits via Patchright. Use when comparing pay-with-points portal pricing to award alternatives.","borski\u002Ftravel-hacking-toolkit","borski","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F207674?v=4","01M74YKQ7FZM71RB1ET5KSXBZT","Michael Borohovski","01M74YKQ85N97DKHKHJCDECJT5",978,"MIT","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002FSKILL.md",[],[],"2026-11-11 17:32:24",false,"---\nname: amex-travel\ndescription: Search Amex travel portal for cash prices, MR points pricing, IAP discounts, and FHR\u002FTHC hotel benefits via Patchright. Use when comparing pay-with-points portal pricing to award alternatives.\ncategory: portals\nsummary: Amex MR portal for flights, hotels, IAP discounts, FHR\u002FTHC benefits. Requires Platinum.\napi_key: None (requires Patchright)\ndocker_image: ghcr.io\u002Fborski\u002Famex-travel\n---\n\n# Amex Travel Portal Search\n\nSearch the American Express travel portal for flights and hotels via Patchright. Returns cash prices, MR points pricing, International Airline Program (IAP) discounts, and Fine Hotels & Resorts \u002F The Hotel Collection benefits.\n\n**Requires Patchright** (undetected Playwright fork). Amex blocks standard Playwright and agent-browser.\n\n**Must run headed (headless=False).** Amex detects headless browsers. On macOS, a Chrome window briefly appears. For background operation, use Docker.\n\n## Prerequisites\n\n```bash\npip install patchright && patchright install chromium\n```\n\nOr use Docker (no local install needed):\n```bash\ndocker pull ghcr.io\u002Fborski\u002Famex-travel:latest\n# or build locally:\ndocker build -t amex-travel skills\u002Famex-travel\u002F\n```\n\n## When to Use\n\n- Compare Amex portal MR pricing against cash and award prices\n- Find IAP (International Airline Program) discounted fares on Platinum\n- Find FHR and THC hotels with benefits ($100 credit, breakfast, upgrade)\n- Compare portal redemption value against transfer-to-airline value\n\n## When NOT to Use\n\n- **Completing purchases.** Find flights and hotels only. Do not book.\n- **Non-Platinum cards.** IAP fares and FHR benefits require the Platinum Card.\n\n## Usage\n\n### Flight Search\n\n```bash\n# Local (opens a Chrome window briefly)\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11\n\n# Round-trip business\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11 --return 2026-09-02 --cabin business\n\n# JSON output\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11 --json\n\n# Docker\ndocker run --rm \\\n    -v ~\u002F.amex-travel-profiles:\u002Fprofiles \\\n    -e AMEX_USERNAME -e AMEX_PASSWORD \\\n    amex-travel script \u002Fapp\u002Fsearch_flights.py \\\n    --origin SFO --dest CDG --depart 2026-08-11 --cabin business --json\n```\n\n### Hotel Search\n\n```bash\n# Local\npython3 scripts\u002Fsearch_flights.py --hotel --dest \"Oslo\" --checkin 2026-08-13 --checkout 2026-08-15\n\n# Docker\ndocker run --rm \\\n    -v ~\u002F.amex-travel-profiles:\u002Fprofiles \\\n    -e AMEX_USERNAME -e AMEX_PASSWORD \\\n    amex-travel script \u002Fapp\u002Fsearch_flights.py \\\n    --hotel --dest \"Oslo\" --checkin 2026-08-13 --checkout 2026-08-15 --json\n```\n\n### Record Mode (API Discovery)\n\nCapture network traffic during a manual search:\n\n```bash\npython3 scripts\u002Fsearch_flights.py --record\n```\n\n### Offline Debug (Hotels)\n\nSave and re-parse hotel results without re-running the browser:\n\n```bash\n# Save page HTML after hotel search\npython3 scripts\u002Fsearch_flights.py --hotel --dest \"Paris\" --checkin 2026-08-11 --checkout 2026-08-15 --save-html \u002Ftmp\u002Famex-hotels.json\n\n# Re-parse locally (instant, no browser)\npython3 scripts\u002Fsearch_flights.py --parse-html \u002Ftmp\u002Famex-hotels.json\n```\n\n## 2FA Flow\n\nAmex uses email OTP for 2FA. After first login with \"Add This Device\", subsequent runs skip 2FA from the same profile.\n\n**How it works:** When 2FA is triggered, the script prints `2FA_CODE_NEEDED` to stdout and `2FA REQUIRED` to stderr, then polls for the code. It will wait up to 2 minutes.\n\n**For agents:** When you see `2FA_CODE_NEEDED` in the script output, **ask the user** for the verification code Amex just emailed them. Once they provide it, write it to the code file:\n\n```bash\necho \"123456\" > \u002Ftmp\u002Famex-2fa-code.txt\n```\n\nThe script picks up the file automatically and continues login.\n\n**Command hook (optional, for full automation):** Set `AMEX_2FA_COMMAND` to a command that blocks until it has the code, then prints it to stdout. The script runs this instead of polling the file.\n\nAfter first login with \"Add This Device\", 2FA is skipped on repeat runs from the same profile.\n\n## Known Limitation: travel-portal login captcha (May 2026)\n\nAs of Amex's May 2026 overhaul, submitting a flight search redirects through a **separate travel-portal login gate** (`\u002Faccount\u002Ftravel\u002Flogin`) — even when already signed in to americanexpress.com — protected by a **risk-based captcha layer**. The script fills and submits the gate automatically, and the outcome depends on how Amex scores the session that run:\n\n- **Sometimes it passes** — the automated re-auth is accepted and results load end to end (verified live July 2026: full Docker run returned 50 parsed flights).\n- **Sometimes it's silently swallowed** — fields hold the correct values after submit, the form's own `#loginSubmit` was clicked, no error renders, captcha markers sit in the DOM, and the page never advances. Also verified live, same day, same credentials, same container.\n\nThe travel session is also short-lived (next-auth token, ~1 hour), so warm sessions expire quickly and the gate re-appears often. On gate failure the script prints a `Gate diag:` line (field\u002Fbutton\u002Falert state) so breakage is diagnosable from logs, then exits promptly instead of waiting out the results timeout. Hotel search may be affected similarly.\n\n**The wall only exists on fresh logins.** With a warm saved session (valid cookies + trusted device), the gate passes automatically and searches work end to end. So the recovery is a one-time human step, not a dead end:\n\n1. When the gate rejects the automated login (captcha or otherwise), the script prints **`AMEX_HUMAN_LOGIN_NEEDED`** to stdout (and writes `HUMAN_LOGIN_NEEDED` to `\u002Ftmp\u002Famex-2fa-status.txt`). **For agents:** stop retrying and tell the user to run the refresh script. (A separate sentinel, **`AMEX_BAD_CREDENTIALS`**, means the credential env vars contained an unresolved secret-manager reference instead of real values — fix the credential injection, not the login.)\n2. The user runs, **locally, not in Docker**:\n\n   ```bash\n   python3 scripts\u002Frefresh_login.py\n   ```\n\n   A real Chrome window opens on the travel portal. They log in themselves (password, captcha, email code, \"Add This Device\"), and the script saves the refreshed cookies\u002Fprofile automatically, printing `AMEX_SESSION_REFRESHED` when done.\n3. Subsequent runs — including Docker runs mounting `~\u002F.amex-travel-profiles` — reuse the warm session and skip the gate.\n\nTo keep the session from going stale, run any cheap search (or `refresh_login.py`, which exits as soon as it sees a logged-in page) every week or two. Prefer a residential IP; datacenter and hotel IPs draw extra Akamai scrutiny.\n\n## How It Works\n\n### Flight Search Architecture\n\n1. **Auth:** Cookie injection from saved profile. Falls back to fresh login with email 2FA.\n2. **Form filling:** DOM-based search form automation (airport autocomplete, calendar picker, cabin selector)\n3. **Login gate:** After form submission, Amex redirects through a login interstitial. Script handles re-authentication automatically (risk-based; see Known Limitation).\n4. **Data extraction (new UI, May 2026+):** Results land on `travel.americanexpress.com\u002Fen-us\u002Fbook\u002Fflights\u002Fsearch-results`, a Next.js app with no usable `window.appData` (`__NEXT_DATA__` is config only). The script parses the DOM's `[data-testid=\"offer-card-wrapper\"]` cards — airline, times, airports, duration, stops, cash, points, was\u002Fnow discounts all carry dedicated `data-testid`s.\n5. **Data extraction (legacy fallback):** If no offer cards appear, the script falls back to the old `window.appData` Redux-store extraction (627KB JSON blob).\n6. **IAP detection:** Cards carrying the `private-fare-banner-PEP*` banner with a \"was $X now it's $Y\" cash discount are IAP (Platinum Member Airfares), typically 10-15% off front-of-cabin international. Alaska \"Insider Fares\" (points-only discounts) are flagged separately via `insider_fare`\u002F`points_discount`.\n\n### Hotel Search Architecture\n\n1. **Form filling:** Same DOM-based approach as flights\n2. **Login gate:** Handled automatically\n3. **Data extraction:** Hotels render as a Next.js app with NO `window.appData`. Script parses the DOM using `data-testid=\"hotel-offer-card\"` elements.\n4. **FHR\u002FTHC detection:** Identified via `data-testid=\"offer-banner\"` text (\"Fine Hotels and Resorts\" or \"The Hotel Collection\")\n5. **Benefits extraction:** FHR\u002FTHC cards show benefits (breakfast, credit, upgrade) as `data-testid=\"offer-amenities-item\"` elements\n\n### Data Structure\n\nFlight results (from `window.appData.flightSearch.itineraries[]`):\n- `pricing_information[]` with `fare_type` = `PEP` (IAP) or `PUB` (public)\n- `total_price.cents` (cash), `total_price_in_points` (MR points = 1 cent per point)\n- `segment.legs[]` with carrier, times, duration, cabin, equipment, amenities\n- `segment.seats_left`, `is_refundable`, `cancellation_policy`\n\nHotel results (from DOM parsing):\n- Hotel name, stars, city, distance\n- TripAdvisor rating and review count\n- Per-night price and total price\n- MR points cost\n- FHR\u002FTHC membership with specific benefits\n- Standard amenities (wifi, breakfast, parking)\n\n## International Airline Program (IAP)\n\nPlatinum Card benefit. Lower fares on premium cabin seats for international flights on select airlines. Shows as a separate `PEP` fare type alongside `PUB` (public fare).\n\n- Typically 10-15% savings on business\u002Ffirst class\n- Not available on all routes or airlines\n- Only visible when logged in with a Platinum Card\n\n## Output Format\n\n**Always use markdown tables.**\n\n### Flights\n\n| # | Airline | Route | Stops | Duration | Cash | IAP Cash | Points | Seats |\n|---|---------|-------|-------|----------|------|----------|--------|-------|\n| 1 | Turkish | SFO-IST-CDG | 1 | 20h 10m | $5,044 | $4,381 | 438,113 | 3 |\n\n### Hotels\n\n| # | Hotel | Program | Stars | Per Night | Total | Points | Benefits |\n|---|-------|---------|-------|-----------|-------|--------|----------|\n| 1 | Hotel Continental | FHR | 5 | $471 | $942 | 94,200 | Breakfast, $100 credit, upgrade, 4pm checkout |\n\n### After Tables\n- Flag IAP savings (show % discount)\n- Note FHR\u002FTHC benefits and how they offset the rate\n- Calculate effective CPP for MR redemptions (1 point = 1 cent at Amex portal)\n- Compare against transfer-to-airline value\n- Mention the $600\u002Fyr Platinum hotel credit ($300 per half-year, shared between FHR and THC)\n\n## Cabin Codes\n\n| CLI Value | Amex Code | Description |\n|-----------|-----------|-------------|\n| `economy` | `ECONOMY` | Standard economy |\n| `premium` | `PREMIUM_ECONOMY` | Premium economy |\n| `business` | `BUSINESS` | Business class |\n| `first` | `FIRST` | First class |\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `AMEX_USERNAME` | Yes | Amex online account username |\n| `AMEX_PASSWORD` | Yes | Amex online account password |\n| `AMEX_PROFILE` | No | Browser profile directory (default: `~\u002F.amex-travel-profiles\u002Fdefault`) |\n| `AMEX_2FA_COMMAND` | No | Command that blocks until email code is ready, prints to stdout |\n\n## Troubleshooting\n\n- **Login gate after search:** Normal. Amex always redirects through a login interstitial after form submission. The script handles this automatically.\n- **No appData found (flights):** The page may not have fully loaded. Script waits for the Redux store to populate. Check if login succeeded.\n- **Empty hotel results:** Hotels use DOM parsing, not appData. If the DOM structure changed, the `data-testid` selectors may need updating.\n- **Calendar picker fails:** Amex uses `div[role=\"button\"]` for calendar days (not `\u003Cbutton>`). The script uses class patterns `automation-date-picker-month-{year}-{month}` to find the right month container.\n- **2FA code rejected:** Amex codes expire quickly. Make sure the code is fresh (not an old one from a previous login).\n\n## Limitations\n\n- **Headed mode required.** Amex detects headless. Docker+xvfb is the workaround.\n- **~45 seconds per search.** Login + form fill + login gate + results load.\n- **Hotel results via DOM only.** No API interception available for hotels (Next.js app with empty `__NEXT_DATA__`). Parser depends on `data-testid` attributes.\n- **Device trust helps.** After \"Add This Device\" on first login, 2FA is skipped for that profile. Keep profiles persistent via Docker volume mounts.\n","# Amex Travel Portal Search\n\nSearch the American Express travel portal for flights and hotels via Patchright. Returns cash prices, MR points pricing, International Airline Program (IAP) discounts, and Fine Hotels & Resorts \u002F The Hotel Collection benefits.\n\n**Requires Patchright** (undetected Playwright fork). Amex blocks standard Playwright and agent-browser.\n\n**Must run headed (headless=False).** Amex detects headless browsers. On macOS, a Chrome window briefly appears. For background operation, use Docker.\n\n## Prerequisites\n\n```bash\npip install patchright && patchright install chromium\n```\n\nOr use Docker (no local install needed):\n```bash\ndocker pull ghcr.io\u002Fborski\u002Famex-travel:latest\n# or build locally:\ndocker build -t amex-travel skills\u002Famex-travel\u002F\n```\n\n## When to Use\n\n- Compare Amex portal MR pricing against cash and award prices\n- Find IAP (International Airline Program) discounted fares on Platinum\n- Find FHR and THC hotels with benefits ($100 credit, breakfast, upgrade)\n- Compare portal redemption value against transfer-to-airline value\n\n## When NOT to Use\n\n- **Completing purchases.** Find flights and hotels only. Do not book.\n- **Non-Platinum cards.** IAP fares and FHR benefits require the Platinum Card.\n\n## Usage\n\n### Flight Search\n\n```bash\n# Local (opens a Chrome window briefly)\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11\n\n# Round-trip business\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11 --return 2026-09-02 --cabin business\n\n# JSON output\npython3 scripts\u002Fsearch_flights.py --origin SFO --dest CDG --depart 2026-08-11 --json\n\n# Docker\ndocker run --rm \\\n    -v ~\u002F.amex-travel-profiles:\u002Fprofiles \\\n    -e AMEX_USERNAME -e AMEX_PASSWORD \\\n    amex-travel script \u002Fapp\u002Fsearch_flights.py \\\n    --origin SFO --dest CDG --depart 2026-08-11 --cabin business --json\n```\n\n### Hotel Search\n\n```bash\n# Local\npython3 scripts\u002Fsearch_flights.py --hotel --dest \"Oslo\" --checkin 2026-08-13 --checkout 2026-08-15\n\n# Docker\ndocker run --rm \\\n    -v ~\u002F.amex-travel-profiles:\u002Fprofiles \\\n    -e AMEX_USERNAME -e AMEX_PASSWORD \\\n    amex-travel script \u002Fapp\u002Fsearch_flights.py \\\n    --hotel --dest \"Oslo\" --checkin 2026-08-13 --checkout 2026-08-15 --json\n```\n\n### Record Mode (API Discovery)\n\nCapture network traffic during a manual search:\n\n```bash\npython3 scripts\u002Fsearch_flights.py --record\n```\n\n### Offline Debug (Hotels)\n\nSave and re-parse hotel results without re-running the browser:\n\n```bash\n# Save page HTML after hotel search\npython3 scripts\u002Fsearch_flights.py --hotel --dest \"Paris\" --checkin 2026-08-11 --checkout 2026-08-15 --save-html \u002Ftmp\u002Famex-hotels.json\n\n# Re-parse locally (instant, no browser)\npython3 scripts\u002Fsearch_flights.py --parse-html \u002Ftmp\u002Famex-hotels.json\n```\n\n## 2FA Flow\n\nAmex uses email OTP for 2FA. After first login with \"Add This Device\", subsequent runs skip 2FA from the same profile.\n\n**How it works:** When 2FA is triggered, the script prints `2FA_CODE_NEEDED` to stdout and `2FA REQUIRED` to stderr, then polls for the code. It will wait up to 2 minutes.\n\n**For agents:** When you see `2FA_CODE_NEEDED` in the script output, **ask the user** for the verification code Amex just emailed them. Once they provide it, write it to the code file:\n\n```bash\necho \"123456\" > \u002Ftmp\u002Famex-2fa-code.txt\n```\n\nThe script picks up the file automatically and continues login.\n\n**Command hook (optional, for full automation):** Set `AMEX_2FA_COMMAND` to a command that blocks until it has the code, then prints it to stdout. The script runs this instead of polling the file.\n\nAfter first login with \"Add This Device\", 2FA is skipped on repeat runs from the same profile.\n\n## Known Limitation: travel-portal login captcha (May 2026)\n\nAs of Amex's May 2026 overhaul, submitting a flight search redirects through a **separate travel-portal login gate** (`\u002Faccount\u002Ftravel\u002Flogin`) — even when already signed in to americanexpress.com — protected by a **risk-based captcha layer**. The script fills and submits the gate automatically, and the outcome depends on how Amex scores the session that run:\n\n- **Sometimes it passes** — the automated re-auth is accepted and results load end to end (verified live July 2026: full Docker run returned 50 parsed flights).\n- **Sometimes it's silently swallowed** — fields hold the correct values after submit, the form's own `#loginSubmit` was clicked, no error renders, captcha markers sit in the DOM, and the page never advances. Also verified live, same day, same credentials, same container.\n\nThe travel session is also short-lived (next-auth token, ~1 hour), so warm sessions expire quickly and the gate re-appears often. On gate failure the script prints a `Gate diag:` line (field\u002Fbutton\u002Falert state) so breakage is diagnosable from logs, then exits promptly instead of waiting out the results timeout. Hotel search may be affected similarly.\n\n**The wall only exists on fresh logins.** With a warm saved session (valid cookies + trusted device), the gate passes automatically and searches work end to end. So the recovery is a one-time human step, not a dead end:\n\n1. When the gate rejects the automated login (captcha or otherwise), the script prints **`AMEX_HUMAN_LOGIN_NEEDED`** to stdout (and writes `HUMAN_LOGIN_NEEDED` to `\u002Ftmp\u002Famex-2fa-status.txt`). **For agents:** stop retrying and tell the user to run the refresh script. (A separate sentinel, **`AMEX_BAD_CREDENTIALS`**, means the credential env vars contained an unresolved secret-manager reference instead of real values — fix the credential injection, not the login.)\n2. The user runs, **locally, not in Docker**:\n\n   ```bash\n   python3 scripts\u002Frefresh_login.py\n   ```\n\n   A real Chrome window opens on the travel portal. They log in themselves (password, captcha, email code, \"Add This Device\"), and the script saves the refreshed cookies\u002Fprofile automatically, printing `AMEX_SESSION_REFRESHED` when done.\n3. Subsequent runs — including Docker runs mounting `~\u002F.amex-travel-profiles` — reuse the warm session and skip the gate.\n\nTo keep the session from going stale, run any cheap search (or `refresh_login.py`, which exits as soon as it sees a logged-in page) every week or two. Prefer a residential IP; datacenter and hotel IPs draw extra Akamai scrutiny.\n\n## How It Works\n\n### Flight Search Architecture\n\n1. **Auth:** Cookie injection from saved profile. Falls back to fresh login with email 2FA.\n2. **Form filling:** DOM-based search form automation (airport autocomplete, calendar picker, cabin selector)\n3. **Login gate:** After form submission, Amex redirects through a login interstitial. Script handles re-authentication automatically (risk-based; see Known Limitation).\n4. **Data extraction (new UI, May 2026+):** Results land on `travel.americanexpress.com\u002Fen-us\u002Fbook\u002Fflights\u002Fsearch-results`, a Next.js app with no usable `window.appData` (`__NEXT_DATA__` is config only). The script parses the DOM's `[data-testid=\"offer-card-wrapper\"]` cards — airline, times, airports, duration, stops, cash, points, was\u002Fnow discounts all carry dedicated `data-testid`s.\n5. **Data extraction (legacy fallback):** If no offer cards appear, the script falls back to the old `window.appData` Redux-store extraction (627KB JSON blob).\n6. **IAP detection:** Cards carrying the `private-fare-banner-PEP*` banner with a \"was $X now it's $Y\" cash discount are IAP (Platinum Member Airfares), typically 10-15% off front-of-cabin international. Alaska \"Insider Fares\" (points-only discounts) are flagged separately via `insider_fare`\u002F`points_discount`.\n\n### Hotel Search Architecture\n\n1. **Form filling:** Same DOM-based approach as flights\n2. **Login gate:** Handled automatically\n3. **Data extraction:** Hotels render as a Next.js app with NO `window.appData`. Script parses the DOM using `data-testid=\"hotel-offer-card\"` elements.\n4. **FHR\u002FTHC detection:** Identified via `data-testid=\"offer-banner\"` text (\"Fine Hotels and Resorts\" or \"The Hotel Collection\")\n5. **Benefits extraction:** FHR\u002FTHC cards show benefits (breakfast, credit, upgrade) as `data-testid=\"offer-amenities-item\"` elements\n\n### Data Structure\n\nFlight results (from `window.appData.flightSearch.itineraries[]`):\n- `pricing_information[]` with `fare_type` = `PEP` (IAP) or `PUB` (public)\n- `total_price.cents` (cash), `total_price_in_points` (MR points = 1 cent per point)\n- `segment.legs[]` with carrier, times, duration, cabin, equipment, amenities\n- `segment.seats_left`, `is_refundable`, `cancellation_policy`\n\nHotel results (from DOM parsing):\n- Hotel name, stars, city, distance\n- TripAdvisor rating and review count\n- Per-night price and total price\n- MR points cost\n- FHR\u002FTHC membership with specific benefits\n- Standard amenities (wifi, breakfast, parking)\n\n## International Airline Program (IAP)\n\nPlatinum Card benefit. Lower fares on premium cabin seats for international flights on select airlines. Shows as a separate `PEP` fare type alongside `PUB` (public fare).\n\n- Typically 10-15% savings on business\u002Ffirst class\n- Not available on all routes or airlines\n- Only visible when logged in with a Platinum Card\n\n## Output Format\n\n**Always use markdown tables.**\n\n### Flights\n\n| # | Airline | Route | Stops | Duration | Cash | IAP Cash | Points | Seats |\n|---|---------|-------|-------|----------|------|----------|--------|-------|\n| 1 | Turkish | SFO-IST-CDG | 1 | 20h 10m | $5,044 | $4,381 | 438,113 | 3 |\n\n### Hotels\n\n| # | Hotel | Program | Stars | Per Night | Total | Points | Benefits |\n|---|-------|---------|-------|-----------|-------|--------|----------|\n| 1 | Hotel Continental | FHR | 5 | $471 | $942 | 94,200 | Breakfast, $100 credit, upgrade, 4pm checkout |\n\n### After Tables\n- Flag IAP savings (show % discount)\n- Note FHR\u002FTHC benefits and how they offset the rate\n- Calculate effective CPP for MR redemptions (1 point = 1 cent at Amex portal)\n- Compare against transfer-to-airline value\n- Mention the $600\u002Fyr Platinum hotel credit ($300 per half-year, shared between FHR and THC)\n\n## Cabin Codes\n\n| CLI Value | Amex Code | Description |\n|-----------|-----------|-------------|\n| `economy` | `ECONOMY` | Standard economy |\n| `premium` | `PREMIUM_ECONOMY` | Premium economy |\n| `business` | `BUSINESS` | Business class |\n| `first` | `FIRST` | First class |\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `AMEX_USERNAME` | Yes | Amex online account username |\n| `AMEX_PASSWORD` | Yes | Amex online account password |\n| `AMEX_PROFILE` | No | Browser profile directory (default: `~\u002F.amex-travel-profiles\u002Fdefault`) |\n| `AMEX_2FA_COMMAND` | No | Command that blocks until email code is ready, prints to stdout |\n\n## Troubleshooting\n\n- **Login gate after search:** Normal. Amex always redirects through a login interstitial after form submission. The script handles this automatically.\n- **No appData found (flights):** The page may not have fully loaded. Script waits for the Redux store to populate. Check if login succeeded.\n- **Empty hotel results:** Hotels use DOM parsing, not appData. If the DOM structure changed, the `data-testid` selectors may need updating.\n- **Calendar picker fails:** Amex uses `div[role=\"button\"]` for calendar days (not `\u003Cbutton>`). The script uses class patterns `automation-date-picker-month-{year}-{month}` to find the right month container.\n- **2FA code rejected:** Amex codes expire quickly. Make sure the code is fresh (not an old one from a previous login).\n\n## Limitations\n\n- **Headed mode required.** Amex detects headless. Docker+xvfb is the workaround.\n- **~45 seconds per search.** Login + form fill + login gate + results load.\n- **Hotel results via DOM only.** No API interception available for hotels (Next.js app with empty `__NEXT_DATA__`). Parser depends on `data-testid` attributes.\n- **Device trust helps.** After \"Add This Device\" on first login, 2FA is skipped for that profile. Keep profiles persistent via Docker volume mounts.\n",{"name":5,"api_key":24,"summary":25,"category":26,"description":7,"docker_image":27},"None (requires Patchright)","Amex MR portal for flights, hotels, IAP discounts, FHR\u002FTHC benefits. Requires Platinum.","portals","ghcr.io\u002Fborski\u002Famex-travel","main","30b091178a3e4b02ff2c31bb43eb4186c4bf9d8a","plugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel",120,"https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit","https:\u002F\u002Fgithub.com\u002Fborski","I run the Agentic Red Team @ DeepMind (Google)","2026-11-09 22:54:02",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add borski\u002Ftravel-hacking-toolkit --skill amex-travel",{"tool":42,"command":43},"bunx","bunx skills add borski\u002Ftravel-hacking-toolkit --skill amex-travel",{"tool":45,"command":46},"pnpm","pnpm dlx skills add borski\u002Ftravel-hacking-toolkit --skill amex-travel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002FSKILL.md",true,[50,56,62,66],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"Dockerfile","OTHER","其他",176,"https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002FDockerfile",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Frefresh_login.py","SCRIPT","脚本",5027,"https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002Fscripts\u002Frefresh_login.py",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fsearch_flights.py",99695,"https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002Fscripts\u002Fsearch_flights.py",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"tests\u002Ftest_search_flights.py",9148,"https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Famex-travel\u002Ftests\u002Ftest_search_flights.py",[71,78,85,92,99,106],{"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},"01M74YSPQMTR5MVRP5DPXM6F73","wikipedia-airports","Discover destinations served from any airport via Wikipedia. Sanity-check whether an airline flies a specific route, find regional service that fare tools miss, identify late-split-return airport options.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Fwikipedia-airports\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},"01M74YSK14ZG02D6DT18N3X4GM","wheretocredit","Mileage earning rates by airline and booking class via wheretocredit.com. Redeemable and qualifying miles across 50+ programs. Use when deciding where to credit a flight or comparing earning rates.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Fwheretocredit\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},"01M74YSDZJZ70SN5A9GG16NQC0","vrbo","Search VRBO (Vrbo \u002F Expedia Group) vacation rentals including entire homes, condos, and cabins via Patchright browser automation. VRBO sits behind Akamai Bot Manager so plain HTTP and standard Playwright get a 429 bot wall. Use for whole-home or group stays, multi-bedroom rentals, and Airbnb-vs-VRBO comparisons. Trigger phrases include search VRBO, Vrbo rentals, vacation rental, cabin rental, whole house, condo for the group.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Fvrbo\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M74YSAXWPG81WK20XTQS0K04","tripadvisor","TripAdvisor Content API for hotel ratings, restaurant search, attraction reviews, rankings, and nearby locations. Use when evaluating hotels or researching destinations. 5K calls\u002Fmonth.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Ftripadvisor\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M74YS7174Q6WJRWVK4TPJQED","trip-planner","Full trip planning orchestration. Combines flight search, hotel search, and points optimization into one cost analysis. Use when the user says \"plan a trip\" or wants the complete picture for a destination.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Ftrip-planner\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M74YS3QM1ED7D6Q6X3JK2783","trip-log","Save flight searches, itineraries, and booked trips to the trips\u002Flogs\u002F directory for future reference. OPT-IN — use when the user asks to log a trip or look up past searches, or on every search only if the user has said they want automatic logging. Also use to update status when a trip is booked or completed.","https:\u002F\u002Fgithub.com\u002Fborski\u002Ftravel-hacking-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-hacking-toolkit\u002Fskills\u002Ftrip-log\u002FSKILL.md",[],[]]