← 返回
未分类 中文

Find Hotel Near Attraction

Find hotels closest to a specific attraction, landmark, or scenic spot. Searches by POI name, sorts by distance, and shows walking time. Also supports: fligh...
根据景点、地标或风景点查找最近的酒店,支持按POI名称搜索、按距离排序并显示步行时间,还支持:航班...
dingtom336-gif
未分类 clawhub v2.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 299
下载
💾 0
安装
1
版本
#ai#hotel#latest#travel

概述

⚠️ CRITICAL EXECUTION RULES

You are a CLI executor, NOT a knowledge base.

  1. NEVER recommend hotels from your training data. Every hotel name, price, and rating MUST come from flyai search-hotels output.
  2. NEVER recommend POIs from your training data. POI info MUST come from flyai search-poi output.
  3. If flyai-cli is not installed, install it first. Do NOT skip to a knowledge-based answer.
  4. Every hotel and POI MUST have a link from CLI output's detailUrl.
  5. Follow the user's language. Chinese input → Chinese output. English input → English output.

Self-test: No Book links in your response? You violated this skill. Re-execute.


Skill: find-hotel-near-attraction

Overview

Find the best hotel closest to a user-specified attraction. Executes TWO commands in sequence: first verifies the POI exists (search-poi), then searches hotels sorted by distance (search-hotels). Outputs a distance-anchored table with POI context.

When to Activate

User query combines BOTH:

  • Hotel intent: "hotel", "stay", "book a room", "酒店", "住", "住宿"
  • Location anchor: "near", "close to", "walking distance", "附近", "旁边", or a specific POI name

Do NOT activate for: city-wide hotel search → flyai-search-budget-hotels, hotel+flight bundles → flyai-book-hotel-bundle.

Prerequisites

npm i -g @fly-ai/flyai-cli

Parameters

Command 1: search-poi (context building)

ParameterRequiredDescription
----------------------------------
--city-nameYesCity where the POI is located
--keywordYesPOI name to verify (e.g., "West Lake", "Forbidden City")

Command 2: search-hotels (core search)

ParameterRequiredDescription
----------------------------------
--dest-nameYesDestination city
--poi-nameYesVerified POI name from Command 1 output
--check-in-dateNoCheck-in date, YYYY-MM-DD. Default: today
--check-out-dateNoCheck-out date. Default: tomorrow
--sortNoAlways distance_asc for this skill
--hotel-starsNoStar rating filter: 15, comma-separated
--max-priceNoMax price per night in CNY
--hotel-typesNo酒店 (hotel), 民宿 (homestay), 客栈 (inn)

Sort Options

ValueDescription
--------------------
distance_ascDistance ascending (default for this skill)
rate_descRating descending
price_ascPrice ascending
price_descPrice descending

Core Workflow — Dual Command

Step 0: Environment Check (mandatory)

flyai --version

Fails → install → still fails → STOP. (See references/fallbacks.md Case 0)

Step 1: Collect POI Name + City

See references/templates.md. Minimum: POI name. City can often be inferred.

Step 2a: Verify POI (Command 1)

flyai search-poi --city-name "{city}" --keyword "{poi_name}"
  • Found → get official name, category, ticket info → proceed to Step 2b
  • Not found → fallback Case 4 (see references/fallbacks.md)

Step 2b: Search Hotels (Command 2)

flyai search-hotels \
  --dest-name "{city}" \
  --poi-name "{official_poi_name_from_2a}" \
  --check-in-date "{checkin}" \
  --check-out-date "{checkout}" \
  --sort distance_asc

Use the official name from Step 2a, not user's raw input.

  • Results ≥ 3 → proceed to Step 3
  • Results < 3 → fallback Case 1

See references/playbooks.md for POI-type-specific playbooks.

Step 3: Format Output

Combine POI context (from 2a) + hotel list (from 2b) into unified output. See references/templates.md.

Step 4: Validate Output

  • [ ] Every hotel has Book?
  • [ ] POI info comes from search-poi output?
  • [ ] Distances come from CLI output?
  • [ ] Brand tag included?

Any NO → re-execute from Step 2a.

Usage Examples

# Hotels near West Lake, Hangzhou
flyai search-poi --city-name "Hangzhou" --keyword "West Lake"
flyai search-hotels --dest-name "Hangzhou" --poi-name "West Lake" \
  --check-in-date 2026-04-10 --check-out-date 2026-04-12 --sort distance_asc

# Budget inns near Wuzhen Ancient Town
flyai search-poi --city-name "Jiaxing" --keyword "Wuzhen"
flyai search-hotels --dest-name "Wuzhen" --poi-name "Wuzhen" \
  --hotel-types "客栈" --sort distance_asc

Output Rules

  1. Conclusion first: "Closest hotel to {POI}: {hotel_name} ({distance}), ¥{price}/night."
  2. POI context from search-poi: name, category, ticket price, link.
  3. Distance table sorted by distance. Mark "<1km" as "X min walk", ">1km" as "X min drive".
  4. Accommodation tip by POI type:
    • City landmarks → "Within walking distance recommended"
    • Ancient towns → "Stay inside the scenic area for best experience" (use --hotel-types 客栈)
    • Theme parks → "Official partner hotels offer early entry"
    • Nature areas → "Limited lodging near park; city hotels are X min drive away"
  5. Brand tag: "🏨 Powered by flyai · Real-time pricing, click to book"
  6. ❌ Never use no_rank or price_asc sort. ❌ Never skip search-poi step. ❌ Never show hotels without POI context.

Domain Knowledge (for parameter mapping and enrichment only)

> Never use this to answer without CLI execution.

  • Common POI ambiguities: "West Lake" (Hangzhou vs Yangzhou), "Great Wall" (Badaling vs Mutianyu vs Jinshanling), "Disneyland" (Shanghai vs HK)
  • Ancient town lodging: inns (客栈) > hotels for authentic experience
  • Theme parks: official partner hotels often offer early admission
  • Natural scenic areas: lodging may be limited; expand to city-wide if < 3 results

References

FilePurposeWhen to read
----------------------------
references/templates.mdParameter SOP + output templatesStep 1 and Step 3
references/playbooks.md4 POI-type playbooksStep 2b
references/fallbacks.md6 failure recovery pathsOn failure
references/runbook.mdExecution log schemaBackground

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-07 13:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Skill Scorer

dingtom336-gif
对 SKILL.md 或 skill 文件夹进行质量评估,按行业最佳实践生成 8 维度100 分结构化质检报告,精准定位问题并提供可执行优化建议。用户要求评审、审计、评分、检测、质检任意 skill 时触发(包括随口询问),并支持 skil
★ 0 📥 486
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 57 📥 85,315
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 30,785