subwayskill for Openclaw

A CLI tool for fetching real-time NYC subway departure times and schedules directly within your AI agent environment.

nyluke
v1.0.0
Feb 17, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install subwayskill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install subwayskill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is subwayskill?

subwayskill is a specialized command-line utility designed for the NYC Transit system, allowing users to query departure times for all major subway lines including the 1-7, A-G, J, Z, L, N, Q, R, W, S, and SIR. By integrating this into your collection of Openclaw Skills, developers and AI agents can seamlessly provide commute updates, check schedules, and handle transit queries using live MTA GTFS-RT feeds or static schedule fallbacks. The tool is built to handle the complexities of the New York City subway system, providing both real-time arrival predictions and scheduled departure information.

This skill is particularly valuable for developers building local assistants or productivity tools that need to be aware of transit conditions. By leveraging Openclaw Skills, the agent can translate natural language queries like "when is the next Manhattan-bound C train" into precise CLI commands, returning accurate data from official transit feeds.

subwayskill Use Cases

  • Checking the next train arrival for specific lines like the 2, 3, or C trains during a daily commute.
  • Planning transit routes by filtering for Manhattan-bound (Northbound) or Brooklyn-bound (Southbound) directions.
  • Querying future departure times using static schedule fallbacks when real-time data is unavailable for a specific window.
  • Automating transit notifications or status reports within a terminal-based workflow for NYC-based users.

How subwayskill Works

  1. The user or AI agent triggers the subwayskill command with optional arguments for line, station, or direction.
  2. The tool performs a fuzzy match on the provided station name to locate the correct MTA station ID, allowing for partial or lowercase inputs.
  3. It fetches real-time data from MTA GTFS-RT feeds for immediate departures within the Openclaw Skills environment.
  4. If a future time is requested, the skill automatically falls back to static GTFS schedules to provide departure information.
  5. The tool identifies destination labels such as "Manhattan-bound" or "Coney Island-bound" to provide context to the arrival times.
  6. It outputs the information in a human-readable terminal format or structured JSON for programmatic processing.

subwayskill Setup

To add this to your collection of Openclaw Skills, install the binary using Go:

go install github.com/nyluke/subwayskill@latest

Ensure the subwayskill binary is in your system PATH so the AI agent can execute the tool via the Bash interface. No additional API keys are required as it utilizes public MTA data feeds.

subwayskill Data Schema & Taxonomy

The skill processes transit data and can output structured information. Below are the primary parameters used for queries:

Parameter Description Example
Line The specific subway line 2, A, G, L
Station Fuzzy-matched station name clinton, bergen, atlantic
Direction N (Northbound) or S (Southbound) -d N
Time Future time for static schedule lookup -t 19:00
Window Duration in minutes to look ahead -w 60
Format Output type for the agent to parse --json

subwayskill Advanced Features

  • Fuzzy station matching that handles partial names like "clinton" for "Clinton-Washington Avs" to simplify user input.
  • Intelligent fallback logic that switches from real-time GTFS-RT to static GTFS schedules for future time requests.
  • Directional filtering (N/S) to help agents provide specific platform information rather than a list of all arrivals.
  • Structured JSON output mode optimized for building complex transit automations and data comparisons within Openclaw Skills.
  • Built-in suggestions feature that returns valid station names if a fuzzy match is ambiguous or unknown.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*