← 返回 Skills 市场
jrojas537

Hotel Pricer

作者 jrojas537 · GitHub ↗ · v1.1.1
cross-platform ✓ 安全检测通过
685
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install hotel-pricer
功能描述
Search hotels by city, dates, and guests using Amadeus API, returning availability and pricing in JSON format via a Go CLI tool.
使用说明 (SKILL.md)

hotel-pricer Skill

A Go-based CLI for searching hotel availability and pricing using the Amadeus API.

Description

This skill allows the agent to find hotel deals by city, check-in/out dates, and number of guests. It securely manages Amadeus API credentials and provides formatted JSON output.

Prerequisites

  • go (for installation)
  • An Amadeus for Developers account with API Key and Secret.

Installation

The hotel-pricer binary must be compiled and placed in the system's PATH.

# From the hotel-pricer source directory
go build
sudo mv hotel-pricer /usr/local/bin/

Configuration

Credentials must be set before use.

hotel-pricer config set --api-key YOUR_API_KEY --api-secret YOUR_API_SECRET

Usage

Search for Hotels

hotel-pricer search --city \x3CIATA_CODE> --check-in \x3CYYYY-MM-DD> --check-out \x3CYYYY-MM-DD> [flags]

Example: hotel-pricer search --city NYC --check-in 2024-12-24 --check-out 2024-12-28 --guests 2

Flags

  • --city, -c: City code (IATA) (required)
  • --check-in, -i: Check-in date (YYYY-MM-DD) (required)
  • --check-out, -o: Check-out date (YYYY-MM-DD) (required)
  • --guests, -g: Number of guests (default: 1)
  • --radius, -r: Search radius in kilometers (default: 20)
安全使用建议
This skill appears to do what it says (a Go CLI that calls the Amadeus API), but review and accept these trade-offs before installing: - Credentials storage: The tool stores your Amadeus API Key, Secret, and cached token in a YAML config file under $HOME/.config/hotel-pricer/config.yaml (written by viper). Those values are stored unencrypted, so restrict file permissions and consider using an alternative secret storage (OS keyring or environment variables) if you need stronger protection. - SKILL.md claims 'securely manages' credentials — that wording is stronger than the implementation; treat the stored secrets as plaintext on disk. - Installation: You must build locally with 'go build' (SKILL.md requirement). The registry metadata did not list 'go' as a required binary, so ensure you have Go installed. Moving the built binary to /usr/local/bin requires sudo. - API endpoint: The code's API base is set to the Amadeus test host (https://test.api.amadeus.com). Confirm whether you intend to use the test environment or need to change the base URL to production before running. - Token caching: Access tokens are written back to the same config file. If multiple users share the account or machine, ensure appropriate file permissions. If you are comfortable with these points, the skill is internally consistent. If you need secrets encrypted at rest or automated installation, request or inspect changes to support those requirements.
功能分析
Type: OpenClaw Skill Name: hotel-pricer Version: 1.1.1 The skill bundle implements a Go-based CLI for searching hotel availability and pricing using the Amadeus API. All code and documentation align with the stated purpose. API credentials and tokens are securely stored in a user-specific configuration file (`~/.config/hotel-pricer/config.yaml`), and all network communication is directed to the legitimate Amadeus API endpoint (`https://test.api.amadeus.com`). There is no evidence of data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection attempts in SKILL.md or other files.
能力评估
Purpose & Capability
The code implements a Go CLI that authenticates to the Amadeus API and performs hotel-offer searches, matching the name and description. No unrelated services, credentials, or binaries are requested by the code. One metadata mismatch: SKILL.md lists 'go' as a prerequisite for installation, while the registry's required-binaries list is empty.
Instruction Scope
SKILL.md instructs building the binary and using 'hotel-pricer config set' to store API key/secret, which is exactly what the code expects. However the README/SKILL.md claim that credentials are 'securely managed' is misleading: the program stores API key/secret and cached access token in a plain YAML config file under the user's home (~/.config/hotel-pricer/config.yaml) via viper. The SKILL.md does not mention that path or that secrets are stored unencrypted on disk.
Install Mechanism
There is no automated install spec (manual 'go build' and move to PATH is required). This is low risk but means the user must build and install manually; package.json exists but is informational only. No remote downloads or archive extraction are performed by the skill itself.
Credentials
The skill does not request environment variables or unrelated credentials. It uses a local config file to hold the Amadeus API Key/Secret and caches tokens — this is proportional to its stated purpose.
Persistence & Privilege
The skill does not request persistent platform privileges (always:false). It writes only to the user's config directory (~/.config/hotel-pricer) and does not modify other skills or system-wide settings. No elevated privileges are required except optional 'sudo mv' to place the binary in /usr/local/bin during installation, which is a standard install step.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hotel-pricer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hotel-pricer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
- Added README.md with documentation and usage instructions. - Updated package.json with latest dependencies or metadata.
v1.1.0
- Added detailed usage instructions and prerequisites to SKILL.md. - Described installation steps and configuration for API credentials. - Included CLI command examples and flag documentation for searching hotels. - Clarified output format as formatted JSON.
元数据
Slug hotel-pricer
版本 1.1.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Hotel Pricer 是什么?

Search hotels by city, dates, and guests using Amadeus API, returning availability and pricing in JSON format via a Go CLI tool. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 685 次。

如何安装 Hotel Pricer?

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

Hotel Pricer 是免费的吗?

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

Hotel Pricer 支持哪些平台?

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

谁开发了 Hotel Pricer?

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

💬 留言讨论