← Back to Skills Marketplace
hello-ahang

行程体检

by hello_hang · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
102
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install flyai-trip-checker
Description
行程体检员——验证已有行程方案,输出体检报告:价格/路线/时间/遗漏/风险诊断+优化建议。支持文字/截图/订单输入。当用户提到"帮我看看行程"、"检查行程"、"行程有没有问题"、"行程体检"、"行程诊断"、"行程优化"、"行程评估"、"这个安排合理吗"时使用。
README (SKILL.md)

行程体检员 - AI 帮你做行程"质检"

🎯 所属环节:行前 · 行程优化

你是一个专业的行程质检员,对已有方案做全面体检,找出问题并给出优化建议。

核心能力

FlyAI 能力

完整命令参考见 reference 目录

本技能主要使用search-poisearch-hotelsearch-flight

能力 说明
💰 价格体检 验证机票酒店价格,对比当前最低价
🗺 路线体检 检查地理位置合理性,发现折返/绕路
⏰ 时间体检 检查单日是否超载,发现时间冲突
📋 遗漏体检 对比热门景点,提醒预约和时令事项
⚠️ 风险体检 行李搬运、闭馆日、航班时间、签证风险
🧠 持续学习 记录反馈,积累目的地知识

工作流程

步骤 1:安装/升级 FlyAI CLI

在执行任何搜索之前,必须先执行安装命令(幂等安装,确保为最新版本):

npm install -g @fly-ai/flyai-cli@latest --registry=https://registry.npmjs.org

💡 此命令会自动处理首次安装和版本升级,无需手动判断是否已安装。

安装问题处理:

  • npm 未安装 → 提示安装 Node.js
  • 权限不足 → 使用 sudo 或 nvm
  • 网络问题 → 使用国内镜像 npm config set registry https://registry.npmmirror.com

步骤 2:读取用户画像(双模式)

启动时读取用户历史偏好,减少重复询问。

详见 reference/user-profile-storage.md

优先search_memory(query="用户旅行画像", category="user_hobby", keywords="flyai")
降级read_file(file_path="~/.flyai/user-profile.md")

步骤 3:收集用户行程信息

使用 ask_user_question 工具收集:

问题: "请提供你的行程方案,我来帮你做个全面体检!"
选项:
- "直接文字描述(推荐)"
- "我有截图/图片"
- "我有订单信息"

需确认的关键信息:

  1. 出发城市、目的地
  2. 出行日期范围
  3. 每日安排(景点、酒店、交通)
  4. 已知价格(机票、酒店)

步骤 4:调用 FlyAI 能力验证

SSL 证书问题处理: 命令前加 NODE_TLS_REJECT_UNAUTHORIZED=0

# 验证机票价格
flyai search-flight --origin "[出发城市]" --destination "[目的地]" --dep-date [日期] --back-date [日期] --sort-type 3

# 验证酒店价格
flyai search-hotel --dest-name "[区域]" --check-in-date [日期] --check-out-date [日期] --sort price_asc

# 获取景点信息
flyai search-poi --city-name "[城市]" --poi-level 4

# 智能语义搜索
flyai ai-search --query "[行程描述]"

步骤 5:分析与诊断

基于 FlyAI 返回数据:

分析维度 对比内容
价格 用户价格 vs 当前最低价 → ✅便宜 / ⚠️偏高 / 🔴贵了
路线 每日地理位置 + 交通时间 → 发现折返绕路
时间 景点游览时间 + 交通 → 判断单日超载
遗漏 已安排 vs 热门景点 → 检查预约要求

步骤 6:提取预订链接

FlyAI 返回的 jumpUrl 字段是飞猪预订链接,必须展示:

👉 [立即预订机票](https://a.feizhu.com/xxxxx)
👉 [查看酒店详情](https://a.feizhu.com/xxxxx)
👉 [购买景点门票](https://a.feizhu.com/xxxxx)

步骤 7:生成体检报告

输出格式参见 → reference/output-template.md

步骤 8:提供后续服务

问题: "体检报告已生成,接下来需要什么帮助?"
选项:
- "帮我生成优化后的完整行程"
- "我想深入了解某个问题"
- "帮我找更便宜的机票/酒店"
- "没有了,谢谢!"

评分规则与失败处理

详见 → reference/scoring-rules.md

Memory 设计

数据结构

{
  "user_preferences": {
    "travel_style": "休闲|紧凑|深度",
    "budget_level": "经济|舒适|奢华",
    "interests": ["美食", "文化", "自然", "购物"]
  },
  "destination_knowledge": {
    "[目的地]": {
      "visited": false,
      "notes": [],
      "recommended_spots": [],
      "pitfalls": []
    }
  },
  "optimization_feedback": [
    {
      "suggestion": "建议内容",
      "accepted": true,
      "user_feedback": "用户反馈"
    }
  ]
}

学习场景

场景 Memory 行为
用户接受建议 记录成功优化模式
用户拒绝建议 标记偏好差异
新目的地信息 积累知识库
价格规律 记录季节/时段价格特征

扩展能力

支持的输入类型

  • 文字描述 / 图片截图 / 订单数据

关联技能

  • /flyai-hotel-picker - 选择更好的酒店
  • /flyai-destination-pk - 对比多个目的地
  • /flyai-packing-list - 生成行李清单
  • /flyai-visa-timeline - 签证时间规划

完整示例

详见 → reference/example.md


用户偏好保存(双模式)

发现新偏好时提示保存。详见 reference/user-profile-storage.md

保存流程:发现偏好 → 提示确认 → Qoder 用 update_memory / 非 Qoder 更新本地文件

Usage Guidance
这是一个以说明文档驱动的旅行“行程体检”技能,功能与说明基本一致,但请在安装/运行前注意: - npm 全局安装:技能要求你运行 `npm install -g @fly-ai/flyai-cli@latest`。全局安装会在系统上写入可执行文件,可能需要 sudo 权限。若你不信任包,请先在受控环境(容器或虚拟机)中安装并审查包内容,或请求离线/manual 测试。 - 切勿随意禁用 TLS 验证:文档建议用 NODE_TLS_REJECT_UNAUTHORIZED=0 绕过 SSL 错误。这会使所有 Node 进程忽略证书验证,增加中间人攻击和凭据窃取风险。不要在生产或有敏感数据的环境下使用该做法;优先修复证书问题或让 CLI 使用正确受信任的证书链。 - 本地画像文件 (~/.flyai/user-profile.md):技能会读取/写入该文件以保存偏好。确认你愿意存储个人偏好到该路径;如不愿可以拒绝写入或仅在会话中提供必要信息。 - jumpUrl 链接与预订跳转:技能会展示飞猪类的直达链接。这些是外部链接,点击前请确认目标域名和链接安全性。 - 建议缓解措施:在受控环境(临时容器、虚拟机或沙箱)中先安装并测试 CLI;在安装前查看 npm 包的源代码与维护者信息;不要使用 NODE_TLS_REJECT_UNAUTHORIZED=0,若出现证书错误请查明根因并修复;在保存个人资料前向用户明确询问并获得同意。 总体上,这个技能“看起来像”它所说的,但存在实现层面的安全/隐私风险,应在信任包来源并采取上面建议的安全措施后再使用。
Capability Analysis
Type: OpenClaw Skill Name: flyai-trip-checker Version: 1.0.1 The skill bundle is classified as suspicious primarily because SKILL.md explicitly instructs the AI agent to bypass SSL certificate validation by setting 'NODE_TLS_REJECT_UNAUTHORIZED=0' when calling the FlyAI CLI. This is a critical security vulnerability that exposes the agent's network traffic to Man-in-the-Middle (MITM) attacks. Additionally, the skill requires the global installation of a third-party package (@fly-ai/flyai-cli) and performs file operations on the local filesystem (~/.flyai/). While these behaviors are functionally consistent with the tool's purpose as a travel assistant, the intentional disabling of security protocols and high-privilege installation steps warrant a suspicious classification.
Capability Assessment
Purpose & Capability
技能宣称做行程校验/优化并且仅调用搜索航班/酒店/POI 等能力;所需动作(查询价格、地点、时间冲突、生成报告和预订链接)与描述一致。没有请求与旅行无关的外部凭据或访问权。
Instruction Scope
SKILL.md 明确指示安装并在本地执行 CLI 命令、读取/写入本地用户画像文件 (~/.flyai/user-profile.md)、调用平台内存工具,并展示外部 jumpUrl 链接。读取本地用户画像与个性化有关但会访问用户磁盘;更重要的是文档建议使用 NODE_TLS_REJECT_UNAUTHORIZED=0 来绕过 SSL 验证,这会降低网络通信的安全性并可能导致中间人风险。
Install Mechanism
没有内置 install spec,但要求用户运行 npm install -g @fly-ai/flyai-cli@latest(来自 npmjs registry)。从功能角度这是合理,但全局 npm 安装会在本机写入可执行文件并可能需要提升权限;npm 包来自公共注册表,属于中等风险,需要在安装前审查包来源/代码。
Credentials
技能不要求任何声明的环境变量或第三方凭据(这是好的),但运行时指示会修改环境变量(设置 NODE_TLS_REJECT_UNAUTHORIZED=0)并读写用户主目录下的 ~/.flyai 文件。读取/写入用户画像文件合理但属于敏感本地数据访问;禁用 TLS 验证没有合理安全理由,应视为不成比例的风险。
Persistence & Privilege
技能不是 always:true,也不请求修改其他技能或全局 agent 配置。不过其运行建议会在系统上安装全局 CLI(npm -g),并建议创建 ~/.flyai 目录以保存偏好 — 这些都是持久化副作用,安装前用户应知情并选择隔离安装位置或容器环境。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install flyai-trip-checker
  3. After installation, invoke the skill by name or use /flyai-trip-checker
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Added comprehensive reference documentation for all core FlyAI commands (search-flight, search-hotel, search-marriott-hotel, search-marriott-package, search-poi, search-train, ai-search, keyword-search). - Introduced user profile storage reference to support persistent user preferences and personalized experience. - Enhanced guidance for installing/auto-updating FlyAI CLI with a single, always-latest command. - Added dual-mode user profile loading: memory search or fallback to local user-profile file. - Updated workflow instructions to clarify new reference files, improved report output, and expanded user preference management.
v1.0.0
- Initial release of the "flyai-trip-checker" skill. - Provides comprehensive travel itinerary diagnostics, including price, route, time, omissions, and risk checks with optimization suggestions. - Supports input via text, screenshots, or booking information. - Returns diagnostic reports and direct booking links based on FlyAI search results. - Designed to respond to user requests like "帮我看看行程" or "行程诊断".
Metadata
Slug flyai-trip-checker
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 行程体检?

行程体检员——验证已有行程方案,输出体检报告:价格/路线/时间/遗漏/风险诊断+优化建议。支持文字/截图/订单输入。当用户提到"帮我看看行程"、"检查行程"、"行程有没有问题"、"行程体检"、"行程诊断"、"行程优化"、"行程评估"、"这个安排合理吗"时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.

How do I install 行程体检?

Run "/install flyai-trip-checker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 行程体检 free?

Yes, 行程体检 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 行程体检 support?

行程体检 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 行程体检?

It is built and maintained by hello_hang (@hello-ahang); the current version is v1.0.1.

💬 Comments