Hotel inquiry
Use when users need hotel quotes, price comparison, booking links, or stay recommendations with check-in and check-out dates.From its SKILL.md
npx -y skills add RatePrism/skills --skill hotel-inquiryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Hotel Inquiry
Treat rateprism as a black box: follow this SKILL for flags and flows; read numbers and sales_link from CLI output only. Do not read source to “understand” implementation.
Three modes (mutually exclusive — one per run)
1 — Hotel price quote (includes sales_link)
rateprism --hotelid <id> --hotelname <name> --checkin <YYYY-MM-DD> --checkout <YYYY-MM-DD> --adults <adults> [--children <children>] [--accept_language <tag>]
--hotelid|--hotelname: exactly one required; mutually exclusive.--hotelname: tool resolves an internal hotel id via suggestion; if it cannot, the result is empty — do not invent ids.--checkin,--checkout,--adults: required for quoting;--childrenoptional.--accept_language: match the user —zh-CN,ja-JP, oren-US(fallbacken-US).
On success, output includes sales_link (booking jump URL).
2 — City sitemap list
rateprism --cityrank
Returns city list-page URL candidates; mode 3 URL must be selected from this output.
3 — Hotel list from a Trip list URL (hotelid + names)
rateprism --trip_city_url <url>
Returns ordered hotel **hotelid**s and names from that list page (no room prices, no sales_link in this step).
Flows
Single hotel
- Run 1 → use prices and
sales_linkfrom output.
By city
- Run 2 → sitemap;
- Choose one list URL;
- Run 3 → **
hotelid**s; - Run 1 for at least 10 hotels when mode 3 returns 10 or more **
hotelid**s (use list order, e.g. the first 10 — do not stop early at 6). If mode 3 returns fewer than 10 ids, run 1 for every id. For any additional hotel you still show the user, run 1 again. Only show prices andsales_linkfrom successful runs. - If all mode 1 runs fail to produce a quotable hotel (no usable price +
sales_linkfor any of them), tell the user plainly that no hotel quotes are available for this search — do not invent numbers or links.
Agent rules
- Trust CLI output for amounts and
sales_linkonly; never paste raw JSON to the user or explain black-box internals. - Any user-facing bookable hotel line must come from a successful 1: price +
sales_link. Mode 3 alone is not a quote. By city: satisfy the ≥10 mode 1 attempts when enough **hotelid**s exist; if every attempt is empty, say no quotes available. - Booking hrefs: only
sales_linkwith/jump?p=from CLI — never Trip hotel detail URLs or rawroomsas links. trip_city_urlsource is strict: always take it from the immediately preceding--cityrankoutput; never handwrite/guess/modify domains or paths.
User-facing reply
Use this layout per hotel (then repeat for the next hotel). Match the user’s language; --accept_language as above. Numbers only from successful CLI output.
-
Line 1 — name + link:
Hotel name ([sales link text](sales_link))— the href must besales_link(jump with/jump?p=). -
Line 2 — stay & guests: check-in / check-out dates and occupancy (adults per room, children if any), one clear line.
-
Line 3+ — price table (markdown table):
Room type|Lowest refundable price|Lowest non-refundable price- One row per distinct room type from the quote; use
-when a column has no rate from the API.
- One row per distinct room type from the quote; use
If unresolved: short question — no “confirmed” table or booking link.
If by city every quote attempt failed: say no hotel quotes are available — same tone as step 5 in Flows.
CLI stdout
One JSON line per run; parse internally; never paste into user chat.
Environment
Gateway, link base URL, timeouts, tokens (e.g. RATEPRISM_GATEWAY_URL, RATEPRISM_API_TOKEN, RATEPRISM_LINK_BASE_URL) are deployment-specific; use rateprism --help or ops docs — not specified in depth here.
Command path
If rateprism is not on PATH, run from the skill root (hotel-inquiry/, the directory that contains SKILL.md):
node scripts/rateprism.mjs …
If this skill lives inside a monorepo and your cwd is the repository root, use:
node skills/hotel-inquiry/scripts/rateprism.mjs …
Same flags as above.
What ships with it: 8 files
32.3 KB alongside SKILL.md, 8 of them executable
scripts/
- client.mjsruns6.8 KB
- common.mjsruns4.8 KB
- config.mjsruns972 B
- get_hotel_id_by_name.mjsruns1.3 KB
- get_hotel_price.mjsruns1.7 KB
- get_hotel_sales_link.mjsruns3.0 KB
- get_trip_rank.mjsruns6.0 KB
- rateprism.mjsruns7.9 KB