subwayskill

TotalClaw 作者 nyluke v1.0.0

获取纽约地铁出发时间。当用户询问地铁列车时使用, 通勤时间、下一趟火车的时间或纽约市的交通时间表。涵盖所有 地铁线路(1-7、A-G、J、Z、L、N、Q、R、W、S、SIR)。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~nyluke-subwayskill
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~nyluke-subwayskill/file -o nyluke-subwayskill.md
## 概述(中文)

获取纽约地铁出发时间。当用户询问地铁列车时使用,
通勤时间、下一趟火车的时间或纽约市的交通时间表。涵盖所有
地铁线路(1-7、A-G、J、Z、L、N、Q、R、W、S、SIR)。

## 原文

# NYC Subway Departure Times

Run the `subwayskill` CLI to answer questions about NYC subway times.

## Commands

```bash
# All default stations (Clinton-Washington C, Bergen 2/3, 7 Av Q, Atlantic Av 4/5)
subwayskill

# Specific line and station (fuzzy match — lowercase, partial names work)
subwayskill C clinton-washington
subwayskill 2 bergen

# Filter direction: N (northbound/Manhattan) or S (southbound/Brooklyn)
subwayskill 2 bergen -d N

# Future time — automatically falls back to static schedule
subwayskill 2 bergen -t 19:00

# JSON output for structured data
subwayskill --json
subwayskill C clinton-washington --json

# Control time window (minutes)
subwayskill 2 bergen -w 60
```

## Interpreting output

- **realtime**: live data from MTA GTFS-RT feeds, shows relative times ("3 min") and absolute times
- **scheduled**: static GTFS schedule fallback, shows absolute times only — used when the requested time is beyond realtime coverage
- Directions show destination labels when available (e.g., "Manhattan-bound", "Coney Island-bound")

## Tips

- Station names are fuzzy-matched: "clinton" finds "Clinton-Washington Avs", "atlantic" finds "Atlantic Av-Barclays Ctr"
- If the user doesn't specify a station, run with no args to show all defaults
- If the user asks about a future time (e.g., "when's the 2 train at Bergen at 7pm?"), use `-t HH:MM`
- Use `--json` when you need to do further processing or comparisons
- An unknown station returns suggestions — relay those to the user