← 返回 Skills 市场
ryan-zry

航班动态查询

作者 赵瑞宇 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
90
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install flight-status-check
功能描述
酒店聚合助手,整合分贝通、携程、美团、同程、华住会、锦江等多个酒店数据源,提供统一的酒店搜索、房型查询、预订服务。Invoke when user wants to search hotels across multiple platforms or aggregate hotel data from vario...
使用说明 (SKILL.md)

酒店聚合助手 (fb-hotel-aggregation-skill)

技能描述

酒店聚合助手,整合多个酒店数据源(分贝通、携程、美团、同程、华住会、锦江等),提供统一的酒店搜索、房型查询、价格对比、预订服务。通过数据标准化和智能聚合,为用户提供更全面、更优惠的酒店选择。


⚠️ 【重要约束】

  • 必须调用各平台API获取真实数据
  • 禁止自行编造酒店信息、价格或库存
  • 数据聚合时需标明数据来源
  • 接口返回什么数据就展示什么,不要修改

技能概述

基于多数据源聚合技术,实现:

  • 多平台酒店数据统一搜索
  • 数据标准化和去重合并
  • 智能排序和推荐
  • 统一预订流程

技能能力

核心能力

  1. 多源数据聚合:整合分贝通、携程、美团、同程、华住会、锦江等平台
  2. 统一搜索:一次搜索,返回所有平台的酒店结果
  3. 智能去重:相同酒店多平台数据合并展示
  4. 最优价格:自动筛选各平台最低价格
  5. 统一预订:支持选择任意平台进行预订

触发条件

  1. 聚合搜索:当用户搜索酒店时,同时查询多个平台

    • 返回聚合后的酒店列表
    • 显示各平台价格对比
    • 标注最优价格来源
  2. 展示格式示例

    🏨 北京三元桥附近酒店聚合结果(3月15日入住)
    
    | 序号 | 酒店名称 | 星级 | 区域 | 最优价格 | 价格来源 |
    |:---:|---------|:---:|------|---:|:---|
    | 1 | 桔子酒店(北京三元桥店) | 舒适型 | 朝阳区 | ¥483 | 携程 |
    | 2 | 魔方公寓(北京三元桥店) | 经济型 | 朝阳区 | ¥333 | 美团 |
    
    💡 回复"序号"查看房型详情
    💡 回复"序号-比价"查看该酒店各平台价格对比
    

数据源配置

支持的数据源

数据源 标识 类型 特点
分贝通 fenbeitong B2B 企业协议价、商旅管理
携程 ctrip OTA 库存丰富、价格优势
美团 meituan OTA 本地生活、优惠券多
同程 tongcheng OTA 微信生态、返现活动
华住会 huazhu 集团直联 会员权益、积分价值高
锦江 jinjiang 集团直联 会员折扣、品牌多

核心接口列表

一、聚合搜索接口

接口名称 核心用途 必选参数
aggregate_search 多平台酒店聚合搜索 city, check_in, check_out, keywords
get_hotel_detail_aggregate 聚合酒店详情 hotel_id, source
get_room_prices_aggregate 聚合房型价格 hotel_id, check_in, check_out

二、数据管理接口

接口名称 核心用途 说明
sync_hotel_data 同步酒店基础数据 从各平台同步酒店信息
merge_duplicate_hotels 合并重复酒店 基于名称、地址匹配去重
refresh_prices 刷新价格数据 实时更新各平台价格

数据模型

统一酒店模型

{
  "hotel_id": "聚合ID",
  "name": "酒店名称",
  "name_en": "英文名称",
  "address": "地址",
  "city": "城市",
  "district": "区域",
  "star_level": "星级",
  "score": "评分",
  "images": ["图片URL"],
  "facilities": ["设施"],
  "sources": [
    {
      "platform": "平台标识",
      "external_id": "平台酒店ID",
      "price": "价格",
      "url": "预订链接"
    }
  ]
}

统一房型模型

{
  "room_id": "房型ID",
  "name": "房型名称",
  "bed_type": "床型",
  "area": "面积",
  "floor": "楼层",
  "capacity": "入住人数",
  "facilities": ["房间设施"],
  "sources": [
    {
      "platform": "平台标识",
      "external_id": "平台房型ID",
      "price": "价格",
      "breakfast": "早餐",
      "cancel_policy": "取消政策"
    }
  ]
}

聚合算法

去重策略

  1. 名称匹配:模糊匹配酒店名称相似度 > 85%
  2. 地址匹配:地址相似度 > 80%
  3. 坐标匹配:距离 \x3C 500米
  4. 人工审核:疑似重复标记待审核

排序策略

  1. 综合评分:价格 40% + 评分 30% + 距离 20% + 设施 10%
  2. 价格优先:最低价格优先
  3. 评分优先:最高评分优先
  4. 距离优先:最近距离优先

响应规则

成功响应

{
  "code": 0,
  "msg": "success",
  "data": {
    "total": 100,
    "page": 1,
    "page_size": 10,
    "hotels": [
      {
        "hotel_id": "AGG_123456",
        "name": "桔子酒店(北京三元桥店)",
        "star_level": "舒适型",
        "score": 4.7,
        "address": "朝阳区三元桥...",
        "best_price": 483,
        "best_source": "携程",
        "sources_count": 3,
        "sources": ["携程", "美团", "分贝通"]
      }
    ],
    "sources_status": {
      "携程": "success",
      "美团": "success",
      "分贝通": "timeout"
    }
  }
}

失败响应

{
  "code": 500,
  "msg": "错误信息",
  "data": null
}
安全使用建议
This package appears internally inconsistent: the registry metadata/name/slug don't match the SKILL.md and code, and the code contains placeholder TODOs instead of implemented API calls. Before installing or enabling this skill, ask the publisher for: (1) a clear, consistent name/description and homepage/source; (2) an explanation of how it authenticates to each hotel platform (which env vars or secrets are required) and where credentials are stored; (3) a completed implementation or concrete API endpoint list and privacy/terms for booking; and (4) confirmation there are no hidden external endpoints. Do not provide real API keys or use it for production bookings until the authentication and network behavior are documented and you can review full implemented code. If you must test it, run it in an isolated/sandboxed environment and monitor outbound network traffic.
功能分析
Type: OpenClaw Skill Name: flight-status-check Version: 1.0.0 The skill bundle provides a framework for a hotel aggregation service across multiple platforms (Ctrip, Meituan, etc.). The Python scripts in `scripts/hotel_aggregation_api.py` and `scripts/openai_adapter.py` contain standard logic for searching, deduplicating, and formatting hotel data using placeholders for actual API calls, with no evidence of data exfiltration, unauthorized execution, or malicious prompt injection. A minor inconsistency exists where the `_meta.json` slug is 'flight-status-check' while the content is for hotel aggregation, but this appears to be a non-malicious naming error.
能力评估
Purpose & Capability
Multiple incoherences: top-level name/slug indicate a different capability (e.g., '航班动态查询' / 'flight-status-check') while SKILL.md and bundled Python files implement a hotel aggregator (fb-hotel-aggregation-skill). The skill claims integration with several commercial hotel platforms, but the code contains TODO stubs for those API calls and the skill does not request any API credentials or describe how to authenticate — inconsistent with the declared purpose.
Instruction Scope
SKILL.md explicitly requires calling each platform's APIs and forbids fabricating data, but provides no guidance about authentication, rate limits, or endpoints. The shipped Python modules contain placeholder _search_* functions (TODOs) rather than real API calls. Instructions therefore overpromise capabilities and give agents authority to contact external services without specifying how to do so safely.
Install Mechanism
No install spec (instruction-only) and required binary is python3, which matches included .py files. No remote downloads or archive extraction are present. Risk from install mechanism is low.
Credentials
The skill declares no required environment variables or credentials, yet its stated functionality (calling multiple commercial APIs for search/booking) would normally require API keys/secrets. Absence of declared auth is disproportionate and suggests either incomplete implementation or missing security documentation.
Persistence & Privilege
Skill does not request always:true, does not declare persistent system-wide changes, and contains no code that modifies other skills' configs. Autonomous invocation is allowed (platform default) but not combined here with other high-privilege requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flight-status-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flight-status-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the hotel aggregation assistant. - Integrates major hotel data sources (Fenbeitong, Ctrip, Meituan, Tongcheng, Huazhu, Jinjiang) for unified hotel search, price comparison, and booking. - Supports multi-platform hotel data aggregation, intelligent de-duplication, standardized search format, and optimal price selection. - Provides user-friendly commands and response formats with clear data source attribution and strict data accuracy constraints.
元数据
Slug flight-status-check
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

航班动态查询 是什么?

酒店聚合助手,整合分贝通、携程、美团、同程、华住会、锦江等多个酒店数据源,提供统一的酒店搜索、房型查询、预订服务。Invoke when user wants to search hotels across multiple platforms or aggregate hotel data from vario... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 航班动态查询?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install flight-status-check」即可一键安装,无需额外配置。

航班动态查询 是免费的吗?

是的,航班动态查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

航班动态查询 支持哪些平台?

航班动态查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 航班动态查询?

由 赵瑞宇(@ryan-zry)开发并维护,当前版本 v1.0.0。

💬 留言讨论