微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌍

一站式智能行程规划与打印专家

Travel Itinerary Builder · v1.0.2
效率 安全 B 级 作者 rachelchoo1212 公开目录收录
1k 下载 0 安装 2.1k 收藏 18 浏览

简介

智能旅行行程生成器,整合天气、景点、餐厅推荐与交通规划,支持 Gmail 自动提取预订信息,生成可打印的精美 HTML 行程单

原始描述

Comprehensive travel itinerary generator that creates detailed, multi-day trip plans with automatic weather forecasts, points of interest, restaurant recomme...

通过你的 Agent 添加

安装目录:travel-itinerary-builder/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/travel-itinerary-builder/
Codex CLI~/.codex/skills/travel-itinerary-builder/
DeepSeek Harness~/.agents/skills/travel-itinerary-builder/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能与用法

Travel Itinerary Builder 是一款面向深度旅行规划者的自动化行程生成工具。用户只需提供目的地与日期,即可一键生成包含天气预报、景点推荐、餐厅指南、交通路线及预算估算的完整多日程计划。核心用法包括:(1)基础模式——直接输入目的地与日期生成行程;(2)智能整合模式——通过可选的 Gmail 插件自动提取航班、酒店、租车等预订确认邮件,避免手动录入;(3)多语言输出——支持中、英、日、韩等语言的地名双语显示。

显著优点

高度自动化:整合 weather、goplaces 等外部数据源,自动填充天气与景点信息,大幅减少人工搜索时间。Gmail 智能解析:可识别 Agoda、Booking.com、新加坡航空、ANA、Klook 等主流平台的确认邮件,自动提取 PNR、时间、价格等关键字段。输出格式专业:基于成熟模板生成深色主题 HTML,可直接打印或分享,视觉呈现优于普通文档。多城市路线规划:自动计算城际交通时间与费用,适合自驾游及多城联游场景。

潜在局限与风险

隐私敏感:Gmail 集成需要 GOG_KEYRING_PASSWORD 环境变量授权,脚本将读取邮件主题、正文及完整内容,虽仅在本地处理,但凭证泄露风险不可忽视。外部依赖复杂:依赖 gog(Google OAuth CLI)、goplaces、curl 等多个二进制工具,任一失效将导致功能中断。API 配额限制:Google Places API 免费版仅 1000 次/月,大规模行程可能触发限制。无实时数据:航班动态、景点实时客流等信息需额外查询,工具本身不提供。安全等级待验证:文档明确提示需审查 scripts/ 目录代码,建议在隔离环境运行。

适合人群

  • 计划跨国/多城市长途旅行的中高级旅行者
  • 已使用 Gmail 接收预订确认、希望减少手动整理的用户
  • 需要向同行伙伴或家人分享专业行程文档的群体
  • 对 CLI 工具有一定熟悉度、能接受环境配置的技术型用户

常规风险总结

风险类型 说明
凭证泄露 GOG_KEYRING_PASSWORD 与 GOOGLE_PLACES_API_KEY 需妥善保管
数据隐私 Gmail 解析涉及完整邮件内容读取,敏感信息可能暂存本地 JSON
供应链攻击 外部 CLI(gog、goplaces)需独立审计其安全性
功能失效 API 超限或外部服务变更可能导致数据获取失败

技能正文


name: travel-itinerary-builder description: "Comprehensive travel itinerary generator that creates detailed, multi-day trip plans with automatic weather forecasts, points of interest, restaurant recommendations, transportation logistics, and budget estimates. Generates print-ready HTML documents with dark theme styling. Use when: (1) Planning a trip and need a complete itinerary, (2) User provides destination(s) and dates, (3) Organizing travel bookings (flights, hotels, car rentals) from Gmail, (4) Need multi-language support for destination names, (5) Creating printable travel documents, (6) Estimating travel budgets and costs." metadata: openclaw: emoji: "🌍" requires: bins: - curl optionalBins: - gog - goplaces optionalEnv: - GOG_KEYRING_PASSWORD - GOOGLE_PLACES_API_KEY install: - id: gog kind: brew formula: gogcli bins: - gog label: "Install GOG (Google OAuth CLI) for Gmail parsing (optional)" - id: goplaces kind: brew formula: steipete/tap/goplaces bins: - goplaces label: "Install goplaces for Google Places API (optional)"

Travel Itinerary Builder

Generate comprehensive, print-ready travel itineraries with automatic integration of weather, places, dining, transportation, and budget planning.

⚠️ Security & Privacy Notice

This skill accesses sensitive data and requires external credentials:

Gmail Access (Optional)

  • The gmail_parser.py script reads your Gmail messages to extract booking confirmations
  • Requires GOG_KEYRING_PASSWORD environment variable (for GOG CLI authentication)
  • What it accesses: Email subjects, snippets, and full message bodies matching search queries
  • What it extracts: Flight details (PNR, times), hotel bookings, car rentals, activity tickets
  • Data handling: Extracted data is stored locally in JSON files; no external transmission

Google Places API (Optional)

  • The places_fetcher.py script queries Google Places for attractions
  • Requires GOOGLE_PLACES_API_KEY environment variable (free tier: 1000 requests/month)
  • Fallback to built-in database if API key not provided

External CLI Dependencies

  • gog (Google OAuth CLI): Authenticates Gmail access via OAuth2
  • goplaces: Queries Google Places API
  • curl: Fetches weather data from wttr.in

Before installing:

  1. Review all scripts in scripts/ directory
  2. Only provide credentials if you trust the external CLIs
  3. Consider running in an isolated environment (container/VM)
  4. Gmail integration is optional — you can use the skill without it

Quick Start

Basic Usage

# Generate itinerary from user input
python3 scripts/generate_itinerary.py \
  --destination "Tokyo, Osaka, Kyoto" \
  --start-date "2026-03-06" \
  --end-date "2026-03-15" \
  --language zh \
  --output ./japan_trip.html

With Gmail Integration

# Extract bookings from Gmail and generate itinerary
python3 scripts/gmail_parser.py \
  --account rachelchoo1212@gmail.com \
  --after "2026-03-01" \
  --output ./bookings.json

python3 scripts/generate_itinerary.py \
  --bookings ./bookings.json \
  --destination "Tokyo, Osaka" \
  --start-date "2026-03-06" \
  --end-date "2026-03-15" \
  --output ./trip.html

Core Features

1. Automatic Data Collection

  • Weather forecasts: Integrates with weather skill for daily forecasts
  • Points of interest: Uses goplaces skill for attractions, restaurants, landmarks
  • Multi-language names: Shows place names in user language + local language
  • Gmail parsing: Extracts flight, hotel, car rental bookings from confirmation emails

2. Intelligent Planning

  • Daily schedules: Auto-generates time-based itineraries (08:00 departure → 10:00 attraction → 12:00 lunch)
  • Transportation routing: Calculates distances, travel times, and costs for driving/transit
  • Budget estimation: Computes total costs for accommodation, meals, transport, tickets
  • Packing lists: Generates climate-appropriate packing suggestions

3. Output Formats

  • HTML: Beautiful dark-themed, print-ready documents (based on proven template)
  • Markdown: Editable plain-text format
  • JSON: Structured data for further processing
  • PDF: Optional export via HTML → PDF conversion

Workflow

Step 1: Gather Information

Ask user for:

  • Destinations (cities/regions)
  • Travel dates (start and end)
  • Budget range (optional)
  • Interests/tags (history, nature, food, shopping, concerts)
  • Language preference (zh, en, ja, ko)
  • Special requirements (dietary, accessibility, child-friendly)

Step 2: Extract Existing Bookings (Optional)

If user has Gmail access configured:

python3 scripts/gmail_parser.py \
  --account <email> \
  --after <YYYY-MM-DD> \
  --keywords "flight,hotel,booking,reservation,confirmation" \
  --output bookings.json

This extracts:

  • ✈️ Flights: airline, flight number, departure/arrival times, PNR
  • 🏨 Hotels: name, address, check-in/out dates, booking number, price
  • 🚗 Car rentals: company, car type, pickup/return times, booking number
  • 🎫 Tickets: concerts, museums, activities with times and seat info

Supported platforms: Agoda, Booking.com, Singapore Airlines, ANA, Trip.com, Klook, KKday

Step 3: Query Weather and Places

# Weather forecasts for each destination
python3 scripts/weather_fetcher.py \
  --destinations "Tokyo,Osaka,Kyoto" \
  --start-date "2026-03-06" \
  --end-date "2026-03-15" \
  --output weather.json

# Points of interest
python3 scripts/places_fetcher.py \
  --destinations "Tokyo,Osaka,Kyoto" \
  --interests "temples,food,shopping" \
  --language zh \
  --output places.json

Step 4: Generate Itinerary

python3 scripts/generate_itinerary.py \
  --bookings bookings.json \
  --weather weather.json \
  --places places.json \
  --start-date "2026-03-06" \
  --end-date "2026-03-15" \
  --budget 2000 \
  --currency SGD \
  --language zh \
  --output japan_trip.html

Step 5: Export (Optional)

# Export to PDF
python3 scripts/export_pdf.py japan_trip.html japan_trip.pdf

# Sync to Notion (if configured)
python3 scripts/sync_notion.py japan_trip.json

Scripts Reference

generate_itinerary.py

Core generator. Combines all data sources into a complete itinerary.

Arguments:

  • --destination: Comma-separated list of cities/regions
  • --start-date: Trip start date (YYYY-MM-DD)
  • --end-date: Trip end date (YYYY-MM-DD)
  • --bookings: Path to bookings JSON (from gmail_parser.py)
  • --weather: Path to weather JSON (from weather_fetcher.py)
  • --places: Path to places JSON (from places_fetcher.py)
  • --budget: Total budget amount (optional)
  • --currency: Currency code (SGD, USD, JPY, etc.)
  • --language: Output language (zh, en, ja, ko)
  • --interests: Comma-separated tags (history, nature, food, shopping, concerts)
  • --output: Output file path (.html, .md, or .json)

gmail_parser.py

Extracts travel bookings from Gmail using GOG skill.

Requirements: GOG_KEYRING_PASSWORD environment variable

Arguments:

  • --account: Gmail account email
  • --after: Start date for email search (YYYY-MM-DD)
  • --keywords: Search keywords (default: "flight,hotel,booking,confirmation")
  • --output: Output JSON file

weather_fetcher.py

Fetches weather forecasts for destinations using weather skill.

Arguments:

  • --destinations: Comma-separated cities
  • --start-date: Forecast start date
  • --end-date: Forecast end date
  • --output: Output JSON file

places_fetcher.py

Queries points of interest using goplaces skill.

Arguments:

  • --destinations: Comma-separated cities
  • --interests: Activity tags (temples, museums, food, shopping)
  • --language: Display language
  • --output: Output JSON file

translator.py

Translates place names to multiple languages.

Arguments:

  • --text: Text to translate
  • --source-lang: Source language code
  • --target-langs: Comma-separated target language codes
  • --output: Output JSON file

budget_calculator.py

Estimates trip costs based on destination, duration, and bookings.

Arguments:

  • --destination: Primary destination
  • --days: Number of days
  • --bookings: Path to bookings JSON
  • --category: Budget category (budget, mid-range, luxury)
  • --output: Output JSON file

export_html.py

Converts itinerary JSON to styled HTML using template.

Arguments:

  • --input: Itinerary JSON file
  • --template: HTML template (default: assets/itinerary_template.html)
  • --output: Output HTML file

References

  • destination_templates.md: Pre-built templates for popular destinations (Tokyo, Seoul, Paris, etc.)
  • travel_tips.md: Climate guides, packing lists, visa requirements, cultural tips
  • email_patterns.md: Email parsing rules for different booking platforms
  • poi_database.md: Common attractions with multi-language names

Assets

  • itinerary_template.html: Dark-themed HTML template with CSS styling
  • icons/: SVG icons for flights, hotels, restaurants, attractions
  • fonts/: Web fonts for print-quality output

Multi-Language Support

Place names are displayed in user language + local language:

东京塔 (東京タワー / Tokyo Tower)
和歌山城 (和歌山城 / Wakayama Castle)

Supported languages: Chinese (zh), English (en), Japanese (ja), Korean (ko)

Output Example

Generated HTML includes:

  • 📅 Day-by-day timeline with emoji icons
  • 🌤️ Daily weather forecasts
  • ✈️ Flight details with boarding times
  • 🏨 Hotel information with check-in/out
  • 🚗 Driving routes with distances and tolls
  • 🍽️ Restaurant recommendations with local specialties
  • 💰 Budget breakdown by category
  • 📋 Packing checklist based on climate
  • ⚠️ Important reminders (visa, insurance, IDP)

Integration with Other Skills

This skill calls:

  • weather — Daily forecasts
  • goplaces — Attraction and restaurant search
  • gog — Gmail parsing (optional, requires GOG_KEYRING_PASSWORD)
  • notion — Sync to Notion database (optional, requires Notion API key)

Tips

  • For self-driving trips: Include rental car details, calculate fuel costs, note toll roads
  • For concert/event trips: Add venue info, seating, merchandise shop times
  • For multi-city trips: Calculate transit times between cities
  • For international trips: Include visa requirements, vaccination, travel insurance reminders

Troubleshooting

  • Gmail parsing fails: Check GOG_KEYRING_PASSWORD is set and account has access
  • Weather data missing: Ensure dates are within forecast range (usually 10 days)
  • Places not found: Try broader search terms or check goplaces API key
  • HTML rendering issues: Open in modern browser (Chrome, Firefox, Safari)

Future Enhancements

  • Real-time flight status updates
  • Amadeus API integration for flight price tracking
  • Google Sheets export for budget tracking
  • PDF generation without external tools
  • Mobile-responsive HTML output

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

travelitinerarygmail-integrationweatherbudget-planningmulti-languagehtml-exportprivacy-sensitive

同类 Skill