Travel Optimization Engine logo

Travel Optimization Engine

Community
dotanminh
travel-optimization-engine

Use when planning flights, comparing ticket prices, or asking about flight costs, airline fees, travel dates, or route options. Triggers on booking flights, cheap tickets, flight search, vé máy bay, săn vé rẻ, tối ưu chi phí bay, đặt vé, virtual interlining, or any flight-related cost question.

Overview

Publisherdotanminh
Repositorytravel-optimization-engine
Skill nametravel-optimization-engine
Stars
40
Forks
29
Bundled files
30
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.

  • 30 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 Travel Optimization Engine 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
  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 \
  .claude/skills/travel-optimization-engine
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Travel Optimization Engine 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 Travel Optimization Engine 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 Travel Optimization Engine 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.

Travel Optimization Engine

A decision support system for flight ticket cost optimization. Coordinates 8 specialized skills to analyze every angle of flight pricing before you book.

Setup

API keys required as environment variables (optional — skills work in AI-knowledge mode without APIs):

  • AMADEUS_API_KEY + AMADEUS_API_SECRET — register at developers.amadeus.com
  • KIWI_API_KEY — register at tequila.kiwi.com/portal

Shared API clients: scripts/amadeus_client.py, scripts/kiwi_client.py, scripts/normalize.py

Phase 1: Collect Traveler Profile

Before running any analysis, gather this profile (ask only what's missing). See references/user-profile-schema.md for full schema.

REQUIRED:
- origin: IATA code or city name (e.g., HAN, "Hanoi")
- destination: IATA code or city name (e.g., SFO, "San Francisco")
- departure_date: target date or range
- passengers: number + types (adult/child/infant)

OPTIONAL (improves accuracy):
- return_date: one-way if empty
- flexibility: low (±2 days) | medium (±7 days) | high (±14 days)
- baggage: carry_on | checked_1 | checked_2
- booking_type: personal | corporate
- loyalty_programs: airline codes (e.g., VN, QR)
- risk_tolerance: conservative | moderate | aggressive
- cabin_class: economy | premium_economy | business | first

If user provides minimal input (e.g., "HAN to SFO next month"), infer defaults:

  • flexibility: medium, baggage: carry_on, booking_type: personal, cabin: economy

Phase 2: Search (Parallel)

Run these two skills simultaneously:

  1. Read skills/date-optimization/SKILL.md — find cheapest travel dates in ±5-14 day window
  2. Read skills/flight-search/SKILL.md — search flights across Amadeus + Kiwi with virtual interlining

Pass optimal dates from skill 1 into skill 2 for refined results.

Phase 3: Analyze

With search results in hand, run sequentially:

  1. Read skills/route-optimization/SKILL.md — find cheaper hub-based routes
  2. Read skills/fee-analysis/SKILL.md — deconstruct hidden fees, re-rank by true cost
  3. Read skills/deals-verification/SKILL.md — check available deals and promo codes

Phase 4: Assess (Conditional)

Based on profile and context:

  1. If booking_type == corporate → Read skills/negotiation-email/SKILL.md
  2. If schedule uncertainty exists or risk_tolerance != conservative → Read skills/flexibility-analysis/SKILL.md
  3. Only if user explicitly asks about hidden city / throwaway ticketing → Read skills/hidden-city-strategy/SKILL.md (requires explicit user consent)

Phase 5: Output

Generate a consolidated comparison report:

Report Structure

  1. Executive Summary: Best option + savings vs naive booking
  2. Date Analysis: Optimal travel window with savings breakdown
  3. Top 5 Options: Ranked by true_total (all fees included)
  4. Route Alternatives: Hub-based savings if applicable
  5. Deals Applied: Verified discounts with confidence levels
  6. Risk Assessment: Flexibility scores per option
  7. Action Items: Exact next steps to book

Formatting Rules

  • All prices in user's preferred currency (default: USD for international, VND for domestic VN)
  • Always show: advertised_price → true_total comparison
  • Tag each option: [DIRECT] [1-STOP] [INTERLINING] [LCC] [LEGACY]
  • Include booking links or search instructions where possible

Quick Dispatch

For users who only need one specific skill:

User IntentSkill to Load
"When is cheapest to fly?"skills/date-optimization/SKILL.md
"Find flights HAN→SFO"skills/flight-search/SKILL.md
"Is there a cheaper route?"skills/route-optimization/SKILL.md
"What's the real price with fees?"skills/fee-analysis/SKILL.md
"Any promo codes?"skills/deals-verification/SKILL.md
"Help me negotiate with airline"skills/negotiation-email/SKILL.md
"Should I buy flexible ticket?"skills/flexibility-analysis/SKILL.md
"Tell me about hidden city"skills/hidden-city-strategy/SKILL.md

References

  • references/amadeus-api.md — Amadeus Self-Service API endpoints and auth
  • references/kiwi-api.md — Kiwi Tequila API with virtual interlining
  • references/airport-codes.md — Hub airports, alliances, strategic routing tips
  • references/user-profile-schema.md — Full profile field documentation

Important Notes

  • This skill is a Decision Support System — it helps users make informed choices, never auto-books
  • All prices from AI-Knowledge mode are estimates based on historical patterns
  • When API mode is enabled (Amadeus + Kiwi), prices are real-time but may change at checkout
  • Hidden city strategy (skill 8) always requires explicit human consent before analysis

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 Travel Optimization Engine AI skill do?

Use when planning flights, comparing ticket prices, or asking about flight costs, airline fees, travel dates, or route options. Triggers on booking flights, cheap tickets, flight search, vé máy bay, săn vé rẻ, tối ưu chi phí bay, đặt vé, virtual interlining, or any flight-related cost question.

Why use Travel Optimization Engine on TypingMind?

Because you install it once and use it with any model. Travel Optimization Engine 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 Travel Optimization Engine in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dotanminh/travel-optimization-engine/tree/master. 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 Travel Optimization Engine?

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 Travel Optimization Engine?

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

Is the Travel Optimization Engine 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 👇