Hotel: Choose the stay with less friction.
Core Philosophy
- 1. Turn vague stay planning into concrete hotel decisions.
- Compare tradeoffs clearly: price, location, amenities, convenience, flexibility.
- Shortlist before booking.
- Reduce booking regret by making decision criteria explicit.
Runtime Requirements
- - Python 3 must be available as INLINECODE0
- No external packages required
Storage
All data is stored locally only under:
- - INLINECODE1
- INLINECODE2
- INLINECODE3
No external sync. No booking APIs. No credentials required.
Core Objects
- -
trip: destination, dates, budget, purpose, constraints - INLINECODE5 : property candidate with price, area, amenities, refund policy, notes
- INLINECODE6 : reusable user preferences like breakfast, walkability, quiet rooms, flexible cancellation
Key Workflows
- - Create Trip: INLINECODE7
- Add Hotel: INLINECODE8
- Compare: INLINECODE9
- Shortlist: INLINECODE10
- Booking Check: INLINECODE11
- Save Preference: INLINECODE12
Scripts
| Script | Purpose |
|---|
| INLINECODE13 | Initialize local storage |
| INLINECODE14 |
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 |
技能名称: hotel
详细描述:
酒店:选择更省心的住宿
核心理念
- 1. 将模糊的住宿规划转化为具体的酒店决策。
- 清晰比较各项权衡:价格、位置、设施、便利性、灵活性。
- 预订前先筛选出候选名单。
- 通过明确决策标准,减少预订后的后悔。
运行环境要求
- - 必须提供 Python 3,命令为 python3
- 无需外部软件包
存储
所有数据仅本地存储于以下路径:
- - ~/.openclaw/workspace/memory/hotel/trips.json
- ~/.openclaw/workspace/memory/hotel/hotels.json
- ~/.openclaw/workspace/memory/hotel/preferences.json
无外部同步。无预订API。无需凭证。
核心对象
- - trip:目的地、日期、预算、目的、限制条件
- hotel:候选酒店,包含价格、区域、设施、退款政策、备注
- preference:可复用的用户偏好,如早餐、步行便利性、安静房间、灵活取消
关键工作流程
- - 创建行程:addtrip.py --destination 东京 --checkin 2026-04-10 --checkout 2026-04-13 --budgettotal 450
- 添加酒店:addhotel.py --tripid TRP-XXXX --name 酒店A --nightlyprice 120 --area 新宿 --amenities wifi,breakfast
- 比较:comparehotels.py --tripid TRP-XXXX
- 筛选:shortlist.py --tripid TRP-XXXX --top 3
- 预订检查:bookready.py --hotelid HOT-XXXX
- 保存偏好:save_preference.py --key breakfast --value required
脚本
| 脚本 | 用途 |
|---|
| initstorage.py | 初始化本地存储 |
| addtrip.py |
创建新行程 |
| add_hotel.py | 添加候选酒店 |
| compare_hotels.py | 比较行程中的酒店选项 |
| shortlist.py | 展示最匹配的酒店 |
| book_ready.py | 检查酒店是否可预订 |
| save_preference.py | 保存可复用的酒店偏好 |