{
  "schemaVersion": "1.0",
  "item": {
    "slug": "check-bookings-phone",
    "name": "Check Bookings Phone",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/zcqqq/check-bookings-phone",
    "canonicalUrl": "https://clawhub.ai/zcqqq/check-bookings-phone",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/check-bookings-phone",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=check-bookings-phone",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "package-lock.json",
      "package.json",
      "scripts/checkBookings.ts"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/check-bookings-phone"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/check-bookings-phone",
    "agentPageUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent",
    "manifestUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "携程预售订单日期可用性检查",
        "body": "通过 midscene.js 驱动 ADB 连接的 Android 设备，自动化操作携程旅行 app，遍历预售订单并提取指定日期的预约状态。"
      },
      {
        "title": "Setup（首次使用时执行）",
        "body": "Skill 目录：本文件所在目录（下称 $SKILL_DIR）。\n\n1. 安装依赖\n\ncd $SKILL_DIR && npm install\n\n2. 配置环境变量\n\n在系统环境变量或 $SKILL_DIR/.env 中设置以下变量：\n\n火山引擎 Doubao（推荐）：\n\nMIDSCENE_MODEL_API_KEY=<your-api-key>\nMIDSCENE_MODEL_BASE_URL=https://ark.cn-beijing.volces.com/api/v3\nMIDSCENE_MODEL_NAME=doubao-seed-2-0-lite-260215\nMIDSCENE_USE_DOUBAO_VISION=true\n\n模型配置请参考 midscene.js 文档。\n\nOpenClaw 用户： 可在 ~/.openclaw/openclaw.json 中配置环境变量，安装时会自动注入。"
      },
      {
        "title": "运行",
        "body": "cd $SKILL_DIR && npx tsx scripts/checkBookings.ts --from 2026-05-01 --to 2026-05-05\n\n参数说明：\n\n--from — 起始日期，格式 YYYY-MM-DD，默认 2026-05-01\n--to — 结束日期，格式 YYYY-MM-DD，默认 2026-05-05\n\n支持跨月查询（如 4月28日到5月3日），脚本会自动按月滚动日历并分别提取。"
      },
      {
        "title": "安装到 OpenClaw",
        "body": "npx skills add <repo-path> -a openclaw"
      },
      {
        "title": "隐私提示",
        "body": "本 skill 通过 @midscene/android 对手机屏幕截图并发送至 MIDSCENE_MODEL_BASE_URL 指定的视觉模型 API 进行分析。屏幕上的订单信息（酒店名称、价格、日期等）会作为截图内容传输到该外部服务。请确保你了解并接受所用模型服务的数据处理政策。"
      },
      {
        "title": "前置条件",
        "body": "Android 设备已通过 USB 连接并开启 ADB 调试（adb devices 能看到设备）\n携程旅行 app 已安装且已登录"
      },
      {
        "title": "自动化流程",
        "body": "脚本按以下屏幕顺序操作，每一屏的处理时间会被记录并在结束时汇总打印：\n\n第1屏（我的页面）：检测或导航到携程\"我的\"页面，点击\"全部订单\"\n第2屏（全部订单）：点击\"未使用 预售订单\"选项\n第3屏（订单列表）：查询订单总数，逐个点击\"在线预约\"\n第4屏（订单详情）：点击\"立即预约\"打开日期选择器\n第5屏（日期选择）：滚动到目标月份，提取每日预约状态\n关闭日期选择器 → 返回订单列表 → 处理下一个订单"
      },
      {
        "title": "输出",
        "body": "控制台打印每个订单在目标日期范围内的状态，例如：\n\n订单 1: 南京某酒店\n  5月1日: 约满\n  5月2日: 剩1间 补¥200\n  5月3日: 可约\n\n末尾打印每一屏的处理耗时和总耗时。"
      },
      {
        "title": "使用示例",
        "body": "# 查询5月1日-5日（默认）\nnpx tsx scripts/checkBookings.ts\n\n# 查询五一到五四\nnpx tsx scripts/checkBookings.ts --from 2026-05-01 --to 2026-05-04\n\n# 跨月查询：4月28日到5月3日\nnpx tsx scripts/checkBookings.ts --from 2026-04-28 --to 2026-05-03\n\n# 查询端午假期\nnpx tsx scripts/checkBookings.ts --from 2026-06-25 --to 2026-06-27"
      }
    ],
    "body": "携程预售订单日期可用性检查\n\n通过 midscene.js 驱动 ADB 连接的 Android 设备，自动化操作携程旅行 app，遍历预售订单并提取指定日期的预约状态。\n\nSetup（首次使用时执行）\n\nSkill 目录：本文件所在目录（下称 $SKILL_DIR）。\n\n1. 安装依赖\n\ncd $SKILL_DIR && npm install\n\n\n2. 配置环境变量\n\n在系统环境变量或 $SKILL_DIR/.env 中设置以下变量：\n\n火山引擎 Doubao（推荐）：\n\nMIDSCENE_MODEL_API_KEY=<your-api-key>\nMIDSCENE_MODEL_BASE_URL=https://ark.cn-beijing.volces.com/api/v3\nMIDSCENE_MODEL_NAME=doubao-seed-2-0-lite-260215\nMIDSCENE_USE_DOUBAO_VISION=true\n\n\n模型配置请参考 midscene.js 文档。\n\nOpenClaw 用户： 可在 ~/.openclaw/openclaw.json 中配置环境变量，安装时会自动注入。\n\n运行\ncd $SKILL_DIR && npx tsx scripts/checkBookings.ts --from 2026-05-01 --to 2026-05-05\n\n\n参数说明：\n\n--from — 起始日期，格式 YYYY-MM-DD，默认 2026-05-01\n--to — 结束日期，格式 YYYY-MM-DD，默认 2026-05-05\n\n支持跨月查询（如 4月28日到5月3日），脚本会自动按月滚动日历并分别提取。\n\n安装到 OpenClaw\nnpx skills add <repo-path> -a openclaw\n\n隐私提示\n\n本 skill 通过 @midscene/android 对手机屏幕截图并发送至 MIDSCENE_MODEL_BASE_URL 指定的视觉模型 API 进行分析。屏幕上的订单信息（酒店名称、价格、日期等）会作为截图内容传输到该外部服务。请确保你了解并接受所用模型服务的数据处理政策。\n\n前置条件\nAndroid 设备已通过 USB 连接并开启 ADB 调试（adb devices 能看到设备）\n携程旅行 app 已安装且已登录\n自动化流程\n\n脚本按以下屏幕顺序操作，每一屏的处理时间会被记录并在结束时汇总打印：\n\n第1屏（我的页面）：检测或导航到携程\"我的\"页面，点击\"全部订单\"\n第2屏（全部订单）：点击\"未使用 预售订单\"选项\n第3屏（订单列表）：查询订单总数，逐个点击\"在线预约\"\n第4屏（订单详情）：点击\"立即预约\"打开日期选择器\n第5屏（日期选择）：滚动到目标月份，提取每日预约状态\n关闭日期选择器 → 返回订单列表 → 处理下一个订单\n输出\n\n控制台打印每个订单在目标日期范围内的状态，例如：\n\n订单 1: 南京某酒店\n  5月1日: 约满\n  5月2日: 剩1间 补¥200\n  5月3日: 可约\n\n\n末尾打印每一屏的处理耗时和总耗时。\n\n使用示例\n# 查询5月1日-5日（默认）\nnpx tsx scripts/checkBookings.ts\n\n# 查询五一到五四\nnpx tsx scripts/checkBookings.ts --from 2026-05-01 --to 2026-05-04\n\n# 跨月查询：4月28日到5月3日\nnpx tsx scripts/checkBookings.ts --from 2026-04-28 --to 2026-05-03\n\n# 查询端午假期\nnpx tsx scripts/checkBookings.ts --from 2026-06-25 --to 2026-06-27"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/zcqqq/check-bookings-phone",
    "publisherUrl": "https://clawhub.ai/zcqqq/check-bookings-phone",
    "owner": "zcqqq",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/check-bookings-phone",
    "downloadUrl": "https://openagent3.xyz/downloads/check-bookings-phone",
    "agentUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent",
    "manifestUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/check-bookings-phone/agent.md"
  }
}