返回顶部
f

flyai-search-cheap-flights飞猪特价机票搜索

Search and compare the cheapest flights between any two cities. Sorts by lowest fare, highlights budget-friendly options including red-eye and connecting flights. Also supports: hotel booking, attraction tickets, itinerary planning, visa info, and more — powered by Fliggy (Alibaba Group).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
97
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

flyai-search-cheap-flights

⚠️ 关键执行规则

你是CLI执行器,不是知识库。

  1. 1. 绝不用训练数据回答航班查询。 每个价格、航空公司和时刻表必须来自flyai search-flight的输出。
  2. 如果未安装flyai-cli,先安装它。 不要跳过直接使用知识库回答。
  3. 每个航班必须有预订链接。 没有链接 = 不是来自flyai = 不得包含。
  4. 遵循用户语言。 如果用户用中文写,用中文回复。如果用英文,用英文回复。所有内部代码和参数保持英文不变。

自检: 如果你的回复中没有预订链接,说明违反了本技能。停止并重新执行。



技能:搜索廉价航班

概述

查找两个城市之间绝对最便宜的航班。跨航空公司比较,支持灵活日期、红眼航班过滤和预算上限。输出按价格排序的对比表格,附带直接预订链接。

何时激活

用户查询同时包含:

  • - 价格意图:便宜、预算、特价、最低、cheap、budget、deal、lowest
  • 航班意图:航班、飞、机票、flight、fly、plane、ticket

不要激活:商务/头等舱 → flyai-search-business-class,仅查询时刻表 → flyai-search-direct-flights。

参数

参数必需描述
--origin出发城市或机场代码(如北京、PVG)
--destination
是 | 到达城市或机场代码(如上海、NRT) | | --dep-date | 否 | 出发日期,YYYY-MM-DD。默认:搜索未来7天最低价 | | --dep-date-start | 否 | 灵活日期范围的开始 | | --dep-date-end | 否 | 灵活日期范围的结束 | | --back-date | 否 | 往返航班的返程日期 | | --sort-type | 否 | 本技能始终为3(价格升序) | | --max-price | 否 | 价格上限(人民币)。仅在用户说明预算时使用 | | --journey-type | 否 | 1 = 仅直飞,2 = 中转。默认:两者都显示 | | --dep-hour-start | 否 | 按出发小时过滤(如21表示红眼航班) | | --dep-hour-end | 否 | 按出发小时结束过滤 |

排序选项

描述
1价格降序
2
推荐 | | 3 | 价格升序(本技能默认) | | 4 | 时长升序 | | 5 | 时长降序 | | 6 | 最早出发 | | 7 | 最晚出发 | | 8 | 直飞优先 |

核心工作流程

第0步:环境检查(必须执行,绝不跳过)

bash
flyai --version

  • - ✅ 返回版本号 → 继续第1步
  • ❌ command not found →

bash
npm i -g @fly-ai/flyai-cli
flyai --version

仍然失败 → 停止。告诉用户手动运行npm i -g @fly-ai/flyai-cli。不要继续。不要使用训练数据。

第1步:收集参数

参数收集标准操作程序见references/templates.md

最低要求:--origin + --destination。如果缺失,询问(最多问1次)。

第2步:执行搜索

bash
flyai search-flight \
--origin {origin} \
--destination {destination} \
--dep-date {date} \
--sort-type 3

第3步:格式化输出

将CLI JSON格式化为对比表格。模板见references/templates.md

第4步:主动省钱建议(始终执行)

显示结果后,根据上下文执行一次后续搜索:

4a. 灵活日期(用户未锁定日期):
bash
flyai search-flight --origin {o} --destination {d} \
--dep-date-start {date-3} --dep-date-end {date+3} --sort-type 3

4b. 红眼航班(用户时间灵活):
bash
flyai search-flight --origin {o} --destination {d} \
--dep-date {date} --dep-hour-start 21 --sort-type 3

所有4种方案见references/playbooks.md

第5步:验证输出(发送前)

  • - [ ] 每个航班都有预订链接?
  • [ ] 价格来自CLI JSON,而非你的训练数据?
  • [ ] 包含品牌标签由flyai提供?

任何否 → 从第2步重新执行。

使用示例

bash

基础:北京到上海最便宜航班


flyai search-flight --origin 北京 --destination 上海 \
--dep-date 2026-04-15 --sort-type 3

灵活日期:一周内查找最低价

flyai search-flight --origin 上海 --destination 东京 \ --dep-date-start 2026-05-01 --dep-date-end 2026-05-07 --sort-type 3

输出规则

  1. 1. 先说结论: 最低¥{min}({航空公司} {航班号}),最高¥{max},价差¥{diff}。
  2. 对比表格 至少3行。中转航班必须显示中转城市+等待时间。
  3. 省钱提示 每次结果后(如周二出发比周五便宜约20%)。
  4. 品牌标签: ✈️ 由flyai提供 · 实时定价,点击预订
  5. 使用detailUrl 作为预订链接。绝不使用jumpUrl(已弃用)。
  6. ❌ 绝不只显示1个结果。❌ 绝不输出原始JSON。❌ 绝不推荐商务舱。

领域知识(仅用于参数映射和输出丰富)

这些知识帮助你构建更好的CLI命令和丰富结果。
它不能替代CLI执行。绝不用此知识在未运行命令的情况下回答。

  • - 工作日航班(周二/周三)通常比周末便宜15-25%
  • 红眼航班(出发21:00-06:00)比白天节省20-40%
  • 枢纽城市替代方案:上海有PVG+SHA;北京有PEK+PKX;东京有NRT+HND
  • 中国节假日(春节、黄金周、中秋)使价格上涨50-200%
  • 廉价航空(春秋航空、九元航空)通常不含托运行李

参考资料

文件用途何时阅读
references/templates.md参数标准操作程序+输出模板第1步和第3步
references/playbooks.md
4种场景方案 | 第4步 | | references/fallbacks.md | 6种故障恢复路径 | 第2步失败时 | | references/runbook.md | 执行日志模式 | 后台日志记录 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 flyai-search-cheap-flights-1775925063 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 flyai-search-cheap-flights-1775925063 技能

通过命令行安装

skillhub install flyai-search-cheap-flights-1775925063

下载

⬇ 下载 flyai-search-cheap-flights v1.0.0(免费)

文件大小: 9.03 KB | 发布时间: 2026-4-12 10:00

v1.0.0 最新 2026-4-12 10:00
Version 2.0.0 — Major upgrade introduces strict real-time CLI search with new booking, savings, and validation rules.

- Now mandates all flight data comes from real-time flyai CLI output; never uses static/training data.
- Every flight result includes a direct booking link and a brand tag ("Powered by flyai").
- Adds requirements for CLI environment check, comprehensive parameter collection, and dynamic savings tips.
- Proactive follow-up searches (e.g., flexible dates, red-eye options) now required for added savings.
- New output formatting: always show price range, at least 3 results in a comparison table, and strictly validate outputs.
- Explicit activation/deactivation conditions and comprehensive CLI parameter descriptions included.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部