← 返回 Skills 市场
marcorabelo

Flight Search

作者 Marco Rabelo · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
346
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install flight-search-skill
功能描述
Search flights, compare prices, and monitor airfare using Amadeus API
使用说明 (SKILL.md)

Flight Search

Search flights, compare prices across airlines, and monitor airfare drops. Supports flexible dates, price alerts, and flight status tracking.

⚠️ Required Credentials

This skill requires API credentials to function:

Required (Amadeus):

Free Tier: 2,000 searches/month (sandbox) or production free tier with real prices

Optional (AviationStack):

Free Tier: 100 requests/month (very limited, only for flight status)

Configuration

After installing, copy config.example.json to config.json and add your credentials:

{
  "apis": {
    "amadeus": {
      "api_key": "YOUR_AMADEUS_API_KEY",
      "api_secret": "YOUR_AMADEUS_API_SECRET",
      "sandbox_mode": true
    },
    "aviationstack": {
      "enabled": false,
      "api_key": "YOUR_AVIATIONSTACK_API_KEY"
    }
  }
}

🔒 Security:

  • config.json is in .gitignore by default
  • Never commit API keys to version control
  • Use environment variables or secure config files
  • Rotate keys if accidentally exposed

What it does

Searches flights using Amadeus API, compares prices, finds the best routes, and can monitor prices over time to alert you when they drop. Optional AviationStack integration for real-time flight status.

Prerequisites

  1. Get API Keys:

    • Amadeus (Required): developers.amadeus.com
      • Test/Sandbox (FREE): 2,000 flight searches/month - ⚠️ TEST DATA ONLY
      • Production (FREE + pay-as-you-go): FREE quota + pay only for extra calls - ✅ REAL PRICES
      • Sign up and create an app
      • Get API Key and API Secret

    ✅ GREAT NEWS:

    • Both environments have FREE tiers!
    • Test: 2,000 requests/month FREE (test data)
    • Production: FREE quota + pay-as-you-go (real data)
    • Production gives REAL prices for free (within quota)
    • Bonus: 90% discount on search calls if you create bookings!

    ⚠️ CRITICAL:

    • Sandbox = Test data (prices are NOT real)

    • Production = Real data (actual prices, availability)

    • Production is NOT €30/month - it has a FREE tier!

    • Only pay if you exceed the free quota

    • AviationStack (Optional): aviationstack.com

      • Free tier: 100 requests/month ⚠️ VERY LIMITED
      • For flight status tracking only
      • Consider paid plan ($49.99+) for production
  2. Configure the skill: Edit config.json with your API keys:

    {
      "apis": {
        "amadeus": {
          "api_key": "YOUR_KEY",
          "api_secret": "YOUR_SECRET",
          "sandbox_mode": true  // false for Production (real prices, also FREE tier!)
        }
      }
    }
    

Recommendation:

  • Start with Sandbox (free) to test the skill functionality
  • Switch to Production (also FREE tier!) for real prices
  • Only pay if you exceed the free quota (pay-as-you-go)

Recommendation: Start with Amadeus only. Add AviationStack only if you need flight status tracking and have budget for paid plan.

Usage

Basic Search

"Search flights from JFK to LHR"
"Find flights São Paulo to Lisbon in March"
"How much to fly to Thailand in December?"

With Dates

"Flights JFK to LAX December 15 to January 10"
"Flights 01/03 to 15/03 GRU to MIA"
"Search tickets to Paris departing in January"

Flexible Dates

"Cheapest time to fly to Europe?"
"Best prices to Thailand next 3 months"
"When is it cheapest to visit Paris?"

Monitor Prices

"Monitor prices JFK to LHR"
"Alert me when flights to Rome drop"
"Set up price alert for Paris"

Flight Status (Limited)

"Check status of flight AA123"
"Is flight LA1234 on time?"
"Track flight G3 4567"

Note: Flight status requires AviationStack API. Free tier is extremely limited (100 requests/month). Consider:

  • Use sparingly for important flights only
  • Upgrade to paid plan ($49.99+/month) for regular use
  • Alternative: Use airline's official app/website

Compare Airlines

"Compare airlines flying to Asia"
"Which airline is cheapest?"
"Best route to Thailand"

Features

  • ✅ Flight search via Amadeus API
  • ✅ Price comparison across airlines
  • ✅ Flexible date search
  • ✅ Price monitoring and alerts
  • ✅ Multi-city routes
  • ✅ Filter by stops, airline, duration
  • ✅ Currency conversion
  • ✅ Flight status tracking (AviationStack)
  • ✅ International airport support

API Information

API Coverage Best For Free Tier Paid Plans
Amadeus Global Flight search, prices, routes 2,000/month From €30/month
AviationStack Global Flight status, tracking 100/month ⚠️ From $49.99/month

Recommendation: Start with Amadeus only. Add AviationStack only if flight status tracking is critical for your use case and you're willing to upgrade to paid plan.

Tips

  • Use airport codes (JFK, LHR, BKK) for accuracy
  • Specify flexible dates for best prices
  • Set up monitoring for long-term planning
  • Book Tuesday-Thursday for lower prices
  • Book 2-3 months in advance for international flights
  • Check flight status before heading to airport

Examples

See examples/ folder for:

  • Basic searches
  • Multi-city trips
  • Price monitoring setup
  • Advanced filtering
  • Route optimization
  • Flight status tracking

Troubleshooting

"No flights found"

  • Verify airport codes (use IATA codes)
  • Try broader date ranges
  • Check API key configuration
  • Verify API quota not exceeded

"API error"

  • Verify API keys are valid
  • Check API rate limits
  • Ensure API is enabled in config
  • Check network connectivity

"Prices seem wrong"

  • Prices update frequently
  • Try refreshing search
  • Sandbox mode uses test data
  • Check currency settings

"Flight status unavailable"

  • Enable AviationStack in config
  • Verify flight number format (e.g., AA123)
  • Check if flight exists for date
  • Try without date for current status

API Rate Limits

API Free Tier Rate Limit Notes
Amadeus 2,000/month ~10/second Sandbox mode only
AviationStack 100/month Varies ⚠️ Very limited free tier

Important Notes:

  • Amadeus sandbox mode provides test data suitable for development. For production use with real prices, upgrade to production API.
  • AviationStack free tier is extremely limited (100 requests/month). For production use, consider:
    • Paid plans start at $49.99/month (Basic plan: 5,000 requests)
    • Professional plan: $149.99/month (50,000 requests)
    • Enterprise: Custom pricing
  • Alternative: If you need flight status, consider using Amadeus's limited flight status endpoints or airline-specific APIs.

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE file for details.

Credits

  • Amadeus for Developers: developers.amadeus.com
  • AviationStack: aviationstack.com
安全使用建议
What to check before installing or running this skill: 1) Metadata mismatch: The SKILL.md and included code require AMADEUS_API_KEY and AMADEUS_API_SECRET (and optionally AVIATIONSTACK_API_KEY), but the registry metadata claims no required env vars. Treat the SKILL.md as authoritative for runtime needs — verify the registry entry / vendor before trusting it. 2) Review the shipped code locally before executing: The package contains Python clients and shell scripts that will be run to perform searches and monitoring. Inspect the scripts (scripts/*.sh) and Python files (lib/*.py) to ensure they won't run unexpected commands or contact unknown endpoints. Run them in an isolated environment (VM or container) if possible. 3) Secrets handling: Provide keys via environment variables or a local config.json that is kept out of version control. The project advises .gitignore for config.json — follow that. If you accidentally commit keys, rotate them immediately. 4) Runtime dependencies: The README indicates Python 3.7+ and the 'requests' library are required. The registry did not list these requirements; ensure your environment has the correct Python version and libraries. 5) Monitoring behavior: The monitoring feature writes a local .monitored_flights.json and expects periodic checks. There is no installer to schedule background tasks; if you enable monitoring, be aware of local files created and rate limits on your API quotas. 6) provenance and trust: The skill 'Source: unknown' and 'Homepage: none' — prefer skills with a known source or repository. If you plan to use production API keys, verify the maintainer and review the repository history. 7) Start in sandbox: Use Amadeus sandbox/test credentials first (as suggested) to validate behavior without impacting real quotas or incurring charges. If you want, I can: (a) summarize places in the code that read/write files or network endpoints, (b) point to exact lines in the scripts to review, or (c) suggest a safe checklist/commands to run the scripts inside a container.
功能分析
Type: OpenClaw Skill Name: flight-search-skill Version: 1.0.2 The skill bundle is classified as benign. A thorough review of all code and documentation files, including shell scripts (`scripts/*.sh`), Python clients (`lib/*.py`), and markdown files (`SKILL.md`, `SECURITY.md`, etc.), revealed no evidence of intentional malicious behavior. The `CHANGELOG.md` explicitly details 18 security fixes (including critical command/Python injection vulnerabilities) resolved in version 1.0.0, which are confirmed to be addressed in the current version (1.0.2). Arguments are passed safely to Python scripts, API calls are made to legitimate HTTPS endpoints (Amadeus, AviationStack), and local file operations (`.monitored_flights.json`) are for expected skill functionality. Documentation consistently advises users on security best practices (e.g., not committing API keys) and there are no prompt injection attempts against the AI agent.
能力评估
Purpose & Capability
The SKILL.md and included files clearly require Amadeus (AMADEUS_API_KEY and AMADEUS_API_SECRET) and optionally an AviationStack key — these credentials are appropriate for a flight-search skill. However the registry metadata at the top of the submission lists 'Required env vars: none' and 'Primary credential: none', which contradicts the SKILL.md frontmatter and the code. This mismatch between declared registry requirements and actual runtime requirements is concerning: it can mislead users about what secrets the skill needs.
Instruction Scope
SKILL.md instructs the agent/user to provide API keys, create a config.json (or use environment variables), and run provided Python and shell scripts. All referenced actions and files (search, monitor, check_status) are within the stated purpose (flight search, price monitoring, flight status). There are no instructions in SKILL.md to access unrelated system files or remote endpoints beyond the documented APIs.
Install Mechanism
There is no package/install spec (instruction-only at registry level), which is lower risk. However the bundle includes multiple executable files (Python clients and bash scripts). Because code is shipped with the skill, the agent or user may run scripts locally; that is expected but means the skill is not truly 'instruction-only' in practice. No external download URLs or obscure installers are present in the provided files.
Credentials
The environment variables requested in SKILL.md (AMADEUS_API_KEY, AMADEUS_API_SECRET, optional AVIATIONSTACK_API_KEY) are proportionate to the described functionality. The concern is the inconsistency: the registry metadata did not list required env vars while SKILL.md explicitly declares them. Also README/CONFIGURATION imply Python 3.7+ and the 'requests' library are needed, but these runtime requirements were not enumerated in the registry metadata.
Persistence & Privilege
The skill does include a monitoring feature that writes a local .monitored_flights.json and scripts that can be run repeatedly, but the skill is not marked always:true and does not request system-wide privileges. It does not attempt to modify other skills' configs. Autonomous invocation is allowed (platform default) but not combined with other high-risk indicators here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flight-search-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flight-search-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
**flight-search-skill 1.0.2 Changelog** - Added a "credentials" section in SKILL.md, clearly labeling required and optional API keys and how to obtain them. - Updated configuration guidance and highlighted credential security best practices (e.g. not committing keys and using environment variables). - Improved documentation clarity for credential setup and usage, ensuring users know how to configure both Amadeus and AviationStack APIs. - No changes to skill features or API integration; documentation and security updates only.
v1.0.1
- Bumped version to 1.0.1. - Updated documentation in SKILL.md (no feature or usage changes, just metadata/version). - Added or updated security notes in SECURITY.md. - Maintenance release; no functional changes to the skill itself.
v1.0.0
Initial release of Flight Search skill. - Search flights, compare prices, and find best routes using Amadeus API. - Monitor airfare drops and set up price alerts. - Supports flexible dates, multi-city trips, filtering, and currency conversion. - (Optional) Track flight status using AviationStack integration. - Easy setup with free tiers for core APIs; pay-as-you-go for high usage. - Extensive examples, tips, and troubleshooting guidance included.
元数据
Slug flight-search-skill
版本 1.0.2
许可证
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Flight Search 是什么?

Search flights, compare prices, and monitor airfare using Amadeus API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 346 次。

如何安装 Flight Search?

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

Flight Search 是免费的吗?

是的,Flight Search 完全免费(开源免费),可自由下载、安装和使用。

Flight Search 支持哪些平台?

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

谁开发了 Flight Search?

由 Marco Rabelo(@marcorabelo)开发并维护,当前版本 v1.0.2。

💬 留言讨论