{
  "schemaVersion": "1.0",
  "item": {
    "slug": "variflight",
    "name": "Variflight",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lyz1990/variflight",
    "canonicalUrl": "https://clawhub.ai/lyz1990/variflight",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/variflight",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=variflight",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/flight.sh",
      "scripts/flights.sh",
      "scripts/happiness.sh",
      "scripts/price.sh"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-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/variflight"
    },
    "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/variflight",
    "agentPageUrl": "https://openagent3.xyz/skills/variflight/agent",
    "manifestUrl": "https://openagent3.xyz/skills/variflight/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/variflight/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Variflight HTTP API Tool",
        "body": "Official Variflight Agent Skills enabling AI assistants to retrieve flight and railway data via zero-dependency tools."
      },
      {
        "title": "API Endpoint",
        "body": "Base URL: https://ai.variflight.com/api/v1/mcp/data\nMethod: POST\nHeader: X-VARIFLIGHT-KEY: your_api_key\nContent-Type: application/json"
      },
      {
        "title": "Configuration",
        "body": "支持多种配置方式（按优先级排序）："
      },
      {
        "title": "1. 环境变量（推荐用于 CI/CD）",
        "body": "export VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\""
      },
      {
        "title": "2. 配置文件",
        "body": "按以下顺序查找（找到即停止）：\n\n./.variflight.json（项目级配置）\n~/.variflight.json（用户级配置）\n~/.config/variflight/config.json（XDG 标准）\n\n配置格式：\n\n{\n  \"api_key\": \"sk-xxxxxxxxxxxxxxxx\"\n}"
      },
      {
        "title": "3. 命令行参数",
        "body": "./flights.sh --api-key sk-xxxx PEK SHA 2025-02-15"
      },
      {
        "title": "Installation",
        "body": "# Clone or copy the skill\ngit clone https://github.com/variflight-ai/variflight-skill.git\n\n# Or copy to your project\ncp -r variflight-skill/scripts ./scripts"
      },
      {
        "title": "Get API Key",
        "body": "Visit https://ai.variflight.com"
      },
      {
        "title": "Setup",
        "body": "方式一：环境变量\n\nexport VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\"\n\n方式二：配置文件\n\necho '{\"api_key\": \"sk-xxxxxxxxxxxxxxxx\"}' > ~/.variflight.json"
      },
      {
        "title": "Usage",
        "body": "# Search flights\n./scripts/flights.sh PEK SHA 2025-02-15\n\n# Search by flight number\n./scripts/flight.sh MU2157 2025-02-15\n\n# Search train tickets\n./scripts/train.sh \"上海\" \"合肥\" 2025-02-15\n\n# Airport weather\n./scripts/weather.sh PEK\n\n# With explicit API key\n./scripts/flights.sh --api-key sk-xxxx PEK SHA 2025-02-15"
      },
      {
        "title": "Available Endpoints",
        "body": "EndpointDescriptionParametersflightsSearch by departure/arrivaldep, arr, date, depcity, arrcityflightSearch by flight numberfnum, date, dep, arrtransferFlight transfer infodepcity, arrcity, depdatehappinessFlight comfort indexfnum, date, dep, arrrealtimeLocationAircraft locationanumfutureAirportWeatherAirport weathercode, type=\"1\"searchFlightItinerariesFlight itinerariesdepCityCode, arrCityCode, depDatetrainStanTicketTrain ticketscdep, carr, datesearchTrainStationsTrain stationsquerygetFlightPriceByCitiesFlight pricesdep_city, arr_city, dep_date"
      },
      {
        "title": "Common Airport Codes",
        "body": "CityAirportCode北京首都机场PEK北京大兴机场PKX上海虹桥机场SHA上海浦东机场PVG广州白云机场CAN深圳宝安机场SZX成都双流机场CTU杭州萧山机场HGH合肥新桥机场HFE西安咸阳机场XIY"
      },
      {
        "title": "Response Format",
        "body": "{\n  \"code\": 200,\n  \"message\": \"Success\",\n  \"data\": { ... }\n}"
      },
      {
        "title": "Error Handling",
        "body": "401 - Invalid API key\n400 - Bad request\n500 - Server error"
      },
      {
        "title": "OpenClaw (特别支持)",
        "body": "OpenClaw 会自动识别并加载本 skill。\n\n安装：\n\n# 通过 ClawHub 安装\nopenclaw skill install variflight\n\n# 或手动安装\ncp -r variflight-skill ~/.openclaw/workspace/skills/variflight\n\n配置：\n\n# OpenClaw 专用环境文件\necho 'VARIFLIGHT_API_KEY=sk-xxxx' > ~/.openclaw/workspace/.env.variflight\n\n# 或使用通用配置\necho '{\"api_key\": \"sk-xxxx\"}' > ~/.variflight.json\n\n使用：\n\n./skills/variflight/scripts/flights.sh PEK SHA 2025-02-15\n./skills/variflight/scripts/train.sh \"上海\" \"合肥\" 2025-02-15"
      },
      {
        "title": "Claude Code / Cursor",
        "body": "Add to your settings:\n\n{\n  \"variflight_api_key\": \"sk-xxxxxxxxxxxxxxxx\"\n}\n\nOr set environment variable in your shell config:\n\nexport VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\""
      },
      {
        "title": "GitHub Actions",
        "body": "- name: Setup Variflight\n  env:\n    VARIFLIGHT_API_KEY: ${{ secrets.VARIFLIGHT_API_KEY }}\n  run: |\n    ./scripts/flights.sh PEK SHA 2025-02-15"
      },
      {
        "title": "Docker",
        "body": "ENV VARIFLIGHT_API_KEY=sk-xxxxxxxxxxxxxxxx\nCOPY scripts/ /app/scripts/"
      },
      {
        "title": "Links",
        "body": "Variflight AI: https://ai.variflight.com\nClawHub: https://clawhub.com"
      }
    ],
    "body": "Variflight HTTP API Tool\n\nOfficial Variflight Agent Skills enabling AI assistants to retrieve flight and railway data via zero-dependency tools.\n\nAPI Endpoint\nBase URL: https://ai.variflight.com/api/v1/mcp/data\nMethod: POST\nHeader: X-VARIFLIGHT-KEY: your_api_key\nContent-Type: application/json\nConfiguration\n\n支持多种配置方式（按优先级排序）：\n\n1. 环境变量（推荐用于 CI/CD）\nexport VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\"\n\n2. 配置文件\n\n按以下顺序查找（找到即停止）：\n\n./.variflight.json（项目级配置）\n~/.variflight.json（用户级配置）\n~/.config/variflight/config.json（XDG 标准）\n\n配置格式：\n\n{\n  \"api_key\": \"sk-xxxxxxxxxxxxxxxx\"\n}\n\n3. 命令行参数\n./flights.sh --api-key sk-xxxx PEK SHA 2025-02-15\n\nQuick Start\nInstallation\n# Clone or copy the skill\ngit clone https://github.com/variflight-ai/variflight-skill.git\n\n# Or copy to your project\ncp -r variflight-skill/scripts ./scripts\n\nGet API Key\n\nVisit https://ai.variflight.com\n\nSetup\n\n方式一：环境变量\n\nexport VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\"\n\n\n方式二：配置文件\n\necho '{\"api_key\": \"sk-xxxxxxxxxxxxxxxx\"}' > ~/.variflight.json\n\nUsage\n# Search flights\n./scripts/flights.sh PEK SHA 2025-02-15\n\n# Search by flight number\n./scripts/flight.sh MU2157 2025-02-15\n\n# Search train tickets\n./scripts/train.sh \"上海\" \"合肥\" 2025-02-15\n\n# Airport weather\n./scripts/weather.sh PEK\n\n# With explicit API key\n./scripts/flights.sh --api-key sk-xxxx PEK SHA 2025-02-15\n\nAvailable Endpoints\nEndpoint\tDescription\tParameters\nflights\tSearch by departure/arrival\tdep, arr, date, depcity, arrcity\nflight\tSearch by flight number\tfnum, date, dep, arr\ntransfer\tFlight transfer info\tdepcity, arrcity, depdate\nhappiness\tFlight comfort index\tfnum, date, dep, arr\nrealtimeLocation\tAircraft location\tanum\nfutureAirportWeather\tAirport weather\tcode, type=\"1\"\nsearchFlightItineraries\tFlight itineraries\tdepCityCode, arrCityCode, depDate\ntrainStanTicket\tTrain tickets\tcdep, carr, date\nsearchTrainStations\tTrain stations\tquery\ngetFlightPriceByCities\tFlight prices\tdep_city, arr_city, dep_date\nCommon Airport Codes\nCity\tAirport\tCode\n北京\t首都机场\tPEK\n北京\t大兴机场\tPKX\n上海\t虹桥机场\tSHA\n上海\t浦东机场\tPVG\n广州\t白云机场\tCAN\n深圳\t宝安机场\tSZX\n成都\t双流机场\tCTU\n杭州\t萧山机场\tHGH\n合肥\t新桥机场\tHFE\n西安\t咸阳机场\tXIY\nResponse Format\n{\n  \"code\": 200,\n  \"message\": \"Success\",\n  \"data\": { ... }\n}\n\nError Handling\n401 - Invalid API key\n400 - Bad request\n500 - Server error\nIntegration Examples\nOpenClaw (特别支持)\n\nOpenClaw 会自动识别并加载本 skill。\n\n安装：\n\n# 通过 ClawHub 安装\nopenclaw skill install variflight\n\n# 或手动安装\ncp -r variflight-skill ~/.openclaw/workspace/skills/variflight\n\n\n配置：\n\n# OpenClaw 专用环境文件\necho 'VARIFLIGHT_API_KEY=sk-xxxx' > ~/.openclaw/workspace/.env.variflight\n\n# 或使用通用配置\necho '{\"api_key\": \"sk-xxxx\"}' > ~/.variflight.json\n\n\n使用：\n\n./skills/variflight/scripts/flights.sh PEK SHA 2025-02-15\n./skills/variflight/scripts/train.sh \"上海\" \"合肥\" 2025-02-15\n\nClaude Code / Cursor\n\nAdd to your settings:\n\n{\n  \"variflight_api_key\": \"sk-xxxxxxxxxxxxxxxx\"\n}\n\n\nOr set environment variable in your shell config:\n\nexport VARIFLIGHT_API_KEY=\"sk-xxxxxxxxxxxxxxxx\"\n\nGitHub Actions\n- name: Setup Variflight\n  env:\n    VARIFLIGHT_API_KEY: ${{ secrets.VARIFLIGHT_API_KEY }}\n  run: |\n    ./scripts/flights.sh PEK SHA 2025-02-15\n\nDocker\nENV VARIFLIGHT_API_KEY=sk-xxxxxxxxxxxxxxxx\nCOPY scripts/ /app/scripts/\n\nLinks\nVariflight AI: https://ai.variflight.com\nClawHub: https://clawhub.com"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lyz1990/variflight",
    "publisherUrl": "https://clawhub.ai/lyz1990/variflight",
    "owner": "lyz1990",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/variflight",
    "downloadUrl": "https://openagent3.xyz/downloads/variflight",
    "agentUrl": "https://openagent3.xyz/skills/variflight/agent",
    "manifestUrl": "https://openagent3.xyz/skills/variflight/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/variflight/agent.md"
  }
}