360 Secure SkillHub
360 安全技能中心

Hotel

面向旅行住宿决策的本地工具:用 Python 脚本记录行程、候选酒店与可复用偏好,按预算、位置、设施和决策置信度对比打分,输出候选清单并检查酒店是否已具备预订条件;数据仅存本地,不接入预订或价格接口。

agistack
agistack
热度 84.88
最近更新 2026-05-11 17:30:52
分类:生活依赖:代码执行 / 读写文件应用场景:旅行 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hotel
Metadata
name
hotel
description
Local-first hotel decision engine for trip stays, hotel comparison, shortlist creation, booking readiness, and accommodation planning. Use whenever the user mentions hotels, where to stay, comparing properties, nights, location tradeoffs, budget, amenities, booking decisions, or choosing the best stay for a trip. Captures hotel options, stores trip context, scores tradeoffs, and surfaces the best-fit hotel based on budget, location, amenities, and decision confidence.

Hotel: Choose the stay with less friction.

Core Philosophy

  1. Turn vague stay planning into concrete hotel decisions.
  2. Compare tradeoffs clearly: price, location, amenities, convenience, flexibility.
  3. Shortlist before booking.
  4. Reduce booking regret by making decision criteria explicit.

Runtime Requirements

  • Python 3 must be available as python3
  • No external packages required

Storage

All data is stored locally only under:

  • ~/.openclaw/workspace/memory/hotel/trips.json
  • ~/.openclaw/workspace/memory/hotel/hotels.json
  • ~/.openclaw/workspace/memory/hotel/preferences.json

No external sync. No booking APIs. No credentials required.

Core Objects

  • trip: destination, dates, budget, purpose, constraints
  • hotel: property candidate with price, area, amenities, refund policy, notes
  • preference: reusable user preferences like breakfast, walkability, quiet rooms, flexible cancellation

Key Workflows

  • Create Trip: add_trip.py --destination "Tokyo" --check_in 2026-04-10 --check_out 2026-04-13 --budget_total 450
  • Add Hotel: add_hotel.py --trip_id TRP-XXXX --name "Hotel A" --nightly_price 120 --area "Shinjuku" --amenities wifi,breakfast
  • Compare: compare_hotels.py --trip_id TRP-XXXX
  • Shortlist: shortlist.py --trip_id TRP-XXXX --top 3
  • Booking Check: book_ready.py --hotel_id HOT-XXXX
  • Save Preference: save_preference.py --key breakfast --value required

Scripts

Script Purpose
init_storage.py Initialize local storage
add_trip.py Create a new trip
add_hotel.py Add a hotel candidate
compare_hotels.py Compare hotel options for a trip
shortlist.py Surface best-fit hotels
book_ready.py Check if a hotel is ready to book
save_preference.py Save reusable hotel preferences