Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

pp-irail

FreeNo executable scriptsNot checked

Every Belgian rail lookup the existing tools offer, plus transfer-risk, delay history and accessibility data that none of them have. Trigger phrases: `next…

mvanhornby mvanhorn★ 2,170 GitHub stars

About this skill

iRail — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the irail-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install irail --cli-only
    
  2. Verify: irail-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/travel/irail/cmd/irail-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

iRail exposes live NMBS/SNCB departures, journey planning and disruptions for free with no API key. This CLI adds what every other client throws away: it records observations locally so punctuality can answer whether a train is chronically late, joins the open stations dataset so transfer-risk knows the real minimum transfer time at each station, and surfaces station accessibility data the API never returns. The analysis commands emit typed JSON - delays as numbers, cancellations as booleans - while the raw endpoint commands pass iRail's payload through unchanged.

When to Use This CLI

Use this CLI for anything involving Belgian passenger rail: when the next train leaves, how to get from one station to another, whether a journey is disrupted, and how reliable a route has been over time. It is the right tool when you need typed, scriptable output rather than a web page, and the only tool that can answer historical punctuality or transfer-risk questions. It also serves accessibility questions about Belgian stations that the live API cannot answer.

Anti-triggers

Do not use this CLI for:

  • Do not use this CLI to buy tickets, reserve seats or check fares; iRail is a read-only timetable API with no booking surface.
  • Do not use it for rail networks outside Belgium; coverage is NMBS/SNCB plus a small number of cross-border stations.
  • Do not use it for live vehicle GPS positions; the API reports scheduled and delayed times, not continuous tracking.
  • Do not use it to query personal NMBS account data such as subscriptions or order history; that lives behind belgiantrain.be, which this CLI does not touch.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Live data joined with open datasets

  • transfer-risk — Tells you whether the transfers in a journey still hold once today's delays are applied.

    Reach for this instead of a plain route lookup whenever a journey has a transfer and delays are already in play.

    irail-pp-cli transfer-risk --from Oostende --to Hasselt --agent
    
  • disruptions route — Filters the national disruption feed down to the stations your journey actually passes through.

    Use this when the national list is too noisy to answer whether one specific trip is affected.

    irail-pp-cli disruptions route --from Ghent-Sint-Pieters --to Brussels-Central --agent
    
  • stations facilities — Reports step-free access, elevators, ramps, lockers, bike parking and ticket-desk hours for a station.

    Use this for accessibility and amenity questions that the live rail API simply cannot answer.

    irail-pp-cli stations facilities --station Ghent-Sint-Pieters --agent
    

Local state that compounds

  • punctuality — Shows how reliable a train or route has actually been, from delay observations recorded on your machine.

    Use this for questions about the past such as chronic lateness; it never calls the API.

    irail-pp-cli punctuality --from Ghent-Sint-Pieters --to Brussels-Central --board-type route --agent
    
  • observe — Records what the board says right now into local SQLite, building the history other commands read.

    Run this on a schedule; it is what makes punctuality and changes able to answer anything.

    irail-pp-cli observe --station Brussels-Central
    
  • changes — Reports new delays, cancellations and platform changes since the last time you looked.

    _Use this for de

Full SKILL.md on GitHub

Install pp-irail in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Bash

FAQ

What does the pp-irail skill do?

Every Belgian rail lookup the existing tools offer, plus transfer-risk, delay history and accessibility data that none of them have. Trigger phrases: `next train from Brussels-Central`, `when is my train to Ghent`, `is my train delayed`, `are there any rail disruptions in Belgium`, `plan a train journey from Leuven to Antwerp`, `will I make my transfer`, `use irail`, `run irail`.

How do I install the pp-irail skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the pp-irail skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare pp-irail with