Compare Flightsのロゴ

Compare Flights

コミュニティ
borski
compare-flights

Unified flight comparison across cash (Duffel, Ignav), award (seats.aero), and portal (Chase, Amex) sources in parallel. Outputs one table with transfer partner optimization and recommendations.

Add to TypingMind

概要

公開者borski
リポジトリtravel-hacking-toolkit
スキル名compare-flights
スター
690
フォーク
75
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    borskiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Compare Flights」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/borski/travel-hacking-toolkit/tree/main/plugins/travel-hacking-toolkit/skills/compare-flights
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/borski/travel-hacking-toolkit.git /tmp/travel-hacking-toolkit
mkdir -p .claude/skills
cp -r /tmp/travel-hacking-toolkit/plugins/travel-hacking-toolkit/skills/compare-flights .claude/skills/compare-flights
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCompare Flightsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCompare Flightsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Compare Flightsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Compare Flights

Search every available source for a route and present one unified comparison. Combines cash pricing, award availability, portal pay-with-points, and transfer partner optimization into a single table.

This is an orchestration skill. It tells the agent which tools to run and how to combine results. No standalone script.

Companion reference skills. Load these for deeper context:

  • flight-search-strategy — full source priority, market selection, source accuracy hierarchy
  • points-valuations — CPP rules, floor/ceiling, surcharge programs, transfer bonuses
  • partner-awards — alliance + bilateral partnership reachability
  • lessons-learned — Seats.aero workflow, Southwest specifics, Companion Pass math
  • fallback-and-resilience — what to do when a source fails
  • transfer-bonuses — current active transfer bonuses (live data); changes effective ratios when computing options 4-7 of the comparison table
  • stopovers — when an itinerary has a long layover or multi-city, check if a stopover-allowing program priced lower than separate one-ways
  • round-the-world — for 3+ stop multi-region itineraries, RTW products may beat sum-of-parts award pricing
  • award-holds — many major Western programs (UA, Aeroplan, AS, DL, BA, ANA, Qatar, Korean) no longer offer holds. Some still do: AA (24h online), Lufthansa M&M (5 days), Flying Blue (3 days, $25 phone fee), Cathay (2 days, $39 fee), Turkish (2 days), Virgin Atlantic (1-2 days, free phone), Singapore (agent discretionary). Affects whether the recommended path is "transfer first then ticket" or "ticket immediately"
  • status-match — when comparing options that include upgrades or elite-only benefits (lounge access, free bags, priority); status changes the real cost of a flight

When to Use

  • "Find me the best way to get from SFO to CDG in August"
  • "Should I pay cash or use points for this flight?"
  • "Compare all options for SFO to NRT business class"
  • Any flight search where the user wants the full picture

Sources

Run these in parallel where possible. Never fail silently. If a source errors, report it in the output so the user knows what's missing.

Cash Prices (run in parallel)

SourceSkillSpeedNotes
Duffelduffel~3sPrimary. Real GDS fares with fare classes. No Southwest.
Ignavignav~2sFast REST API. Good for price comparison. Booking links.
Google Flightsgoogle-flights~10sBrowser-automated. All airlines including Southwest cash. Good cross-check.
Skiplaggedweb search~5sHidden city ticketing. Often finds significantly cheaper fares. Search skiplagged.com/flights/{origin}/{dest}/{date}.
Kiwi.comweb search~5sCreative routings, self-transfer combos, multi-city. Search kiwi.com.
Southwestsouthwest~20sPatchright, Docker only. Points + cash for all 4 fare classes. Only needed when SW flies the route.

Skiplagged and Kiwi: Use web search (tavily or exa) to find their prices. They don't have MCP skills but their URLs are predictable. Always note that Skiplagged fares have restrictions (can't check bags, must use the "missed" connection city as destination).

Southwest: Run the southwest skill if SW flies the route. Include SW Rapid Rewards points in the comparison table as a separate currency. The lessons-learned skill has the full details on SW specifics (fare class requirements, Companion Pass math, GDS gap).

SerpAPI is optional. Only use if the user asks for Google Hotels or destination discovery.

Award Availability

SourceSkillSpeedNotes
Seats.aeroseats-aero~5sCached award availability across 25+ programs. Primary award source.

Portal Pay-With-Points (run in parallel, Docker required)

SourceSkillSpeedNotes
Chase URchase-travel~45sDynamic Points Boost pricing (~1.5-2.0 cpp on select bookings, not a guaranteed floor).
Amex MRamex-travel~45sIAP discount detection on Platinum.

Portal searches are slower (require browser login). Run them in parallel with each other, but don't block on them. Start cash + award searches first, present those results, then append portal results when ready.

Only run portal searches if the user has the relevant card or asks for portal pricing. Don't run Chase if they don't have a Sapphire card.

Workflow

Step 1: Gather All Prices

Run searches in parallel. Track which sources succeeded and which failed.

PARALLEL GROUP 1 (fast, ~3-5s):
  - Duffel: cash prices with fare classes
  - Ignav: cash prices with booking links
  - Seats.aero: award availability by program
  - Skiplagged: hidden city fares (web search)
  - Kiwi.com: creative routings (web search)

PARALLEL GROUP 2 (browser-automated, ~10-45s, Docker):
  - Google Flights: all airlines including Southwest cash
  - Southwest: points + cash for all fare classes (if SW flies the route)
  - Chase Travel: UR portal pricing + Points Boost
  - Amex Travel: MR portal pricing + IAP discounts

For each source, capture:

  • Source name
  • Status: "ok" | "error: {reason}" | "skipped: {reason}"
  • Results count
  • Data

Step 2: Apply Transfer Partner Optimization

For every seats.aero award result, calculate the effective cost in each transferable currency using data/transfer-partners.json:

For each award (e.g., United business at 88,000 miles):
  1. Look up which currencies transfer to United: Chase UR (1:1), Bilt (1:1)
  2. Calculate effective cost: 88,000 / 1.0 = 88,000 UR or 88,000 Bilt
  3. Calculate opportunity cost using data/points-valuations.json:
     88,000 UR × 1.7cpp floor = $1,496 equivalent

Include ALL viable transfer paths, not just the cheapest. The user may have more points in one currency than another.

Step 3: Calculate Portal CPP

Chase portal uses dynamic Points Boost pricing on CSR/CSP. The historical static 1.5x multiplier is gone. Each booking now quotes a specific points price; the effective cpp typically falls in the 1.5-2.0 cpp range on CSR but is not a guaranteed floor on every booking. Always pull the actual portal quote rather than computing from a multiplier.

Worked example with a Points Boost quote (verify the actual price):

Portal quote: 269,841 points for a $5,397 flight
True CPP: $5,397 / 269,841 = 2.0 cpp (excellent)

For lower-boost or non-boost bookings, the same flight might quote at 1.5 cpp or worse. Always use the real quote in the comparison.

Amex portal is ~1 cpp for flights (1 MR = 1 cent). IAP fares are discounted cash prices:

Standard: $5,044 = 504,400 MR points
IAP: $4,381 = 438,100 MR points (saves 66,300 MR)

Step 4: Present Unified Table

Always use markdown tables. One table with all options sorted by effective cost.

Example: SFO → CDG Business Class, Aug 11
#OptionSourcePricePointsCurrencyCPPRating
1Cash (lowest)Duffel$4,200————
2Flying Blue via Chase URseats.aero$120 tax55,000Chase UR7.4Excellent
3Aeroplan via Chase URseats.aero$200 tax70,000Chase UR5.7Excellent
4Chase Portal (Boost offer)chase-travel$5,400 portal180,000Chase UR3.0Excellent (when offered)
5Chase Portal (no Boost)chase-travel$5,400 portal360,000Chase URvaries (~1.5 typical)Pull live quote
6Amex Portal (IAP)amex-travel$5,044 portal438,100Amex MR1.15Poor
7Amex Portal (standard)amex-travel$5,044 portal504,400Amex MR1.0Poor

Note: CPP for portal rows uses the portal's own quote ($5,400 / $5,044) as the anchor since that's the actual cash price the portal would charge. Award rows use the Duffel market price ($4,200) as the anchor since that's the cash equivalent the user is foregoing by burning miles. The two anchors differ because portals add a markup, so portal-CPP and award-CPP aren't directly comparable. Better comparison: total cash out-of-pocket (taxes + cash component) per option.

Example: SFO → LAX Economy, Aug 11
#OptionSourcePricePointsCurrencyCPPRating
1SW Wanna Get Awaysouthwest$795,200SW RR1.52Good
2Cash (lowest)Duffel$89————
3SW WGA+southwest$1198,400SW RR1.42Fair
4United via Chase URseats.aero$5.60 tax5,000Chase UR1.67Good
5Chase Portalchase-travel—8,900Chase URvaries (~1.5 typical)Pull live quote
6SW Anytimesouthwest$21916,800SW RR1.30Fair

Note: SW points values shown use direct redemption CPP. If the user has Companion Pass, effective CPP doubles (two tickets for the points price of one).

Sources checked:

  • ✅ Duffel: 45 results
  • ✅ Ignav: 38 results
  • ✅ Skiplagged: 3 hidden city options
  • ✅ Kiwi.com: 12 creative routings
  • ✅ Seats.aero: 12 award options
  • ✅ Southwest: 4 fare classes (WGA $79/5.2K, WGA+ $119/8.4K, Anytime $219/16.8K, BizSelect $289/22.1K)
  • ✅ Chase Travel: 300 results (3 with Points Boost)
  • ✅ Amex Travel: 292 results (IAP available)
  • ✅ Google Flights: 52 results

Step 5: Recommendation

After the table, always provide:

  1. Best overall value: Which option gives the most CPP
  2. Best convenience: Which is easiest to book (online vs call, instant transfer vs wait)
  3. Cash vs points verdict: Using the trip-calculator framework:
    • If cash < opportunity cost of best award → "Pay cash"
    • If cash > opportunity cost → "Use points"
  4. Transfer warning: "Don't transfer until you confirm availability. Transfers are usually instant but can take 48h."
  5. Balance check: If the user's balances are known (from AwardWallet or prior context), flag if they don't have enough points

Error Handling

NEVER fail silently. Every source must report its status.

If a source fails:

- ❌ Duffel: API error (rate limit exceeded). Cash prices from Ignav only.
- ❌ Chase Travel: Login failed (2FA timeout). No portal pricing available.

If ALL cash sources fail, say so explicitly. Don't present award-only results without noting the missing cash comparison.

If seats.aero returns no availability, say "No award availability found" instead of silently omitting the award section.

Data Files Used

FilePurpose
data/transfer-partners.jsonCredit card → loyalty program transfer ratios
data/points-valuations.jsonCPP floor/ceiling for calculating opportunity cost
data/partner-awards.jsonCross-alliance booking options (VA→ANA, EY→AA, etc.)

Limitations

  • Portal searches require Docker and login credentials. Skip if not configured.
  • Seats.aero shows cached availability (up to 24h old). Live search via seats-aero-web is local only.
  • Transfer ratios are from transfer-partners.json. Verify against issuer before large transfers.
  • Chase portal pricing is dynamic Points Boost (~1.5-2.0 cpp on select bookings, not a guaranteed floor). The historical static 1.5x multiplier is gone. Pull the actual portal quote rather than computing from a multiplier.
  • Southwest is NOT in Duffel, Ignav, or seats.aero. Use Google Flights skill if SW pricing needed.

よくある質問

AIスキル「Compare Flights」では何ができますか?

Unified flight comparison across cash (Duffel, Ignav), award (seats.aero), and portal (Chase, Amex) sources in parallel. Outputs one table with transfer partner optimization and recommendations.

TypingMindでCompare Flightsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Compare Flightsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCompare Flightsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/borski/travel-hacking-toolkit/tree/main/plugins/travel-hacking-toolkit/skills/compare-flightsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Compare Flightsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Compare Flightsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCompare Flightsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Compare Flights」は無料ですか?

はい。borskiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇