← Back to Skills Marketplace
zuckonit

Intelligent Hotel Lookup

by Mocker · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
102
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install hotel-lookup
Description
Hotel discovery, shortlist comparison, and booking handoff using **FlyAI `search-hotel`** on **Fliggy MCP** (structured filters: destination, stay dates, POI...
README (SKILL.md)

Hotel Lookup (FlyAI · Fliggy MCP)

Provide hotel discovery, comparison, and booking handoff using the FlyAI CLI command search-hotel, backed by Fliggy MCP. Outputs are decision-ready when you respect live JSON fields and the flag schema in references/search-hotel.md (single source of truth).


Prerequisites

  1. Install FlyAI CLI: npm i -g @fly-ai/flyai-cli
  2. Optional richer results: flyai config set FLYAI_API_KEY "your-key" (keep secrets out of logs).
  3. I/O: one JSON object per line on stdout; guidance/errors on stderr (flyai search-hotel --help for flag discovery).

Workflow

1. Capture intent before running search-hotel

Extract and confirm (ask only the minimum if missing):

  • Destination → maps to required --dest-name (country / province / city / district).
  • Stay window--check-in-date / --check-out-date (YYYY-MM-DD).
  • Budget--max-price (CNY per night cap).
  • Stars & beds--hotel-stars, --hotel-bed-types.
  • Lodging mix--hotel-types (酒店 / 民宿 / 客栈).
  • Landmark / “near X”--poi-name plus --dest-name.
  • Free-text narrowing--key-words.
  • Ranking preference--sort (price_asc / price_desc / rate_desc / distance_asc / no_rank).
  • Trip purpose (business / family / leisure) → use to choose filters and how you explain trade-offs; do not send fields that references/search-hotel.md does not define.

2. Align parameters to the reference (no “tag priming” RPC)

  • Open references/search-hotel.md and mirror exact flag names—there is no separate “prime tags” or tag-cache step in search-hotel.
  • Validate dates (not in the past; correct format). If the city or district is ambiguous, ask the user—never guess --dest-name.

3. Search hotels with normalized flyai search-hotel flags

  • Build one invocation: flyai search-hotel … per the reference Examples and parameter list.
  • Prefer a bounded result set for first pass (e.g. sensible defaults from user intent); shortlist to top 3–5 in the final narrative.
  • Respect live JSON behavior from upstream:
    • Some fields may be null or missing.
    • Price in samples appears as display strings (e.g. ¥618); do not invent currency rules not present in data.
    • If the service returns errors or empty itemList, follow Error handling below.

4. Enrich finalists from returned JSON only (no extra hotel-detail RPC)

  • Each finalist row comes from data.itemList (see output example in references/search-hotel.md).
  • Use mainPic, detailUrl, name, address, price, score, star, review, interestsPoi, etc. when present.
  • There is no getHotelDetail call in this skill. Deeper room-level matrices like full rate-plan grids are only available if they appear inside the JSON you already received; otherwise direct the user to detailUrl for authoritative booking pages.
  • If you need a second pass, run a narrower search-hotel (tighter dates, POI, or keywords)—do not fabricate APIs.

5. Return decision-ready output

Always give:

  • Recommended pick (best fit to stated constraints).
  • Two alternatives with honest trade-offs (price vs distance vs stars vs POI proximity—only from observed fields).
  • Booking handoff: what to open next (detailUrl), what to double-check on the supplier page, and 2–4 final confirmation questions if anything is still ambiguous.

Output template (concise bullets)

  • 行程信息: 目的地 / 入住离店 / 人数或房型需求 / 预算(每晚 CNY)/ 关键偏好(商务/亲子等)
  • 推荐酒店(首选)
    • 酒店名 · 价格展示(来自 JSON)
    • 位置 / 交通或 POI 相关字段(如 interestsPoi
    • 图片行:![]({mainPic})(若存在)
    • 详情/预订:[Click to book]({detailUrl})(若存在)
    • 评分/星级/短评(若存在)
    • 推荐理由(只引用结果中可见事实)
  • 备选 1 / 备选 2(同结构,字段缺失则说明)
  • 决策建议: 适合人群与取舍(不编造政策)
  • 下一步确认: 仅列 2–4 个必要确认项(支付前核对官方页等)

Output & presentation (Markdown)

  • Show image before booking link when both exist.
  • Use headings and tables when comparing multiple hotels.
  • Optional brand line: e.g. “Based on fly.ai real-time hotel results.”

Quality bar

  • Prefer concrete numbers and fields from JSON over vague adjectives.
  • Do not invent cancellation rules, breakfast, or prices not shown in data.
  • If data is missing, stale, or mismatched to user intent, say so and suggest adjusting flags or confirming on detailUrl.
  • Keep shortlists tight—avoid dumping huge itemList tables unchanged.
  • Never expose API keys or local config in chat.

References

Surface Location
search-hotel flags, examples, output shape references/search-hotel.md (authoritative)

Error handling

  1. Validate inputs against references/search-hotel.md; ask the user when required fields are unclear.
  2. Diagnose stderr + JSON status / message; fix flags vs retry on transient errors only.
  3. Empty results — relax filters once, then explain; no infinite retries.
  4. Transparency — if location or dates may be wrong, state it before recommending payment.

Differentiation (honest scope)

Hook Meaning (search-hotel only)
POI + destination --poi-name + --dest-name for “near landmark” stays.
三态住宿 --hotel-types: 酒店 / 民宿 / 客栈 in one run.
CNY nightly cap --max-price for per-night budget ceilings.
Agent-first JSON mainPic + detailUrl for fast Markdown cards—no extra scraper stack in this bundle.

Usage Guidance
This skill is coherent: it runs a third-party FlyAI CLI to fetch hotel listings and optionally uses an API key for richer results. Before installing: (1) verify the npm package @fly-ai/flyai-cli and its publisher on the npm registry (global npm installs run code on your machine), (2) prefer scoped/limited API keys or ephemeral credentials if you supply FLYAI_API_KEY, and (3) avoid reusing high-privilege keys. The skill does not ask for other system credentials or files, but installing the CLI and trusting its network access are the primary risks to review.
Capability Analysis
Type: OpenClaw Skill Name: hotel-lookup Version: 1.0.2 The hotel-lookup skill bundle is a legitimate tool for searching and comparing hotels via the FlyAI CLI and Fliggy MCP. The SKILL.md and references/search-hotel.md files provide clear, safe instructions for the agent to execute structured searches, handle errors, and format results without any evidence of data exfiltration, malicious execution, or harmful prompt injection.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
Name/description match the runtime instructions: the SKILL.md documents running the FlyAI CLI command search-hotel and returning JSON fields like mainPic and detailUrl. Declared runtime (node) is appropriate because the SKILL.md tells the agent to use an npm-installed CLI. Nothing in the instructions requires unrelated credentials, binaries, or system access.
Instruction Scope
The instructions confine the agent to building and running flyai search-hotel invocations and to using only the returned JSON. The SKILL.md explicitly forbids guessing destination names and forbids calling any other RPCs. It does mention storing an API key via the CLI config for richer results (optional) but otherwise does not direct the agent to read arbitrary files, secrets, or system paths.
Install Mechanism
No formal install spec is bundled (instruction-only). The SKILL.md recommends installing @fly-ai/flyai-cli globally with npm, which is a standard but non-trivial step: installing a third-party npm package executes code on the host. This is expected for a CLI-backed skill but carries the usual npm-package risk — verify the package publisher and trustworthiness before installing globally.
Credentials
Metadata declares no required env vars or credentials, which is consistent with a basic read-only discovery skill. The documentation does mention an optional FLYAI_API_KEY (set via flyai config) for richer results; that optional credential is reasonable for calling a backend but it is not declared in the registry metadata. No other unrelated secrets or credentials are requested.
Persistence & Privilege
The skill does not request always:true and has no install-time mechanisms that modify other skills or system-wide settings. It is user-invocable and can be invoked autonomously by the agent (platform default), which is expected for a tool of this type.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hotel-lookup
  3. After installation, invoke the skill by name or use /hotel-lookup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
v1.2.0 (2024-06) - Clarifies real flows: hotel search, shortlist, and booking handoff using FlyAI CLI `search-hotel`, with Fliggy MCP as data source. - Makes `references/search-hotel.md` the single source of truth for all parameter names, filters, and JSON output fields. - Refines output and error handling—strictly recommends presenting only fields present in the JSON results; prohibits guessing at cancellation, rates, or room details not returned. - Tightens workflow guidance: validate user inputs, never invent destination or date info, and suggest clarification if ambiguous. - Updates example output template for concise, actionable recommendations, always ordering image before booking link. - Explicitly bans extra API calls (e.g., `getHotelDetail`) or invention of unavailable data; directs users to supplier detail page for final verification.
v1.0.1
- Description updated for brevity and clarity; now spotlights key input filters (destination, dates, star, budget, bed/room) and points to the parameter reference. - No file or functional changes; core usage and workflow remain unchanged. - All previous search details, CLI commands, output, and error handling instructions preserved. - Overall scope and differentiation unchanged; documentation is now more concise.
v1.0.0
- Initial release of hotel search & comparison on Fliggy MCP. - Supports POI-nearby filtering, combined hotel/民宿/客栈 types, and CNY nightly price cap. - Structured results: JSON lines with `mainPic` and `detailUrl` for easy Markdown presentation. - Multiple CLI search dimensions: destination, POI, hotel type, dates, star/bed/price/sort filters. - Includes error handling guidelines and Markdown formatting rules for output. - Full reference in `references/search-hotel.md`; no external dependencies.
Metadata
Slug hotel-lookup
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Intelligent Hotel Lookup?

Hotel discovery, shortlist comparison, and booking handoff using **FlyAI `search-hotel`** on **Fliggy MCP** (structured filters: destination, stay dates, POI... It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.

How do I install Intelligent Hotel Lookup?

Run "/install hotel-lookup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Intelligent Hotel Lookup free?

Yes, Intelligent Hotel Lookup is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Intelligent Hotel Lookup support?

Intelligent Hotel Lookup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Intelligent Hotel Lookup?

It is built and maintained by Mocker (@zuckonit); the current version is v1.0.2.

💬 Comments