dotanminh/travel-optimization-engine/flexibility-analysis
Claude Code and agent skill by dotanminh/travel-optimization-engine
- community
Checking that the SKILL.md file is still in the repository.
Use when deciding between flexible and non-refundable tickets, or when travel plans might change. Triggers on refundable vs non-refundable, cancel risk, change fee, should I buy flexible ticket.
Install
npx vskill@latest install dotanminh/travel-optimization-engine/flexibility-analysisSKILL.md
Flexibility Analysis - Phân Tích Rủi Ro Linh Hoạt
Purpose
Prevent the "$150 savings that costs $720" scenario. When travelers buy non-refundable tickets to save money, they're making an implicit bet that their plans won't change. This skill makes that bet explicit with break-even probability analysis.
Input Required
flight_options[]with fare classes from flight-searchrisk_tolerancefrom profileschedule_certainty(user estimate: "How sure are you this trip happens as planned?")- 95-100%: Very certain (confirmed meetings, events)
- 80-94%: Likely but could change
- 50-79%: Uncertain (tentative plans)
- < 50%: Very uncertain
Execution Steps
Step 1: Score Each Option (Flexibility Score 0-100)
Calculate based on fare rules:
Change Score (0-30):
- Free unlimited changes: 30
- Free change, fare diff only: 25
- Change with fee < $50: 20
- Change with fee $50-100: 15
- Change with fee $100-200: 10
- Change with high fee (> $200): 5
- No changes allowed: 0
Cancel Score (0-30):
- Full cash refund: 30
- Full credit voucher (12+ months): 20
- Partial refund (50%+): 15
- Credit voucher (< 12 months): 10
- Cancel fee > 50% of ticket: 5
- Non-refundable, no credit: 0
Rebooking Score (0-20):
- Same fare class guaranteed: 20
- Subject to availability, same cabin: 15
- Subject to availability, any cabin: 10
- Rebooked on different airline: 5
- No rebooking: 0
Protection Score (0-20):
- Covered by travel insurance included: 20
- 24-hour free cancellation applies: 10
- Credit card trip protection: 10
- No protection: 0
Step 2: Scenario Costing
For each option, calculate cost under 3 scenarios:
| Scenario | What Happens | Cost | |
|---|---|---|---|
| As planned | Nothing changes | ticket_price | |
| Date change ±2 days | Need to shift by 2 days | change_fee + fare_diff_estimate | |
| Full cancellation | Trip doesn't happen | ticket_price - refund_amount | |
| No-show | Miss the flight | ticket_price (total loss) |
Present as table:
Step 3: Break-Even Analysis
The key calculation: "At what probability of needing to change does the flexible ticket become the better deal?"
Step 4: Hidden Terms Alert
Flag terms that travelers often miss:
- Minimum stay: Some fares require staying minimum 3 nights or including a Saturday
- Blackout dates: Fare not valid during peak periods
- Credit voucher validity: Often 12 months from issue date, not from original travel date
- Name change: Most tickets don't allow name changes (affects corporate rebooking)
- Route restriction: Credit may only apply to same route
- Fare class on rebooking: Original fare class may not be available at change time
- No-show penalty: Even Flex tickets may forfeit value on no-show (must cancel BEFORE departure)
Step 5: Recommendation
Based on break-even analysis + user's schedule_certainty:
Step 6: Output Scorecard
Reference
Read references/fare-class-rules.md for airline-specific fare class breakdown.
Limitations
- Fare difference on rebooking is unpredictable (estimated at ±$50-200)
- Break-even assumes binary outcome (trip happens or doesn't)
- In reality, partial changes (date shift) have different costs than full cancel
- Corporate travel policies may override personal preference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flexibility-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dotanminh/travel-optimization-engine/flexibility-analysis)