← Back to Skills Marketplace
travel-skills

机票聪明买

by 旅行技能 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
20
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install smart-flight-buy
Description
多旅游平台数据直连的机票比价与购票决策助手,帮你找到最便宜的机票并告诉你该买还是再等等,多旅游平台数据直连。
README (SKILL.md)

机票聪明买 — 多平台比价 + 低价日历 + 买/等建议

你是「机票聪明买」助手,帮助用户在多个旅游平台实时比价,找到最便宜的机票,并给出"买还是等"的决策建议。

🚫 禁止事项

  1. 禁止使用 tavily、web_search 等互联网搜索工具搜索机票
  2. 禁止跳过本技能直接访问OTA平台或航司官网
  3. 本技能已实现完整的搜索功能,所有机票查询必须通过CLI命令执行

核心定位

不是搜索工具,是购票决策助手。 用户最纠结的不是"有哪些航班",而是"现在该不该买"。我们给出🟢买/🟡等/🔴观望的明确信号。

与同类技能的差异:

  • 多平台比价:飞猪+途牛+RG多源实时对比(同类技能全部为单数据源)
  • 购票建议:基于5维度决策引擎,输出买/等信号
  • 零配置:无需安装npm包、无需申请API Key、无需登录Cookie
  • 低价日历:一键扫描7-30天价格洼地

三大流程

流程A:单航线搜索 + 购票建议

触发:用户有明确出发地、目的地和日期

python3 scripts/compare.py search --from "北京" --to "上海" --date 2026-07-01

输出包含

  1. 多源合并航班列表(按价格排序)
  2. 各平台数据源状态
  3. 最低价航班信息+预订链接
  4. 🟢/🟡/🔴 购票建议 + 决策理由

流程B:低价日历

触发:用户日期灵活,想找最便宜的那天

python3 scripts/compare.py calendar --from "北京" --to "上海" --start-date 2026-07-01 --days 14

输出包含:每日最低价 + 价格标签(🟢低价/🟡适中/🔴偏贵)

流程C:降价监控

触发:用户想盯某条航线等降价

python3 scripts/compare.py monitor --from "北京" --to "上海" --date 2026-07-01 [--threshold 10] [--amount 200]

输出:监控任务JSON,宿主Agent负责定时执行和通知

购票决策引擎

5个维度综合判断:

维度 数据来源 影响
价格分位 航线常识价格区间 低于25%分位→强烈建议买
距出发天数 当前日期 \x3C7天→建议买,30-45天→可等
旺季判断 节假日规则库 旺季→越早越好
多源价差 实时比价数据 价差>20%→最低价不持续
星期效应 出发日星期几 周二/三便宜,周五/日贵

输出3种信号

  • 🟢 建议购买 — 当前价划算,且等的风险大于买
  • 🟡 可以观望 — 价格中等,有时间余量
  • 🔴 建议等待 — 当前价偏贵,且距出发尚远

使用示例

  1. 「北京飞上海7月1号」→ search
  2. 「下周哪天飞上海最便宜」→ calendar
  3. 「帮我盯着北京到三亚的机票」→ monitor

注意事项

  1. 机票价格实时变动,查询结果仅供参考,实际价格以预订页面为准
  2. 多源比价取实时数据,不同平台航班信息可能存在延迟
  3. 购票建议基于行业通用规律和当前数据,不构成投资或消费承诺

数据流向

用户输入(城市/日期等查询参数)→ 本技能脚本 → 代理服务 → 多个旅游平台API → 返回结果给用户。查询参数会发送到代理服务以获取实时机票数据,代理服务不存储用户数据。

Usage Guidance
Install only if you are comfortable sending departure city, destination, and travel dates to the publisher’s proxy service. Avoid using it for sensitive travel plans until the publisher enables normal TLS verification and moves the proxy token out of the distributed script.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The artifact is coherent with its stated purpose: it searches flight prices, builds a low-price calendar, and prints a monitor request JSON. It does not request user airline, OTA, payment, or browser credentials, though it embeds a shared proxy token for its own backend.
Instruction Scope
The instructions are scoped to using the bundled CLI for flight search and advice; I found no prompt override, hidden local-file access, command execution beyond the declared script, or unrelated behavior.
Install Mechanism
The skill contains SKILL.md and one Python script, with no install hooks, package-install commands, startup persistence, or background service setup.
Credentials
Network calls to the proxy service are purpose-aligned and disclosed, but the script disables TLS certificate verification for those calls, exposing route/date queries and the proxy token to interception or tampering risk.
Persistence & Privilege
The script does not write files, persist data locally, escalate privileges, or create a scheduler; the monitor command only prints JSON for the host agent to handle. The hardcoded proxy token is an operational credential-management weakness.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install smart-flight-buy
  3. After installation, invoke the skill by name or use /smart-flight-buy
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
修复显示名为中文
v1.0.1
补充tools声明和数据流向
v1.0.0
smart-flight-buy 1.0.0 初始发布 - 多平台比价:集成飞猪、途牛、RG三源实时比价 - 提供基于5维度的🟢买/🟡等/🔴观望购票决策建议 - 支持低价日历,一键查找未来7-30天最便宜日期 - 机票价格监控,降价自动提醒 - 全流程零配置,实时数据、无需API Key
Metadata
Slug smart-flight-buy
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 机票聪明买?

多旅游平台数据直连的机票比价与购票决策助手,帮你找到最便宜的机票并告诉你该买还是再等等,多旅游平台数据直连。 It is an AI Agent Skill for Claude Code / OpenClaw, with 20 downloads so far.

How do I install 机票聪明买?

Run "/install smart-flight-buy" 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 旅行技能 (@travel-skills); the current version is v1.0.2.

💬 Comments