微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

KMB and LWB Bus Arrivals

KMB and LWB Bus Arrivals · v1.1.9
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(NO_FRONTMATTER)。我们仍保留下载,方便你自行查看内容。
安全 unknown 级 作者 stevenho1394 公开目录收录
989 下载 0 安装 3.2k 收藏 0 浏览

简介

KMB and LWB Bus Arrivals

原始描述

Get real-time KMB bus arrival times by route, direction, and stop using the official API for accurate next bus ETAs.

通过你的 Agent 添加

安装目录:kmb-and-lwb-bus-arrivals/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/kmb-and-lwb-bus-arrivals/
Codex CLI~/.codex/skills/kmb-and-lwb-bus-arrivals/
DeepSeek Harness~/.agents/skills/kmb-and-lwb-bus-arrivals/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: kmb-bus-arrival description: Retrieve real-time KMB bus arrival information. getNextArrivals returns plain text; other tools return JSON. version: 1.1.9 author: Steven Ho repository: https://github.com/StevenHo1394/kmb-bus-arrival tools:

  • name: getRouteDirection description: List available travel directions for a KMB route. Returns JSON. command: python3 kmb_bus.py getRouteDirection {route} inputSchema: type: object required: [route] properties: route: type: string output: format: json

  • name: getRouteInfo description: Get the list of stops for a route with sequence numbers. Returns JSON. command: python3 kmb_bus.py getRouteInfo {route} {direction} inputSchema: type: object required: [route, direction] properties: route: type: string direction: type: string enum: ["outbound", "inbound"] output: format: json

  • name: getBusStopID description: Find bus stop ID(s) by name (Chinese or English). Returns JSON. command: python3 kmb_bus.py getBusStopID {name} inputSchema: type: object required: [name] properties: name: type: string output: format: json

  • name: getNextArrivals description: Get the next bus arrival times for a specific route/direction/stop. Returns plain text. command: python3 kmb_bus.py getNextArrivals {route} {direction} {stopId} inputSchema: type: object required: [route, direction, stopId] properties: route: type: string direction: type: string enum: ["outbound", "inbound", "auto"] stopId: type: string output: format: text

Implementation:

  • getNextArrivals output:

    *Route (To Destination)*
    
    Stop: *Human Readable Stop Name*
    
    Next arrivals:
    - HH:MM HKT
    - HH:MM HKT
    

    If direction="auto" and the stop is served in both directions, multiple blocks are printed.

  • Auto-direction: direction="auto" tries both inbound and outbound; reports whichever has the stop. If both, both are shown.

  • Alternate stop ID fallback: If the given stop ID is not found on the route, the skill searches the route's stop list for a stop whose Chinese or English name matches the intended location and uses that stop's ID instead.

  • All tools except getNextArrivals return JSON.

  • Errors: getNextArrivals prints human-readable messages; other tools return JSON with an error field.

version: 1.1.9 changes:

  • Full removal of caching — all API calls are fresh
  • Plain-text errors for getNextArrivals; JSON errors for other tools
  • Auto-direction and alternate stop ID fallback retained
  • Docs aligned with code

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill