Flight Search logo

Flight Search

Community
dotanminh
flight-search

Use when searching for flights, comparing airlines, or finding virtual interlining combinations across multiple carriers. Triggers on find flights, search routes, compare airlines, best price.

Overview

Publisherdotanminh
Repositorytravel-optimization-engine
Skill nameflight-search
Stars
40
Forks
29
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dotanminh on GitHub. Read the source before you install it.

Installation

Install the Flight Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dotanminh/travel-optimization-engine/tree/master/skills/flight-search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dotanminh/travel-optimization-engine.git /tmp/travel-optimization-engine
mkdir -p .claude/skills
cp -r /tmp/travel-optimization-engine/skills/flight-search .claude/skills/flight-search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Flight Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Flight Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Flight Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Flight Search - Tìm Route Combination Ẩn

Purpose

Find the best flight options by searching across multiple data sources, including virtual interlining combinations that standard search engines don't show. This is where the biggest savings happen - a combination of two separate tickets from different airlines can be 30-40% cheaper than any single-airline itinerary.

Input Required

From orchestrator:

  • origin, destination (IATA codes)
  • departure_date, return_date
  • passengers (count + types)
  • cabin_class
  • preferred_airlines, avoided_airlines (optional)
  • optimal_dates from date-optimization (if available)

Execution Steps

Step 1: Determine Search Strategy

Based on route type, choose data sources:

Route TypePrimary SourceSecondaryVirtual Interlining
Domestic VNAI Knowledge (VN carriers)Kiwi TequilaLow value
Intra-AsiaKiwi TequilaAI KnowledgeHIGH value
IntercontinentalKiwi TequilaAI KnowledgeHIGHEST value

Step 2: AI-Knowledge Search

For each route, generate estimated options using airline knowledge:

Known carrier pricing tiers (estimate ranges):

Carrier TypeExampleDomestic VNAsia Short-haulIntercontinental
LCCVietJet, AirAsia$30-80$50-200$300-600
Mid-tierBamboo, Scoot$50-120$80-300$400-800
LegacyVN Airlines, SQ$80-200$150-500$600-1500
PremiumEmirates, QRN/A$200-600$800-2500

Adjust estimates based on:

  • Season and day-of-week (from date-optimization)
  • Route competition level (more carriers = lower prices)
  • Advance purchase timing

Step 3: Virtual Interlining Analysis

This is the KEY differentiator. Identify potential virtual interlining combinations:

Pattern: Route A→B has no cheap direct option, but:

  • Carrier X has cheap A→C (transit hub)
  • Carrier Y has cheap C→B
  • Combined: A→C + C→B on separate tickets = cheaper than any A→B single ticket

Common virtual interlining opportunities:

OriginDestinationVia HubTypical Savings
HANSFOICN (Korean Air/Asiana → United/Alaska)20-35%
SGNCDGBKK (VietJet → Thai/AF)15-30%
HANSYDSIN (VietJet → Scoot/Jetstar)25-40%
SGNNRTTPE (VietJet → Peach/Vanilla)20-35%

Virtual interlining risks to flag:

  • No protection if first flight is delayed (buy travel insurance)
  • Separate check-in required at transit point
  • Must self-transfer baggage
  • Need sufficient layover time (minimum 3 hours international, 2 hours domestic)

Step 4: Normalize and Deduplicate Results

For ALL options regardless of source:

  1. Price normalization: Ensure every price includes:

    • Base fare
    • Mandatory taxes and surcharges
    • Fuel surcharge
    • Airport fees
    • Currency conversion to user's preferred currency
  2. Deduplication: If same flight appears from multiple sources:

    • Keep entry with lowest price
    • Note the source in metadata
  3. Tag each option:

    • [DIRECT] - Point-to-point, no stops
    • [1-STOP] - One connection, same airline/alliance
    • [2-STOP] - Two connections
    • [INTERLINING] - Virtual interlining (separate tickets)
    • [LCC] - Low-cost carrier
    • [LEGACY] - Full-service carrier

Step 5: Sort and Present

Sort by true_total_price (ascending). Present top 10:

#  Route                    Airlines        Adv.Price  True Total  Tags
1. HAN→ICN→SFO             VJ+UA           $520       $595        [INTERLINING][LCC+LEGACY]
2. HAN→NRT→SFO             VN+UA           $680       $710        [1-STOP][LEGACY]
3. HAN→BKK→SFO             VJ+CX+UA        $490       $620        [2-STOP][INTERLINING]
4. HAN→SFO                 VN              $1,100     $1,100      [DIRECT][LEGACY]
5. HAN→TPE→SFO             VJ+EVA           $550       $630        [INTERLINING][LCC+LEGACY]

Highlight: "Options 1, 3, 5 are virtual interlining - NOT available on Google Flights or standard aggregators."

Step 6: Pass Forward

Send to downstream skills:

  • flight_options[] → fee-analysis (for true cost calculation)
  • baseline_direct → route-optimization (for comparison)
  • fare_classes[] → flexibility-analysis

API-Enhanced Mode (Kiwi Tequila)

When API is configured, execute:

  1. Read references/api-integration.md for setup
  2. Run ../../scripts/kiwi_client.py with parameters
  3. Merge API results with AI-knowledge estimates
  4. Real prices override estimates for matching routes

Important Notes

  • Virtual interlining is NOT codeshare - user buys separate tickets
  • Always warn: "If flight 1 is delayed, flight 2 is NOT protected"
  • Recommend: "Consider travel insurance for virtual interlining itineraries"
  • For families with children < 2: virtual interlining adds significant complexity

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Flight Search AI skill do?

Use when searching for flights, comparing airlines, or finding virtual interlining combinations across multiple carriers. Triggers on find flights, search routes, compare airlines, best price.

Why use Flight Search on TypingMind?

Because you install it once and use it with any model. Flight Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Flight Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dotanminh/travel-optimization-engine/tree/master/skills/flight-search. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Flight Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Flight Search?

As many as you like. As long as a model supports skills, you can use Flight Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Flight Search AI skill free?

Yes. It is published on GitHub by dotanminh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇