varunr89/claude-marketplace/flight-sweep

Claude Code and agent skill by varunr89/claude-marketplace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Batch-collect flight data across date ranges and analyze with filtering, scoring, and HTML viewer generation

Install

npx vskill@latest install varunr89/claude-marketplace/flight-sweep

SKILL.md

Flight Sweep

A two-phase pipeline for comprehensive flight analysis:

  1. Collect (flight_sweep_collect.py) -- Fetches flight data from Google Flights and Duffel API across multiple departure dates and trip configurations. Caches raw API responses to disk.
  2. Analyze (flight_sweep_analyze.py) -- Reads cached data, applies constraint filters, builds trip scenarios, scores and ranks them, and generates an interactive HTML viewer.

When to use

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.

Phase 1: Data Collection

bash
DUFFEL_API_KEY=<your-key> python3 ${CLAUDE_PLUGIN_ROOT}/scripts/flight_sweep_collect.py

What it does:

  • Iterates over configured departure dates (Fridays and Saturdays)
  • For each date, calculates leg dates for all combinations of Europe nights (21/22/23) and India nights (5/6/7)
  • Searches both one-way flights (Google Flights + Duffel) and round-trip flights (Duffel only)
  • Caches each API response as a JSON file in flight_cache/
  • Skips already-cached searches for incremental re-runs
  • Rate-limits Duffel requests (0.5s delay between calls)

Cache format: {source}_{origin}_{dest}_{date}[_rt_{return_date}].json

Phase 2: Analysis

bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/flight_sweep_analyze.py

What it does:

  • Reads all cached flight data from flight_cache/
  • Applies constraint filters:
  • Max 1 stop per leg
  • Max 4-hour layover
  • Single carrier per leg
  • Excludes test/synthetic airlines (e.g., "Duffel Airways")
  • Builds scenarios for both strategies (3 one-ways, 2 round-trips)
  • Scores each scenario: flight_cost + (hours * $20) + (stops * $200) + (weekdays * $200)
  • Prints top 10 results to terminal
  • Generates flight_sweep_viewer.html -- an interactive DataTables-powered HTML viewer with sorting and filtering
  • Saves full results to flight_sweep_results.json

Configuration

Both scripts share these configurable constants:

ConstantDefaultDescription
DEPARTURE_DATESApr 24 - May 8, 2026List 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_STOPS1Maximum stops per leg
MAX_LAYOVER_HOURS4Maximum layover duration in hours
COST_PER_HOUR20Scoring penalty per hour of travel
COST_PER_STOP200Scoring penalty per stop
COST_PER_WEEKDAY200Scoring penalty per weekday away

Environment variables

VariableRequiredDescription
DUFFEL_API_KEYYes (collect phase)Duffel API access token

Dependencies

  • requests (pip install requests) -- Duffel API calls
  • fast-flights (pip install fast-flights) -- Optional Google Flights scraper

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/varunr89/claude-marketplace/flight-sweep/badge)](https://verified-skill.com/skills/varunr89/claude-marketplace/flight-sweep)

Something wrong with this skill or its page? Tell us.