From flight-optimizer
Batch-collect flight data across date ranges and analyze with filtering, scoring, and HTML viewer generation
npx claudepluginhub varunr89/claude-marketplace --plugin flight-optimizerThis skill uses the workspace's default tool permissions.
A two-phase pipeline for comprehensive flight analysis:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
A two-phase pipeline for comprehensive flight analysis:
Use this skill when the user wants to do a broad search across multiple departure dates and trip duration options, compare strategies, and generate a comprehensive ranked report.
DUFFEL_API_KEY=<your-key> python3 ${CLAUDE_PLUGIN_ROOT}/scripts/flight_sweep_collect.py
What it does:
flight_cache/Cache format: {source}_{origin}_{dest}_{date}[_rt_{return_date}].json
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/flight_sweep_analyze.py
What it does:
flight_cache/flight_cost + (hours * $20) + (stops * $200) + (weekdays * $200)flight_sweep_viewer.html -- an interactive DataTables-powered HTML viewer with sorting and filteringflight_sweep_results.jsonBoth scripts share these configurable constants:
| Constant | Default | Description |
|---|---|---|
DEPARTURE_DATES | Apr 24 - May 8, 2026 | List of departure dates to search |
EUROPE_NIGHTS_OPTIONS | [21, 22, 23] | Europe stay duration options |
INDIA_NIGHTS_OPTIONS | [5, 6, 7] | India stay duration options |
MAX_STOPS | 1 | Maximum stops per leg |
MAX_LAYOVER_HOURS | 4 | Maximum layover duration in hours |
COST_PER_HOUR | 20 | Scoring penalty per hour of travel |
COST_PER_STOP | 200 | Scoring penalty per stop |
COST_PER_WEEKDAY | 200 | Scoring penalty per weekday away |
| Variable | Required | Description |
|---|---|---|
DUFFEL_API_KEY | Yes (collect phase) | Duffel API access token |