360 Secure SkillHub
360 安全技能中心

gotrain

gotrain 是一个通过 npm 安装的 CLI 技能,用于查询纽约 MTA 地铁、LIRR 和 Metro-North 的车站搜索、列车出发时刻、服务警报以及收藏站点管理;提供常见站点 ID 与命令示例,需在支持命令行执行的环境中运行。

gumadeiras
gumadeiras
热度 93.73
最近更新 2026-05-15 11:43:26
分类:生活依赖:代码执行应用场景:旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gotrain
Metadata
name
gotrain
description
MTA system train departures (NYC Subway, LIRR, Metro-North). Use when the user wants train times, schedules, or service alerts for MTA transit. Covers MTA Subway, LIRR, and Metro-North across the greater New York area.
metadata
{"clawdbot":{"requires":{"bins":["gotrain"]},"install":[{"id":"node","kind":"node","package":"gotrain","bins":["gotrain"],"label":"Install gotrain (npm)"}]}}

gotrain

Atomic CLI for NYC transit departures (MTA Subway, LIRR, Metro-North).

Installation

npm install -g gotrain

Commands

Command Description
gotrain stations [query] List/search stations
gotrain departures <station-id> Show departures for a station
gotrain alerts Active service alerts
gotrain fav <id> Toggle favorite station
gotrain favs List favorite stations

Common Station IDs

  • MNR-149 - New Haven
  • MNR-151 - New Haven-State St
  • MNR-1 - Grand Central
  • MNR-203 - Penn Station (MNR)
  • LIRR-349 - Grand Central
  • SUBWAY-631 - Grand Central-42 St

Examples

# Search for Penn Station
gotrain stations penn

# New Haven to Grand Central departures
gotrain departures MNR-149

# Check service alerts
gotrain alerts

# Add favorite station
gotrain fav MNR-149

Source

https://github.com/gumadeiras/gotrain-cli