AgentSkillsCN

gotrain

MTA 系统列车发车时刻表(纽约地铁、LIRR、Metro-North)。当用户想要获取 MTA 运输的列车时刻、时刻表或服务警报时使用。涵盖大纽约地区的 MTA 地铁、LIRR 和 Metro-North。

SKILL.md
--- frontmatter
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-cli","bins":["gotrain"],"label":"Install gotrain CLI (npm)"}]}}

gotrain

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

Installation

bash
npm install -g gotrain-cli

Commands

CommandDescription
gotrain stations [query]List/search stations
gotrain departures <station-id>Show departures for a station
gotrain alertsActive service alerts
gotrain fav <id>Toggle favorite station
gotrain favsList 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

bash
# 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