← 返回 Skills 市场
jrojas537

Flight Pricer

作者 jrojas537 · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
826
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install flight-pricer
功能描述
Command-line tool to search flight prices using Duffel API with options for dates, passengers, stops, and cabin class.
使用说明 (SKILL.md)

flight-pricer Skill

A command-line interface (CLI) to search for flight prices using the Duffel API.

This skill has been structured as a professional-grade CLI tool, inspired by the quality standard of the gog skill.

Prerequisites

  • Python 3.7+ and pip.
  • A Duffel API key.

Installation

The skill is designed to be installed as a proper command-line tool within its own virtual environment. This isolates its dependencies and makes it available system-wide for the agent.

From the workspace root:

# 1. Activate the virtual environment
source flight-pricer/.venv/bin/activate

# 2. Perform an editable install
pip install -e flight-pricer/

# 3. Deactivate (optional, the command is now linked)
deactivate

This only needs to be done once.

Setup

Before you can search for flights, you must configure the skill with your Duffel API key.

config set

Securely saves your API key to ~/.config/flight-pricer/config.yaml.

Usage:

flight-pricer config set --api-key \x3CYOUR_DUFFEL_API_KEY>

Commands

search

Searches for flight offers based on the specified criteria. The command will automatically use the API key from your configuration.

Usage:

flight-pricer search [OPTIONS]

Required Options:

  • --from \x3CIATA>: Departure airport IATA code (e.g., DTW).
  • --to \x3CIATA>: Arrival airport IATA code (e.g., MIA).
  • --depart \x3CYYYY-MM-DD>: Departure date.

Optional Options:

  • --return \x3CYYYY-MM-DD>: Return date for a round-trip flight.
  • --passengers \x3Cnumber>: Number of passengers (default: 1).
  • --max-stops \x3Cnumber>: Maximum number of connections.
  • --non-stop: A convenient alias for --max-stops 0.
  • --cabin \x3Cclass>: Cabin class. Choices: economy, business, first, premium_economy.

Example:

Search for a non-stop, first-class flight for one person from Detroit to Miami, departing April 6, 2026 and returning April 10, 2026.

flight-pricer search --from DTW --to MIA --depart 2026-04-06 --return 2026-04-10 --non-stop --cabin first
安全使用建议
This package appears to do exactly what it claims: a small CLI that posts flight search requests to Duffel. Before installing, verify the source you obtained the code from (SKILL.md references a GitHub repo but registry 'Source' is unknown). Install inside a dedicated virtual environment as instructed. Be aware the Duffel API key is stored unencrypted at ~/.config/flight-pricer/config.yaml — check/limit file permissions or use a safer secret storage method if you prefer. Finally, inspect the code yourself if possible (it's small and readable) and only provide a Duffel API key you trust for use with this tool.
功能分析
Type: OpenClaw Skill Name: flight-pricer Version: 1.0.1 The skill is a command-line interface for searching flight prices using the Duffel API. It securely stores the user's API key in `~/.config/flight-pricer/config.yaml` and uses it to make requests to the legitimate Duffel API endpoint (`https://api.duffel.com`). The Python code (`flight_pricer.py`) uses standard libraries and safe practices (e.g., `yaml.safe_load`, `requests` for API calls). There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts in `SKILL.md` or `README.md`.
能力评估
Purpose & Capability
Name/description match the implementation: the package implements a CLI that posts to Duffel's API to search offers. Declared dependencies (click, requests, pyyaml, tabulate) and the console entry point are appropriate for a CLI.
Instruction Scope
Runtime instructions are limited to creating/using a virtualenv, installing the package, and storing a Duffel API key in ~/.config/flight-pricer/config.yaml. The skill reads/writes only that config file and performs API calls to api.duffel.com, which is consistent with the stated purpose; note that the SKILL.md assumes cloning from a GitHub repo even though the registry metadata lists 'Source: unknown'.
Install Mechanism
There is no automated installer in the registry (instruction-only install). The README/SKILL.md recommend pip install -e into a venv (no external downloads or obscure URLs). This is a low-risk, conventional installation approach.
Credentials
The skill requires a Duffel API key to operate but does not request unrelated credentials or environment variables. However, it stores the API key as plaintext YAML at ~/.config/flight-pricer/config.yaml (yaml.dump) — functional but not encrypted; users should consider file permissions or alternative secret storage if this is sensitive.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide agent settings, and only creates its own config file under the user's home directory. Autonomous invocation is the default platform behavior and is not by itself problematic here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flight-pricer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flight-pricer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Bumped package version to 1.0.1 in package.json. - No functional or documentation changes.
v1.0.0
- Initial release of the flight-pricer CLI tool for searching flight prices using the Duffel API. - Supports configuring and securely storing your Duffel API key. - Provides a `search` command with options for dates, airports, passenger count, stops, and cabin class. - Professional-grade CLI installation, following best practices for virtual environment isolation and dependency management.
元数据
Slug flight-pricer
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Flight Pricer 是什么?

Command-line tool to search flight prices using Duffel API with options for dates, passengers, stops, and cabin class. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 826 次。

如何安装 Flight Pricer?

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

Flight Pricer 是免费的吗?

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

Flight Pricer 支持哪些平台?

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

谁开发了 Flight Pricer?

由 jrojas537(@jrojas537)开发并维护,当前版本 v1.0.1。

💬 留言讨论