home / skills / probichaux / clawdskills / flight-time
This skill estimates flight time between airports using winds aloft and true airspeed to aid planning and route comparison.
npx playbooks add skill probichaux/clawdskills --skill flight-timeReview the files below or copy the command above to add this skill to your agents.
---
name: flight-time
description: Estimate flight time between airports accounting for winds aloft. Use when calculating flight duration, planning trips, or comparing routes. Takes departure/arrival ICAO codes, cruise altitude, and true airspeed.
---
# Flight Time Estimator
Calculates estimated flight time between two airports using:
- Great circle distance
- Current winds aloft forecast (from NOAA Aviation Weather)
- True airspeed at cruise altitude
## Usage
```bash
~/clawd/skills/flight-time/scripts/flight_time.py KDEP KARR --altitude FEET --tas KNOTS
```
### Examples
```bash
# Huntsville to Atlanta at 6000ft, 140kt TAS
flight_time.py KHSV KFTY --altitude 6000 --tas 140
# Dallas to Denver at 10000ft, 165kt TAS
flight_time.py KDAL KDEN --altitude 10000 --tas 165
# JSON output for scripting
flight_time.py KHSV KFTY --altitude 6000 --tas 140 --json
```
### Parameters
- `departure`: ICAO code (e.g., KHSV)
- `arrival`: ICAO code (e.g., KFTY)
- `--altitude`: Cruise altitude in feet MSL
- `--tas`: True airspeed in knots
- `--json`: Output as JSON (optional)
## Output
Returns:
- Distance (nm)
- True course
- Winds at altitude (from nearest FB station)
- Ground speed
- Estimated flight time
- Wind effect (headwind/tailwind impact in minutes)
## Data Sources
- **Airport coordinates**: NOAA Aviation Weather API
- **Winds aloft**: NOAA FB winds forecast (6-hour)
## Limitations
- Uses single wind observation at route midpoint (not full route interpolation)
- Does not account for climb/descent phases
- Wind data updates every 6 hours
- No terrain or airspace considerations
This skill estimates flight time between two airports while accounting for winds aloft and true airspeed. It combines great-circle distance with the nearest available wind forecast to produce ground speed, estimated block time, and wind impact. Use it to compare routes, plan general aviation trips, or validate timing assumptions quickly.
The tool computes great-circle distance from departure to arrival using ICAO airport coordinates, then samples the winds aloft forecast near the route midpoint at the specified cruise altitude. It projects the wind component onto the true course to adjust true airspeed into ground speed and derives an estimated flight time. Output includes distance, true course, wind vector at altitude, ground speed, estimated flight time, and minutes gained or lost to winds.
Which airport codes can I use?
Provide ICAO codes (four-letter). The skill uses those codes to look up coordinates and nearest wind station.
Does the estimate include climb and descent?
No. The estimate assumes cruise only. Add time for climb, descent, taxi, and reserves separately.
How fresh are the winds used?
Winds are taken from the FAA/NOAA winds aloft forecast, which updates about every six hours; plan accordingly.