← 返回 Skills 市场
kris-hansen

Google Flights

作者 kris-hansen · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
1345
总下载
2
收藏
7
当前安装
2
版本数
在 OpenClaw 中安装
/install google-flights
功能描述
Search Google Flights for prices, availability, and deals. Use when user asks about flight prices, searching for flights, comparing airfares, finding the che...
使用说明 (SKILL.md)

Google Flights

Flight search with flexible dates, smart filters, connection scoring, and price tracking.

Quick Start

cd ~/clawd/skills/google-flights
source .venv/bin/activate

# Basic search
./scripts/search.py LAX JFK tomorrow

# Flexible dates — find cheapest day
./scripts/search.py LAX JFK "apr 15" --flex 3

# Nonstop under $500
./scripts/search.py SFO ORD "next friday" --nonstop --max-price 500

# Watch a route for price drops
./scripts/watch-route.py add LAX JFK --alert-below 350
./scripts/watch-route.py watch

Search

Basic Usage

./scripts/search.py \x3Cfrom> \x3Cto> \x3Cdate> [options]

Date Formats

Natural language supported:

  • tomorrow, today
  • next friday, next week
  • mar 15, March 15, 3/15
  • 2026-04-15 (ISO format)

Filters

Flag Short Description
--flex N -f Search ±N days around date
--nonstop -n Nonstop flights only
--max-price -m Maximum price
--depart-after Depart after time (8am, 14:00)
--arrive-before Arrive before time (6pm, 18:00)
--seat -s economy, premium-economy, business, first
--adults -a Number of adults (default: 1)
--children -c Number of children
--return -r Return date for round-trip

Output

Flag Description
--top N Show top N results (default: 5)
--sort Sort by: price (default), score, duration
--show-scores Show connection quality breakdown
--json JSON output

Examples

# Find cheapest day in a week window
./scripts/search.py LAX JFK "apr 10" --flex 7 --nonstop

# Morning departure, business class
./scripts/search.py SFO LHR "may 1" --seat business --depart-after 8am

# Family trip sorted by connection quality
./scripts/search.py DEN MCO "jun 15" -a 2 -c 2 --sort score --show-scores

# Round-trip under $800
./scripts/search.py SEA LAX "apr 1" --return "apr 8" --max-price 800

Price Tracking

Track specific flights and get alerts on price changes.

# Track a specific flight
./scripts/track.py add LAX JFK "2026-05-15" --alert-below 400

# Track round-trip
./scripts/track.py add LAX JFK "may 1" --return "may 8" -a 350

# Check all tracked flights
./scripts/track.py check

# View price history
./scripts/track.py history LAX-JFK-2026-05-15

# List / remove
./scripts/track.py list
./scripts/track.py remove LAX-JFK-2026-05-15

Route Watching

Monitor regular routes (e.g., commute between two cities).

# Add a route to watch
./scripts/watch-route.py add LAX JFK --alert-below 400

# Check all watched routes
./scripts/watch-route.py watch

# List watched routes
./scripts/watch-route.py list

# Remove a route
./scripts/watch-route.py remove LAX-JFK

Cron Integration

Set up daily price checks:

openclaw cron add \
  --name "Flight Price Watch" \
  --cron "0 9 * * *" \
  --tz "America/New_York" \
  --session isolated \
  --message "cd ~/clawd/skills/google-flights && source .venv/bin/activate && ./scripts/watch-route.py watch. Alert user only if prices drop below threshold."

Connection Quality Scoring

Flights scored 0-100 based on:

Factor Impact
Nonstop flight +15
Preferred airline +10
Tight connection (\x3C45min) -30
Long layover (>4hr) -5 to -25
Problematic connection airport -10 to -20
Winter weather risk (ORD, EWR, etc.) -15
Red-eye (depart after 10pm) -15
Early departure (\x3C6am) -10
Avoided airline -25

Use --show-scores to see breakdown or --sort score to prioritize quality.

Configuration

Copy config.example.json to config.json and customize:

{
  "preferred_airlines": ["United", "Delta"],
  "avoid_airlines": ["Spirit"],
  "prefer_nonstop": true,
  "max_layover_hours": 4,
  "min_layover_minutes": 45,
  "home_airports": ["LAX", "JFK"],
  "loyalty_programs": {
    "united_mileageplus": "gold"
  }
}

Setup

cd ~/clawd/skills/google-flights
uv venv && source .venv/bin/activate && uv pip install fast-flights
chmod +x scripts/*.py
cp config.example.json config.json  # then edit

Data Files

  • ~/clawd/memory/flight-tracking.json — Tracked flights
  • ~/clawd/memory/flight-prices.jsonl — Price history
  • ~/clawd/memory/route-watch-state.json — Watched routes
安全使用建议
This skill appears to do what it says: search Google Flights (via an external 'fast-flights' scraper), store tracking state under ~/clawd/memory, and produce alerts. Before installing: 1) Inspect and vet the 'fast-flights' package on PyPI (supply-chain risk — it will be executed by these scripts). 2) Correct the SKILL.md setup commands if needed (the 'uv' command looks like a typo) and run setup inside an isolated virtualenv. 3) Be aware that scraping Google Flights may violate Google's terms of service and could be rate-limited; consider frequency of automated cron checks. 4) The skill stores optional loyalty IDs or similar in config.json — do not put sensitive secrets there unless you trust the code. 5) If you want extra safety, run the scripts in an isolated environment or review the imported package source before use.
功能分析
Type: OpenClaw Skill Name: google-flights Version: 2.0.0 The skill bundle provides a functional flight search and price tracking system using the legitimate 'fast-flights' scraper library. The scripts (search.py, track.py, watch-route.py) implement standard CLI logic for searching, filtering, and persisting flight data in the expected OpenClaw memory directory (~/clawd/memory/), with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the code and instructions: scripts build Google Flights URLs, use a 'fast_flights' scraper library, provide search, tracking, and route-watch features, and persist tracking data under ~/clawd/memory. There are no unrelated privileges requested (no cloud creds, no SSH keys, etc.).
Instruction Scope
Runtime instructions are limited to activating a venv, running the included scripts, creating a config.json, and optionally adding a cron job. The scripts read/write only the skill's config and the memory files under ~/clawd/memory. Minor inconsistencies: load_preferences docstring mentions 'TOOLS.md' but actually loads config.json; SKILL.md uses an unfamiliar 'uv' command in the setup steps (likely a typo), which should be corrected to the intended venv/pip commands.
Install Mechanism
There is no formal install spec in the registry, but SKILL.md recommends installing the external package 'fast-flights' via pip. Relying on an external PyPI scraper package is a moderate risk (supply-chain/trust) but is proportionate to the stated purpose; there are no downloads from untrusted URLs or extract steps in the bundle itself.
Credentials
The skill declares no required environment variables or credentials. The optional config can contain loyalty program identifiers, but those are local config values (not required env secrets). The scripts don't attempt to read unrelated system config or secrets.
Persistence & Privilege
The skill persists state to files under ~/clawd/memory and a config.json in the skill directory, which is consistent with a tracker/watch tool. The skill is not always-enabled and does not modify other skills or global agent configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-flights
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-flights 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Major update: flexible date search (--flex), filters (nonstop, max-price, depart-after, arrive-before), connection quality scoring, price tracking with alerts, route watching for regular commutes. Breaking: renamed commute.py to watch-route.py for general use.
v1.0.0
Initial release: dual-mode flight search (quick prices + full browser details)
元数据
Slug google-flights
版本 2.0.0
许可证 MIT-0
累计安装 7
当前安装数 7
历史版本数 2
常见问题

Google Flights 是什么?

Search Google Flights for prices, availability, and deals. Use when user asks about flight prices, searching for flights, comparing airfares, finding the che... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1345 次。

如何安装 Google Flights?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-flights」即可一键安装,无需额外配置。

Google Flights 是免费的吗?

是的,Google Flights 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Google Flights 支持哪些平台?

Google Flights 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Google Flights?

由 kris-hansen(@kris-hansen)开发并维护,当前版本 v2.0.0。

💬 留言讨论