travel-planner

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Travel Planner

旅行规划Skill

Overview

概述

This skill transforms Claude into a comprehensive travel planning assistant that maintains your travel preferences and generates detailed, personalized trip plans including itineraries, budget breakdowns, packing lists, and cultural guidelines for any destination.
此Skill可将Claude转变为一个全面的旅行规划助手,它会保存你的旅行偏好,并为任何目的地生成详细的个性化旅行计划,包括行程安排、预算明细、打包清单和文化指南。

When to Use This Skill

使用场景

Invoke this skill for travel-related tasks:
  • Planning trips and creating itineraries
  • Budget planning and expense tracking
  • Destination research and recommendations
  • Packing checklists
  • Cultural etiquette and do's/don'ts
  • Pre-trip preparation timelines
  • Travel preference management
在以下旅行相关任务中调用此Skill:
  • 旅行规划与行程制定
  • 预算规划与费用跟踪
  • 目的地调研与推荐
  • 打包清单制作
  • 文化礼仪与注意事项查询
  • 行前准备时间表制定
  • 旅行偏好管理

Workflow

工作流程

Step 1: Check for Existing Preferences

步骤1:检查现有偏好设置

Check if travel preferences exist:
bash
python3 scripts/travel_db.py is_initialized
If "false", proceed to Step 2 (Setup). If "true", proceed to Step 3 (Trip Planning).
检查是否已存在旅行偏好设置:
bash
python3 scripts/travel_db.py is_initialized
如果返回"false",则进入步骤2(初始化设置);如果返回"true",则进入步骤3(旅行规划)。

Step 2: Initial Preference Collection

步骤2:首次偏好信息收集

When no preferences exist, collect comprehensive travel information:
Travel Style & Budget:
  • Budget level: budget, mid-range, luxury
  • Travel pace: relaxed, moderate, packed
  • Accommodation preferences: hostel, hotel, Airbnb, resort
  • Travel companions: solo, couple, family, group
Interests & Activities:
  • Sightseeing & landmarks
  • Food & culinary experiences
  • Adventure & outdoor activities
  • Culture & history
  • Beach & relaxation
  • Nightlife & entertainment
  • Shopping
  • Nature & wildlife
  • Photography
  • Wellness & spa
Dietary & Health:
  • Dietary restrictions (vegetarian, vegan, allergies)
  • Accessibility needs
  • Health considerations
  • Fitness level
Languages & Skills:
  • Languages spoken
  • Travel experience level
  • Comfort with adventure
Previous Travel:
  • Countries/cities visited
  • Favorite destinations
  • Bucket list destinations
Saving Preferences:
python
import sys
sys.path.append('[SKILL_DIR]/scripts')
from travel_db import save_preferences

preferences = {
    "travel_style": "adventurous",
    "budget_level": "mid-range",
    "accommodation_preference": ["boutique hotels", "Airbnb"],
    "interests": ["culture", "food", "hiking", "photography"],
    "dietary_restrictions": ["vegetarian"],
    "pace_preference": "moderate",
    "travel_companions": "couple",
    "language_skills": ["English", "Spanish"],
    "previous_destinations": ["Paris", "Tokyo", "Barcelona"],
    "bucket_list": [
        {"destination": "New Zealand", "notes": "Lord of the Rings locations"},
        {"destination": "Peru", "notes": "Machu Picchu"}
    ]
}

save_preferences(preferences)
Replace
[SKILL_DIR]
with actual skill path.
当无现有偏好设置时,收集全面的旅行信息:
旅行风格与预算:
  • 预算等级:经济型、中端、奢华型
  • 旅行节奏:轻松、适中、紧凑
  • 住宿偏好:青旅、酒店、Airbnb、度假村
  • 同行人员:独自、情侣、家庭、团体
兴趣与活动:
  • 观光与地标游览
  • 美食与烹饪体验
  • 冒险与户外活动
  • 文化与历史探索
  • 海滩与休闲
  • 夜生活与娱乐
  • 购物
  • 自然与野生动物
  • 摄影
  • 养生与水疗
饮食与健康:
  • 饮食禁忌(素食、纯素、过敏食物)
  • 无障碍需求
  • 健康注意事项
  • 体能水平
语言与技能:
  • 掌握的语言
  • 旅行经验等级
  • 对冒险活动的接受度
过往旅行经历:
  • 去过的国家/城市
  • 最爱的目的地
  • 愿望清单目的地
保存偏好设置:
python
import sys
sys.path.append('[SKILL_DIR]/scripts')
from travel_db import save_preferences

preferences = {
    "travel_style": "adventurous",
    "budget_level": "mid-range",
    "accommodation_preference": ["boutique hotels", "Airbnb"],
    "interests": ["culture", "food", "hiking", "photography"],
    "dietary_restrictions": ["vegetarian"],
    "pace_preference": "moderate",
    "travel_companions": "couple",
    "language_skills": ["English", "Spanish"],
    "previous_destinations": ["Paris", "Tokyo", "Barcelona"],
    "bucket_list": [
        {"destination": "New Zealand", "notes": "Lord of the Rings locations"},
        {"destination": "Peru", "notes": "Machu Picchu"}
    ]
}

save_preferences(preferences)
[SKILL_DIR]
替换为实际的Skill路径。

Step 3: Create New Trip

步骤3:创建新旅行计划

When user wants to plan a trip, gather:
Essential Information:
  1. Destination: City/country
  2. Dates: Departure and return dates (or flexible date range)
  3. Duration: Number of days
  4. Budget: Total budget or daily budget
  5. Purpose: Vacation, business, special occasion
  6. Must-see/do: Specific attractions or activities
Creating Trip:
python
from travel_db import add_trip

trip = {
    "destination": {
        "city": "Barcelona",
        "country": "Spain",
        "region": "Catalonia"
    },
    "departure_date": "2025-06-15",
    "return_date": "2025-06-22",
    "duration_days": 7,
    "budget": {
        "total": 2500,
        "currency": "USD"
    },
    "purpose": "vacation",
    "travelers": 2,
    "climate": "warm Mediterranean",
    "activities": ["sightseeing", "food tours", "beach", "architecture"],
    "accommodation": {
        "type": "boutique hotel",
        "location": "Gothic Quarter"
    }
}

trip_id = add_trip(trip, status="current")
当用户需要规划旅行时,收集以下信息:
基本信息:
  1. 目的地:城市/国家
  2. 日期:出发和返回日期(或灵活日期范围)
  3. 时长:旅行天数
  4. 预算:总预算或每日预算
  5. 旅行目的:度假、商务、特殊场合
  6. 必去景点/活动:特定的景点或活动
创建旅行记录:
python
from travel_db import add_trip

trip = {
    "destination": {
        "city": "Barcelona",
        "country": "Spain",
        "region": "Catalonia"
    },
    "departure_date": "2025-06-15",
    "return_date": "2025-06-22",
    "duration_days": 7,
    "budget": {
        "total": 2500,
        "currency": "USD"
    },
    "purpose": "vacation",
    "travelers": 2,
    "climate": "warm Mediterranean",
    "activities": ["sightseeing", "food tours", "beach", "architecture"],
    "accommodation": {
        "type": "boutique hotel",
        "location": "Gothic Quarter"
    }
}

trip_id = add_trip(trip, status="current")

Step 4: Research Destination

步骤4:目的地调研

Use web search to gather current information:
Essential Research:
  1. Entry Requirements - Visa, passport, vaccinations
  2. Best Time to Visit - Weather, seasons, festivals
  3. Safety Information - Travel advisories, safe areas, common scams
  4. Cultural Norms - Do's and don'ts (use
    references/cultural_etiquette.md
    as guide)
  5. Local Transportation - Metro, buses, taxis, apps
  6. Top Attractions - Must-see places with hours and prices
  7. Food Recommendations - Local specialties, popular restaurants
  8. Neighborhoods - Where to stay, where to explore
  9. Day Trip Options - Nearby attractions
  10. Practical Info - Currency, tipping, power outlets, language
Search Topics to Cover:
  • "[Destination] visa requirements for [nationality]"
  • "[Destination] best time to visit weather"
  • "[Destination] cultural do's and don'ts"
  • "[Destination] top attractions and activities"
  • "[Destination] local transportation guide"
  • "[Destination] where to stay neighborhoods"
  • "[Destination] food and restaurants"
  • "[Destination] scams to avoid"
  • "[Destination] budget guide"
  • "[Destination] 7-day itinerary"
通过网络搜索收集最新信息:
核心调研内容:
  1. 入境要求 - 签证、护照、疫苗接种
  2. 最佳旅行时间 - 天气、季节、节日
  3. 安全信息 - 旅行警告、安全区域、常见骗局
  4. 文化习俗 - 注意事项(以
    references/cultural_etiquette.md
    为参考)
  5. 当地交通 - 地铁、公交、出租车、相关应用
  6. 热门景点 - 必去景点的开放时间和价格
  7. 美食推荐 - 当地特色、热门餐厅
  8. 街区指南 - 住宿区域、探索区域
  9. 周边短途游 - 附近景点
  10. 实用信息 - 货币、小费、电源插座、当地语言
搜索主题:
  • "[目的地] 针对[国籍]的签证要求"
  • "[目的地] 最佳旅行时间与天气"
  • "[目的地] 文化注意事项"
  • "[目的地] 热门景点与活动"
  • "[目的地] 当地交通指南"
  • "[目的地] 住宿街区推荐"
  • "[目的地] 美食与餐厅"
  • "[目的地] 需防范的骗局"
  • "[目的地] 预算指南"
  • "[目的地] 7天行程安排"

Step 5: Generate Detailed Travel Plan

步骤5:生成详细旅行计划

Create comprehensive plan with all components:
A. Day-by-Day Itinerary
Structure each day based on user's pace preference and research:
Day 1: Arrival & Gothic Quarter
- Morning (9:00 AM): Arrive Barcelona, hotel check-in
- Late Morning (11:00 AM): Walking tour of Gothic Quarter
  - Barcelona Cathedral
  - Plaça Reial
  - Las Ramblas (brief walk)
- Afternoon (2:00 PM): Lunch at Cal Pep (tapas)
- Afternoon (4:00 PM): Picasso Museum
- Evening (7:00 PM): Dinner in El Born neighborhood
- Evening (9:00 PM): Stroll along waterfront

Transportation: Metro from airport (30 min, €5)
Estimated Cost: €120/person (meals, museum, transport)
Notes: Book Picasso Museum tickets online in advance
Repeat for each day, ensuring:
  • Logical geographic grouping
  • Realistic timing with buffers
  • Mix of activity types
  • Meal suggestions
  • Transportation details
  • Estimated costs
  • Booking notes
B. Budget Breakdown
Use
plan_generator.py
or create manually:
python
from plan_generator import calculate_budget_breakdown

budget = calculate_budget_breakdown(
    total_budget=2500,
    num_days=7,
    accommodation_level="mid-range"
)
Present as:
Total Budget: $2,500 (7 days)
Daily Average: $357

Breakdown:
- Accommodation: $875 (35%) - $125/night
  * Boutique hotel in Gothic Quarter
  * Includes breakfast

- Food: $625 (25%) - $89/day
  * Breakfast: Included
  * Lunch: $25-30/person
  * Dinner: $40-50/person
  * Snacks/drinks: $15/day

- Activities: $625 (25%) - $89/day
  * Sagrada Familia: $35
  * Park Güell: $13
  * Picasso Museum: $15
  * Food tour: $95
  * Day trip to Montserrat: $50
  * Other attractions: ~$100

- Transportation: $250 (10%) - $36/day
  * Airport transfers: $35 each way
  * Metro pass (7-day): $40
  * Taxis: ~$100 total

- Miscellaneous: $125 (5%)
  * Tips, emergencies, souvenirs
C. Packing Checklist
Generate using
plan_generator.py
or based on destination climate/activities:
python
from plan_generator import generate_packing_checklist

checklist = generate_packing_checklist(
    destination_climate="warm Mediterranean",
    duration_days=7,
    trip_activities=["sightseeing", "beach", "dining"]
)
Customize and present:
ESSENTIALS:
- [ ] Passport (check 6-month validity)
- [ ] Visa (if required)
- [ ] Travel insurance documents
- [ ] Hotel confirmations
- [ ] Flight tickets
- [ ] Credit cards (notify bank)
- [ ] Euros cash (€200-300)
- [ ] Phone & charger
- [ ] European plug adapter
- [ ] Medications

CLOTHING (June weather: 70-80°F, sunny):
- [ ] 3 pairs shorts
- [ ] 2 pairs long pants
- [ ] 5-7 t-shirts/tops
- [ ] 1-2 dresses/nice shirts for dinner
- [ ] Light jacket for evenings
- [ ] Swimsuit
- [ ] Comfortable walking shoes
- [ ] Sandals
- [ ] Sun hat
- [ ] Sunglasses

ACTIVITIES:
- [ ] Day backpack
- [ ] Reusable water bottle
- [ ] Camera
- [ ] Beach towel (compact)
- [ ] Sunscreen SPF 50
- [ ] Walking tour comfortable shoes
D. Cultural Do's and Don'ts
Research and present country-specific guidelines (use
references/cultural_etiquette.md
as template):
SPAIN / BARCELONA - Cultural Etiquette

DO'S:
✓ Greet with "Hola" and a kiss on each cheek (friends)
✓ Learn basic Spanish/Catalan phrases
✓ Eat dinner late (9-10 PM is normal)
✓ Take your time with meals
✓ Dress stylishly (locals dress well)
✓ Respect siesta time (2-5 PM, some shops close)
✓ Say "Bon profit" before meals
✓ Tip 5-10% for good service

DON'TS:
✗ Don't expect early dinner (restaurants open at 8 PM)
✗ Don't wear beach clothes in city center
✗ Don't assume everyone speaks English
✗ Don't call it Spain - it's Catalunya to locals
✗ Don't rush through meals
✗ Don't yell or be loud in public
✗ Don't take photos in churches during mass

DINING ETIQUETTE:
- Lunch: 2-4 PM
- Dinner: 9-11 PM
- Service charge sometimes included (check bill)
- Say "La cuenta, por favor" for bill
- It's okay to share tapas
- Bread is not free at all restaurants

SAFETY TIPS:
- Watch for pickpockets on Las Ramblas and metro
- Keep bag in front in crowded areas
- Don't leave valuables on beach
- Be cautious accepting help from strangers
- Use official taxis or Uber/Cabify
E. Pre-Trip Preparation Timeline
Use
plan_generator.py
or create based on departure date:
python
from plan_generator import generate_pre_trip_checklist

prep_checklist = generate_pre_trip_checklist(
    destination_country="Spain",
    departure_date="2025-06-15"
)
Present as timeline:
PRE-TRIP CHECKLIST

2 MONTHS BEFORE (April 15):
- [ ] Book flights
- [ ] Book hotel
- [ ] Purchase travel insurance
- [ ] Check passport expiration
- [ ] Research visa requirements
- [ ] Start researching activities

1 MONTH BEFORE (May 15):
- [ ] Book Sagrada Familia tickets (sell out!)
- [ ] Book food tour
- [ ] Book any other popular activities
- [ ] Notify bank of travel dates
- [ ] Set up international phone plan
- [ ] Download offline maps (Google Maps, Citymapper)
- [ ] Make dinner reservations (popular restaurants)

2 WEEKS BEFORE (June 1):
- [ ] Confirm all reservations
- [ ] Print/save all confirmations offline
- [ ] Exchange some currency (~€200)
- [ ] Check weather forecast
- [ ] Create packing list
- [ ] Arrange pet/plant care
- [ ] Hold mail delivery

1 WEEK BEFORE (June 8):
- [ ] Check in for flights (24 hours before)
- [ ] Pack luggage
- [ ] Charge all electronics
- [ ] Download language apps (Google Translate, Duolingo)
- [ ] Save emergency numbers
- [ ] Make copies of passport
- [ ] Clean out fridge

DAY BEFORE (June 14):
- [ ] Re-check flight time
- [ ] Prepare carry-on
- [ ] Take out trash
- [ ] Adjust thermostat
- [ ] Unplug electronics
- [ ] Set multiple alarms for departure
创建包含以下所有模块的完整计划:
A. 每日行程安排
根据用户的旅行节奏偏好和调研结果规划每日行程:
第1天:抵达巴塞罗那与哥特区
- 上午(9:00):抵达巴塞罗那,办理酒店入住
- 上午晚些时候(11:00):哥特区徒步游览
  - 巴塞罗那大教堂
  - 皇家广场
  - 兰布拉大道(短暂游览)
- 下午(14:00):在Cal Pep享用午餐(塔帕斯)
- 下午(16:00):毕加索博物馆
- 晚上(19:00):在埃尔伯恩街区享用晚餐
- 晚上(21:00):滨海步道散步

交通:从机场乘坐地铁(30分钟,5欧元)
预计费用:每人120欧元(餐饮、博物馆、交通)
注意事项:提前在线预订毕加索博物馆门票
按此格式规划每一天,确保:
  • 地理位置安排合理
  • 时间安排现实并预留缓冲
  • 活动类型丰富多样
  • 包含用餐建议
  • 交通细节明确
  • 费用预估清晰
  • 预订注意事项
B. 预算明细
使用
plan_generator.py
或手动创建:
python
from plan_generator import calculate_budget_breakdown

budget = calculate_budget_breakdown(
    total_budget=2500,
    num_days=7,
    accommodation_level="mid-range"
)
以如下格式呈现:
总预算:2500美元(7天)
日均预算:357美元

明细:
- 住宿:875美元(35%) - 每晚125美元
  * 哥特区精品酒店
  * 包含早餐

- 餐饮:625美元(25%) - 每天89美元
  * 早餐:已包含
  * 午餐:每人25-30美元
  * 晚餐:每人40-50美元
  * 零食/饮品:每天15美元

- 活动:625美元(25%) - 每天89美元
  * 圣家族大教堂:35美元
  * 桂尔公园:13美元
  * 毕加索博物馆:15美元
  * 美食之旅:95美元
  * 蒙特塞拉特短途游:50美元
  * 其他景点:约100美元

- 交通:250美元(10%) - 每天36美元
  * 机场接送:单程35美元
  * 7天地铁通票:40美元
  * 出租车:总计约100美元

- 其他:125美元(5%)
  * 小费、应急费用、纪念品
C. 打包清单
使用
plan_generator.py
或根据目的地气候/活动生成:
python
from plan_generator import generate_packing_checklist

checklist = generate_packing_checklist(
    destination_climate="warm Mediterranean",
    duration_days=7,
    trip_activities=["sightseeing", "beach", "dining"]
)
自定义并呈现:
必备物品:
- [ ] 护照(检查有效期是否超过6个月)
- [ ] 签证(如需)
- [ ] 旅行保险文件
- [ ] 酒店确认单
- [ ] 机票
- [ ] 信用卡(提前通知银行)
- [ ] 欧元现金(200-300欧元)
- [ ] 手机及充电器
- [ ] 欧洲插头转换器
- [ ] 药品

衣物(6月天气:21-27℃,晴朗):
- [ ] 3条短裤
- [ ] 2条长裤
- [ ] 5-7件T恤/上衣
- [ ] 1-2件晚宴裙/正装衬衫
- [ ] 薄外套(晚间使用)
- [ ] 泳衣
- [ ] 舒适的步行鞋
- [ ] 凉鞋
- [ ] 遮阳帽
- [ ] 太阳镜

活动用品:
- [ ] 日用背包
- [ ] 可重复使用水瓶
- [ ] 相机
- [ ] 便携沙滩巾
- [ ] SPF50防晒霜
- [ ] 适合徒步游览的舒适鞋子
D. 文化注意事项
调研并呈现针对目的地国家的指南(以
references/cultural_etiquette.md
为模板):
西班牙 / 巴塞罗那 - 文化礼仪

注意事项:
✓ 用“Hola”打招呼,朋友间行贴面礼(两侧各一次)
✓ 学习基础的西班牙语/加泰罗尼亚语短语
✓ 晚餐时间较晚(正常为21:00-22:00)
✓ 用餐时放慢节奏
✓ 穿着得体(当地人注重穿搭)
✓ 尊重午休时间(14:00-17:00,部分商店关门)
✓ 用餐前说“Bon profit”
✓ 服务好的情况下给5-10%的小费

禁忌:
✗ 不要过早用餐(餐厅通常20:00才营业)
✗ 不要在市中心穿海滩服饰
✗ 不要默认所有人都会说英语
✗ 不要称此地为西班牙 - 当地人称之为加泰罗尼亚
✗ 不要匆匆用餐
✗ 不要在公共场合大声喧哗
✗ 弥撒期间不要在教堂内拍照

用餐礼仪:
- 午餐:14:00-16:00
- 晚餐:21:00-23:00
- 账单有时包含服务费(请查看账单)
- 结账时说“La cuenta, por favor”
- 可以分享塔帕斯
- 并非所有餐厅都提供免费面包

安全提示:
- 在兰布拉大道和地铁上注意防范扒手
- 拥挤区域将包放在身前
- 不要将贵重物品留在海滩上
- 谨慎接受陌生人的帮助
- 使用官方出租车或Uber/Cabify
E. 行前准备时间表
使用
plan_generator.py
或根据出发日期创建:
python
from plan_generator import generate_pre_trip_checklist

prep_checklist = generate_pre_trip_checklist(
    destination_country="Spain",
    departure_date="2025-06-15"
)
以时间线形式呈现:
行前准备清单

出发前2个月(4月15日):
- [ ] 预订机票
- [ ] 预订酒店
- [ ] 购买旅行保险
- [ ] 检查护照有效期
- [ ] 调研签证要求
- [ ] 开始调研活动项目

出发前1个月(5月15日):
- [ ] 预订圣家族大教堂门票(很快售罄!)
- [ ] 预订美食之旅
- [ ] 预订其他热门活动
- [ ] 通知银行旅行日期
- [ ] 开通国际通话套餐
- [ ] 下载离线地图(Google Maps、Citymapper)
- [ ] 预订晚餐(热门餐厅)

出发前2周(6月1日):
- [ ] 确认所有预订
- [ ] 打印/离线保存所有确认单
- [ ] 兑换部分货币(约200欧元)
- [ ] 查看天气预报
- [ ] 创建打包清单
- [ ] 安排宠物/植物照料
- [ ] 暂停邮件投递

出发前1周(6月8日):
- [ ] 办理值机(出发前24小时)
- [ ] 打包行李
- [ ] 给所有电子设备充电
- [ ] 下载语言应用(Google Translate、Duolingo)
- [ ] 保存紧急联系电话
- [ ] 复印护照
- [ ] 清理冰箱

出发前1天(6月14日):
- [ ] 再次确认航班时间
- [ ] 准备随身行李
- [ ] 倒垃圾
- [ ] 调整恒温器
- [ ] 拔掉电子设备插头
- [ ] 设置多个出发闹钟

Step 6: Track Trip and Budget

步骤6:旅行与预算跟踪

During the trip, track expenses:
python
from travel_db import add_expense

expense = {
    "category": "food",
    "amount": 45.00,
    "description": "Dinner at Cervecería Catalana",
    "date": "2025-06-16"
}

add_expense(trip_id, expense)
View budget status:
python
from travel_db import get_budget_summary

summary = get_budget_summary(trip_id)
旅行期间跟踪费用:
python
from travel_db import add_expense

expense = {
    "category": "food",
    "amount": 45.00,
    "description": "在Cervecería Catalana享用晚餐",
    "date": "2025-06-16"
}

add_expense(trip_id, expense)
查看预算状态:
python
from travel_db import get_budget_summary

summary = get_budget_summary(trip_id)

Shows: total_budget, spent, remaining, percentage_used, by_category

显示:总预算、已花费、剩余、使用比例、分类明细

undefined
undefined

Step 7: Post-Trip Updates

步骤7:旅行后更新

After trip, move to past trips and update:
python
from travel_db import move_trip_to_past, add_previous_destination

move_trip_to_past(trip_id)
add_previous_destination("Barcelona, Spain")
旅行结束后,将旅行记录归档并更新偏好:
python
from travel_db import move_trip_to_past, add_previous_destination

move_trip_to_past(trip_id)
add_previous_destination("Barcelona, Spain")

Best Practices

最佳实践

  1. Research Thoroughly - Use web search for current, accurate information
  2. Be Realistic - Don't over-schedule; allow for rest and spontaneity
  3. Book Ahead - Popular attractions sell out, especially in peak season
  4. Budget Buffer - Add 10-20% extra for unexpected costs
  5. Cultural Respect - Research and follow local customs
  6. Safety First - Check travel advisories, register with embassy
  7. Stay Flexible - Weather and circumstances change
  8. Document Everything - Save confirmations, important info offline
  1. 充分调研 - 使用网络搜索获取最新、准确的信息
  2. 合理规划 - 不要安排过满,预留休息和即兴活动的时间
  3. 提前预订 - 热门景点在旺季很快售罄
  4. 预留预算缓冲 - 额外添加10-20%的预算应对意外支出
  5. 尊重文化 - 调研并遵守当地习俗
  6. 安全第一 - 查看旅行警告,在大使馆登记
  7. 保持灵活 - 天气和情况可能发生变化
  8. 做好记录 - 离线保存确认单和重要信息

Example Interaction

交互示例

User: "I want to plan a 7-day trip to Barcelona in June"

Claude: [Checks preferences - finds initialized]

Great! I'll create a detailed travel plan for Barcelona. Based on your preferences,
I know you enjoy culture, food, and moderate-paced travel with a mid-range budget.

First, a few questions:
1. What are your exact travel dates?
2. What's your total budget?
3. Any specific must-see attractions?
4. Traveling solo or with someone?

User: "June 15-22, $2500 budget, want to see Gaudí architecture, traveling with partner"

Claude: [Creates trip in database, performs web research]

Perfect! I've created your Barcelona trip plan. Let me present the complete itinerary:

[Generates detailed 7-day itinerary with Sagrada Familia, Park Güell, Casa Batlló, etc.]
[Creates budget breakdown: $2500 over 7 days]
[Generates packing checklist for June Mediterranean weather]
[Provides Spanish cultural do's and don'ts]
[Creates timeline of pre-trip tasks]

Key highlights:
✓ Day 2: Sagrada Familia (book tickets NOW - they sell out)
✓ Day 4: Food tour in El Born (€95/person, worth it!)
✓ Day 6: Day trip to Montserrat
✓ Budget: $357/day average (€325)
✓ Accommodation: €125/night in Gothic Quarter

Important notes:
- Book Sagrada Familia tickets immediately
- Dinner reservations needed for Tickets Bar, Cervecería Catalana
- Pickpocket awareness on Las Ramblas
- Bring European plug adapter (Type C/F)

Would you like me to adjust anything in the itinerary?
用户:"我想规划一次6月去巴塞罗那的7天旅行"

Claude:[检查偏好设置 - 发现已初始化]

好的!我将为你制定巴塞罗那的详细旅行计划。根据你的偏好,我了解你喜欢文化、美食,偏好节奏适中的旅行,预算为中端水平。

首先,我需要确认几个问题:
1. 你的具体旅行日期是什么时候?
2. 你的总预算是多少?
3. 有没有特定的必去景点?
4. 独自旅行还是和他人同行?

用户:"6月15日至22日,总预算2500美元,想参观高迪的建筑,和伴侣一起旅行"

Claude:[在数据库中创建旅行记录,进行网络调研]

完美!我已经为你创建了巴塞罗那旅行计划。下面为你呈现完整行程:

[生成包含圣家族大教堂、桂尔公园、巴特罗之家等景点的7天详细行程]
[创建7天2500美元的预算明细]
[生成适合6月地中海气候的打包清单]
[提供西班牙文化注意事项]
[创建行前准备时间表]

核心亮点:
✓ 第2天:圣家族大教堂(立即预订门票 - 很快售罄)
✓ 第4天:埃尔伯恩美食之旅(每人95欧元,非常值得!)
✓ 第6天:蒙特塞拉特短途游
✓ 预算:日均357美元(约325欧元)
✓ 住宿:哥特区每晚125欧元

重要提示:
- 立即预订圣家族大教堂门票
- 热门餐厅Tickets Bar、Cervecería Catalana需要提前预订晚餐
- 在兰布拉大道注意防范扒手
- 携带欧洲插头转换器(Type C/F)

你需要调整行程中的任何内容吗?

Technical Notes

技术说明

Data Storage:
  • Preferences:
    ~/.claude/travel_planner/preferences.json
  • Trips:
    ~/.claude/travel_planner/trips.json
CLI Commands:
bash
undefined
数据存储:
  • 偏好设置:
    ~/.claude/travel_planner/preferences.json
  • 旅行记录:
    ~/.claude/travel_planner/trips.json
CLI命令:
bash
undefined

Check initialization

检查初始化状态

python3 scripts/travel_db.py is_initialized
python3 scripts/travel_db.py is_initialized

View data

查看数据

python3 scripts/travel_db.py get_preferences python3 scripts/travel_db.py get_trips current python3 scripts/travel_db.py stats
python3 scripts/travel_db.py get_preferences python3 scripts/travel_db.py get_trips current python3 scripts/travel_db.py stats

Generate plan

生成旅行计划

python3 scripts/plan_generator.py --trip-id <id> --output plan.json
python3 scripts/plan_generator.py --trip-id <id> --output plan.json

Export backup

导出备份

python3 scripts/travel_db.py export > backup.json
undefined
python3 scripts/travel_db.py export > backup.json
undefined

Resources

资源

scripts/travel_db.py

scripts/travel_db.py

Database management for preferences, trips, budget tracking, itineraries, and travel statistics.
用于管理偏好设置、旅行记录、预算跟踪、行程安排和旅行统计数据的数据库管理脚本。

scripts/plan_generator.py

scripts/plan_generator.py

Generates itineraries, budget breakdowns, packing checklists, and preparation timelines.
用于生成行程安排、预算明细、打包清单和准备时间表的脚本。

references/travel_guidelines.md

references/travel_guidelines.md

Comprehensive guide for destination research, budget planning, itinerary creation, packing strategies, and safety tips.
包含目的地调研、预算规划、行程制定、打包策略和安全提示的全面指南。

references/cultural_etiquette.md

references/cultural_etiquette.md

Templates and guidelines for researching country-specific customs, dress codes, dining etiquette, religious considerations, and common mistakes to avoid.
用于调研国家特定习俗、着装要求、用餐礼仪、宗教注意事项和常见禁忌的模板与指南。