This skill plans flights by assuming defaults from natural language, returning structured recommendations with direct booking links.
npx playbooks add skill foogunlana/skills --skill trip-planner
A skill that turns natural language into flight recommendations — preferring assumptions over questions.
> Assume first. Show your work. Book the flight.
Assume everything, show everything. The user corrects what's wrong, not fills in what's missing. The only hard requirement is a destination — everything else has a sensible default.
| Condition | Flow |
|-----------|------|
| No .claude/trip-planner.md exists | Onboarding Flow — instant search, then quick setup |
| .claude/trip-planner.md exists | Regular Flow — FAST: parse, assume, search, recommend |
---
Detection: Check if .claude/trip-planner.md exists. If no config exists, run this flow. Otherwise skip to Regular Flow.
Goal: Deliver flight recommendations immediately, then calibrate preferences.
Read references/branding.md and display verbatim:
Then check: did the user already describe a trip in their message?
Where are you headed? Just describe your trip naturally:
"I need to fly to Tokyo next month for a week"
"London to Paris, March 15-18, 2 adults"
"Cheapest flights to Barcelona in April"
Wait for user input.
Extract what the user said, then fill everything else with defaults.
Run the Assumption Engine (see below) against the user's input with these fallback defaults for onboarding (no config yet):
Show the Assumption Card:
## Assumptions
| Field | Value | Source |
|-------|-------|--------|
| Destination | Tokyo (NRT/HND) | You said |
| Origin | London (LHR) | Default |
| Dates | Mar 10 - Mar 17, 2026 | "next month" + 7 days |
| Passengers | 1 adult | Default |
| Class | Economy | Default |
| Budget | Flexible | Default |
| Stops | Any | Default |
Anything wrong? Say so and I'll re-search. Otherwise I'll find flights.
Wait for corrections or confirmation.
If user corrects → update assumptions → re-show card → wait again.
If user confirms (or says nothing wrong) → proceed to Step 3.
Run the Search Strategy (see below) with confirmed assumptions.
Present recommendations using the output format from assets/templates/trip-recommendation.md.
Then offer corrections:
Want to adjust anything? Change dates, class, budget — I'll re-search.
Corrections loop: User adjusts → re-search → re-present. Repeat until satisfied.
Once the user is happy with results:
Nice — that's your first search done.
Want to save your preferences so next time is faster? Quick 5 questions:
1. What's your home airport? (e.g. LHR, JFK, LAX)
2. Any preferred airlines? (comma-separated, or "none")
3. Default budget range per person? (e.g. "under 500", "flexible", "100-300")
4. Preferred class? (economy / premium economy / business / first)
5. Preferred booking platform? (skyscanner / google-flights / kayak)
Parse response and use sensible defaults for skipped fields:
Write .claude/trip-planner.md config (see Config Structure below).
Saved to .claude/trip-planner.md
Run /trip-planner anytime — just describe where you want to go.
Exit after onboarding.
---
FAST approach — no questions, just recommend:
Extract from the user's message:
If the user just names a destination with no other details, that's fine — the Assumption Engine handles the rest.
Read .claude/trip-planner.md for user defaults.
See references/config-guide.md for configuration options.
Fallback defaults (if config missing or incomplete):
Fill missing fields using this priority order:
.claude/trip-planner.mdGet current date: Run date command — do not rely on system date.
Show the Assumption Card (always — every assumption must be visible):
## Assumptions
| Field | Value | Source |
|-------|-------|--------|
| Destination | {dest} | You said |
| Origin | {origin} | Config / Default |
| Dates | {dates} | {source} |
| Passengers | {pax} | {source} |
| Class | {class} | {source} |
| Budget | {budget} | {source} |
| Stops | {stops} | {source} |
Anything wrong? Otherwise I'll search.
Wait for corrections or confirmation before searching.
If user corrects → update → re-show card → wait.
Run the Search Strategy (see below) with confirmed assumptions.
Use the output format from assets/templates/trip-recommendation.md.
Present 3-5 flight options across three categories:
Include direct booking links for each option.
Then offer corrections:
Want to adjust anything? I can re-search with different dates, budget, or preferences.
Corrections loop: User adjusts → re-run from Step 3 with updates → re-present.
---
The engine runs on every search. It produces a complete set of flight parameters from partial input.
User Input > Config > Context Inference > Smart Defaults
| Signal | Inference |
|--------|-----------|
| European city + no dates | City break: 3-4 days |
| Intercontinental + no dates | 7-10 days |
| "Weekend" mentioned | Friday evening → Sunday evening |
| "Holiday" / "vacation" | 7 days |
| Month only, no specific dates | Middle of month, flag as flexible |
| "Christmas" / "Easter" / "New Year" | Standard holiday date ranges |
| "Summer" / "Winter" | Peak month of that season |
| Return to origin in multi-city | Round trip, proportional days per city |
| "Cheap" / "budget" mentioned | Sort by price, flag budget airlines |
| "Direct" / "non-stop" mentioned | Filter to direct flights only |
| No class mentioned + business destination | Still assume economy (don't upsell) |
When user gives a city name:
date command for current date---
Build a Skyscanner URL (or platform from config) from parameters:
https://www.skyscanner.net/transport/flights/{origin}/{dest}/{depart_date}/{return_date}/?adults={n}&cabinclass={class}¤cy={currency}
Skyscanner URL format:
YYMMDD (e.g. 260315 for March 15, 2026)lhr, nrt)economy, premiumeconomy, business, firstFor multi-city, construct per-leg URLs.
Google Flights URL (if configured):
https://www.google.com/travel/flights?q=flights+from+{origin}+to+{dest}+on+{date}
Run 2-3 WebSearch queries per leg to gather current pricing intelligence:
Query templates:
"flights {origin} to {dest} {month} {year} price""cheap flights {origin} to {dest} {month} {year}""{airline} {origin} {dest} {month} {year} fare" (if preferred airline set)Parse results for:
Attempt WebFetch on the constructed Skyscanner URL to get live pricing.
Merge data from WebSearch and WebFetch (if available):
For multi-city trips (e.g. "London → Paris → Rome → London"):
---
Stored as .claude/trip-planner.md in user's working directory.
name: "Jane"
home_airport: "LHR"
preferences:
class: "economy"
budget: "flexible"
currency: "GBP"
stops: "any"
preferred_airlines: []
time_preference: "any" # morning / afternoon / evening / any
platform:
primary: "skyscanner" # skyscanner / google-flights / kayak
See references/config-guide.md for full field documentation.
---
date command — do not rely on system date or knowledge cutoff.---
| Type | Path |
|------|------|
| Config | .claude/trip-planner.md |
| Skill | .claude/skills/trip-planner/SKILL.md |
| Branding | references/branding.md |
| Config Reference | references/config-guide.md |
| Future Enhancements | references/future.md |
| Output Template | assets/templates/trip-recommendation.md |
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.