6.3k★by iclems
airfrance-afkl – OpenClaw Skill
airfrance-afkl is an OpenClaw Skills integration for coding workflows. Track Air France flights using the Air France–KLM Open Data APIs (Flight Status). Use when the user gives a flight number/date (e.g., AF007 on 2026-01-29) and wants monitoring, alerts (delay/gate/aircraft changes), or analysis (previous-flight chain, aircraft tail number → cabin recency / Wi‑Fi). Also use when setting up or tuning polling schedules within API rate limits.
Skill Snapshot
| name | airfrance-afkl |
| description | Track Air France flights using the Air France–KLM Open Data APIs (Flight Status). Use when the user gives a flight number/date (e.g., AF007 on 2026-01-29) and wants monitoring, alerts (delay/gate/aircraft changes), or analysis (previous-flight chain, aircraft tail number → cabin recency / Wi‑Fi). Also use when setting up or tuning polling schedules within API rate limits. OpenClaw Skills integration. |
| owner | iclems |
| repository | iclems/airfrance-afkl |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @iclems/airfrance-afkl |
| last updated | Feb 7, 2026 |
Maintainer

name: airfrance-afkl description: Track Air France flights using the Air France–KLM Open Data APIs (Flight Status). Use when the user gives a flight number/date (e.g., AF007 on 2026-01-29) and wants monitoring, alerts (delay/gate/aircraft changes), or analysis (previous-flight chain, aircraft tail number → cabin recency / Wi‑Fi). Also use when setting up or tuning polling schedules within API rate limits.
Air France (AFKL Open Data) flight tracker
Quick start (one-off status)
- Create an API key (and optional secret)
- Register on: https://developer.airfranceklm.com
- Subscribe to the Open Data product(s) you need (at least Flight Status API)
- Generate credentials (API key; some accounts also provide an API secret)
- Provide API credentials (do not print them):
- Preferred: env vars
AFKL_API_KEY(and optionalAFKL_API_SECRET) - Or files in your state dir (
CLAWDBOT_STATE_DIRor./state):afkl_api_key.txt(chmod 600)afkl_api_secret.txt(chmod 600, optional)
- Query flight status:
- Run:
node skills/airfrance-afkl/scripts/afkl_flightstatus_query.mjs --carrier AF --flight 7 --origin JFK --dep-date 2026-01-29
Notes:
- Send
Accept: */*(API returnsapplication/hal+json). - Keep within limits: <= 1 request/sec. When making multiple calls, sleep ~1100ms between them.
Start monitoring (watcher)
Use when the user wants proactive updates.
- Run:
node skills/airfrance-afkl/scripts/afkl_watch_flight.mjs --carrier AF --flight 7 --origin JFK --dep-date 2026-01-29
What it does:
- Fetches the operational flight(s) for the date window.
- Emits a single message only when something meaningful changes.
- Also follows the previous-flight chain (
flightRelations.previousFlightData.id) up to a configurable depth and alerts if a previous segment is delayed/cancelled.
Polling strategy (default):
-
36h before departure: at most every 60 min
- 36h→12h: every 30 min
- 12h→3h: every 15 min
- 3h→departure: every 5–10 min (stay under daily quota)
- After departure: every 30 min until arrival
Implementation detail: run cron every 5–15 min, but the script self-throttles using a state file so it won’t hit the API when it’s not time. The watcher prints no output when nothing changed (so cron jobs can send only when stdout is non-empty).
Input shorthand
Preferred user-facing format:
AF7 demain/AF7 jeudi
Interpretation rule:
- The day always refers to the departure date (not arrival).
Implementation notes:
- Convert relative day words to a departure date in the user’s timezone unless the origin timezone is explicitly known.
- When ambiguous (long-haul crossing midnight), prefer the departure local date at the origin if origin is known.
(For scripts, still pass --origin + --dep-date YYYY-MM-DD.)
Interpret “interesting” fields
See references/fields.md for:
flightRelations(prev/next)places.*(terminal/gate/check-in zone)times.*(scheduled/estimated/latest/actual)aircraft(type, registration)- “parking position” / stand-type hints (when present)
- Wi‑Fi hints and how to reason about cabin recency
Cabin recency / upgrade heuristics
When aircraft registration is available:
- Use tail number to infer sub-fleet and likely cabin generation.
- If data suggests older config (or no Wi‑Fi), upgrading can be more/less worth it.
Be conservative:
- Open Data often doesn’t expose exact seat model; treat this as best-effort.
airfrance-afkl-skill
Clawdbot skill to track Air France flights using the Air France–KLM Open Data APIs (Flight Status).
It’s designed for day-to-day travel monitoring:
- Flight status + schedule vs latest published times
- Terminal / gate (when published)
- Boarding close time (when available)
- Aircraft tail number + cabin configuration summary (best-effort)
- Previous-flight chain (useful to estimate delay risk)
- Compact alerts: you only get pinged when displayed fields change
Prerequisites
- Register and create an API key on the AFKL developer portal:
- Subscribe to Open Data products (at least Flight Status API).
Configuration
Provide credentials via environment variables (recommended):
export AFKL_API_KEY="..."
# optional
export AFKL_API_SECRET="..."
Or via files in your state dir:
- Set
CLAWDBOT_STATE_DIRto your state directory (or it falls back to./state) - Create:
afkl_api_key.txtafkl_api_secret.txt(optional)
Usage
One-off query
node skills/airfrance-afkl/scripts/afkl_flightstatus_query.mjs \
--carrier AF --flight 7 --origin JFK --dep-date 2026-01-29
Watcher (poll + change-only output)
node skills/airfrance-afkl/scripts/afkl_watch_flight.mjs \
--carrier AF --flight 7 --origin JFK --dep-date 2026-01-29 --prev-depth 2
Output behavior:
- Prints nothing when nothing changed
- Prints a ready-to-send multi-line message when something changed
The message is designed to be compact and human-readable:
- Emojis for 🛫/🕤/🛬/✈️/📶
- Weekday + date + time (to avoid timezone ambiguity)
- Tail + aircraft type + cabin config summary
- Wi‑Fi line (fast/slow) when available
- Previous-flight chain summary (e.g.
↩️ Dubai → Paris → New York (on time)) - Optional headline line highlighting what changed (new time, inbound delay, new aircraft, boarding started)
Rate limits
AFKL Open Data is rate-limited (commonly 1 request/second and a daily quota). The watcher is designed to be schedule-aware and to avoid unnecessary calls.
Notes / disclaimers
- Aircraft “intel” (age, first flight, etc.) is best-effort and relies on public sources.
- Cabin configuration identifiers can vary by fleet and may not guarantee the exact seat product.
License
MIT (recommended) — add a LICENSE file if you want.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
FAQ
How do I install airfrance-afkl?
Run openclaw add @iclems/airfrance-afkl in your terminal. This installs airfrance-afkl into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/iclems/airfrance-afkl. Review commits and README documentation before installing.
