DA

date-optimization

Optimizes flight booking dates to identify the cheapest fare combinations.

Install

mkdir -p .claude/skills/date-optimization && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16196" && unzip -o skill.zip -d .claude/skills/date-optimization && rm skill.zip

Installs to .claude/skills/date-optimization

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when traveler has flexible dates and wants to find the cheapest departure/return combination. Triggers on cheapest day to fly, flexible dates, when to book, price calendar.
176 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Find optimal departure and return dates
  • Build a complete price matrix for flight combinations
  • Estimate relative costs using pricing patterns
  • Generate a price heatmap for date pairs
  • Provide specific date recommendations with explanations

How it works

The skill calculates a search window based on flexibility, applies established pricing patterns to estimate relative costs for each date combination, and then scores them.

Inputs & outputs

You give it
origin, destination (IATA codes), departure_date, return_date, flexibility (low, medium, high)
You get back
Price Heatmap (text-based), TOP 3 Recommendations with dates, estimated savings, and reasons

When to use date-optimization

  • Find cheapest day to fly
  • Optimize flexible travel dates
  • Calculate best booking window

About this skill

Date Optimization - Quét Ngày Bay Tối Ưu

Purpose

Find the optimal departure and return dates within a flexible range. Instead of checking prices day-by-day, this skill builds a complete price matrix and identifies the cheapest combinations with clear explanations.

Input Required

From orchestrator profile:

  • origin, destination (IATA codes)
  • departure_date (target)
  • return_date (target, if round-trip)
  • flexibility: low (±2d) | medium (±7d) | high (±14d)

Execution Steps

Step 1: Build Date Range

Calculate the full search window:

  • Depart window: departure_date - flex_days to departure_date + flex_days
  • Return window: return_date - flex_days to return_date + flex_days
  • Total combinations: (flex_days * 2 + 1)² for round-trip

Example (±7 days): 15 × 15 = 225 date combinations to evaluate.

Step 2: Apply Pricing Patterns (AI-Knowledge Mode)

Use these established pricing patterns to estimate relative costs:

Day-of-week patterns:

  • Tuesday, Wednesday: typically 15-25% cheaper (lowest demand)
  • Friday, Sunday: typically 10-20% more expensive (weekend travel peaks)
  • Saturday departure: sometimes cheap (contra-flow)

Seasonal patterns:

  • Refer to references/pricing-patterns.md for route-specific seasonality

Advance purchase effect:

  • 21+ days ahead: best domestic fares
  • 45-60 days ahead: best international fares
  • < 7 days: premium pricing (last-minute surge)
  • Exception: LCCs sometimes release last-minute deals

Holiday surcharges:

  • Vietnamese holidays: Tet (+50-100%), 30/4-1/5 (+30-50%), 2/9 (+20-30%)
  • US holidays: Thanksgiving, Christmas, July 4th (+30-60%)
  • School holidays: June-August (+20-40% on leisure routes)

Step 3: Score Each Combination

For each date pair, calculate a relative price score (1-10):

score = base_pattern + day_of_week_factor + seasonal_factor + advance_purchase_factor

Step 4: Generate Output

Format: Price Heatmap (text-based)

           Return →  Mon  Tue  Wed  Thu  Fri  Sat  Sun
Depart ↓
  Mon 15/6           $$   $    $    $$   $$$  $$   $$$
  Tue 16/6           $    $    $    $    $$   $$   $$
  Wed 17/6           $    $    $    $    $$   $$   $$$
  Thu 18/6           $$   $    $    $$   $$$  $$   $$$
  Fri 19/6           $$$  $$   $$   $$   $$$  $$$  $$$

Legend: $ = cheapest tier, $$ = mid-range, $$$ = most expensive

TOP 3 Recommendations:

For each recommendation, provide:

  1. Specific dates (depart + return)
  2. Estimated savings vs target date
  3. WHY this combination is cheap (not just "it's cheaper")
    • Example: "Tuesday departure avoids weekend premium. Mid-week return catches post-business-travel low."
  4. Trade-off: what user gives up (e.g., "1 fewer weekend day at destination")

Step 5: Pass Forward

Send to flight-search skill:

optimal_dates: [
  {depart: "2026-06-16", return: "2026-06-25", confidence: "high"},
  {depart: "2026-06-17", return: "2026-06-24", confidence: "high"},
  {depart: "2026-06-15", return: "2026-06-23", confidence: "medium"}
]

API-Enhanced Mode

When Kiwi Tequila API is available, replace Step 2-3 with real price data:

  • Use /v2/search with date_from and date_to parameters
  • Set fly_days to cover the full flexibility range
  • Real prices replace pattern-based estimates

Limitations

  • AI-Knowledge mode provides relative rankings, not exact prices
  • Holiday pricing can be unpredictable (flash sales, last-minute changes)
  • Pattern accuracy decreases for niche routes with irregular schedules

When not to use it

  • When exact prices are required instead of relative rankings
  • When holiday pricing is expected to be highly unpredictable
  • When pattern accuracy is critical for niche routes with irregular schedules

Limitations

  • AI-Knowledge mode provides relative rankings, not exact prices.
  • Holiday pricing can be unpredictable (flash sales, last-minute changes).
  • Pattern accuracy decreases for niche routes with irregular schedules.

How it compares

This skill builds a complete price matrix and explains why certain date combinations are cheaper, rather than just checking prices day-by-day.

Compared to similar skills

date-optimization side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
date-optimization (this skill)04moReviewIntermediate
startup-financial-modeling152moNo flagsIntermediate
product-strategist128moReviewAdvanced
pricing-strategy126moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

startup-financial-modeling

wshobson

This skill should be used when the user asks to "create financial projections", "build a financial model", "forecast revenue", "calculate burn rate", "estimate runway", "model cash flow", or requests 3-5 year financial planning for a startup.

1553

product-strategist

davila7

Strategic product leadership toolkit for Head of Product including OKR cascade generation, market analysis, vision setting, and team scaling. Use for strategic planning, goal alignment, competitive analysis, and organizational design.

1251

pricing-strategy

davila7

When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' or 'monetization.' This skill covers pricing research, tier structure, and packaging strategy.

1247

marketing-demand-acquisition

davila7

Multi-channel demand generation, paid media optimization, SEO strategy, and partnership programs for Series A+ startups. Includes CAC calculator, channel playbooks, HubSpot integration, and international expansion tactics. Use when planning demand generation campaigns, optimizing paid media, building SEO strategies, establishing partnerships, or when user mentions demand gen, paid ads, LinkedIn ads, Google ads, CAC, acquisition, lead generation, or pipeline generation.

446

mckinsey-consultant

fleurytian

McKinsey顾问式问题解决系统。从商业问题出发,通过假设驱动的结构化分析方法,生成McKinsey风格研究报告和PPT。融合Problem Solving方法论、MECE原则、Issue Tree拆解、Hypotheses形成、Dummy Page设计、智能数据收集和专业PPT生成能力。

926

startup-analyst

sickn33

Expert startup business analyst specializing in market sizing, financial modeling, competitive analysis, and strategic planning for early-stage companies. Use PROACTIVELY when the user asks about market opportunity, TAM/SAM/SOM, financial projections, unit economics, competitive landscape, team planning, startup metrics, or business strategy for pre-seed through Series A startups.

827

Search skills

Search the agent skills registry