New to Claude Skills? Learn how to install them →

mitsuhiko on GitHub

VOR AnachB

Free

Real-time public transport data for Austria.

Get this skill

Free · Opens the source repo

What VOR AnachB does

VOR AnachB is a skill designed to provide developers and designers with access to real-time public transport information across Austria. By leveraging the HAFAS API, this skill allows users to query for real-time departures, plan routes between various locations, and check for any service disruptions affecting trains, buses, trams, and metros. This can be particularly useful for applications that require integration with public transport systems or for developers looking to enhance user experience with accurate travel information.

The skill includes several scripts that serve specific purposes. The search.sh script enables users to find stations or stops by name, returning essential details such as station IDs and coordinates. The departures.sh script provides real-time departure information from a specified station, including details about delays and platform numbers. For users needing to plan a journey, the route.sh script facilitates trip planning between two locations, detailing departure and arrival times, duration, and the number of transfers required. Lastly, the disruptions.sh script allows users to check for current service disruptions, ensuring they have the latest information on travel conditions.

This skill is ideal for developers working on travel-related applications, transport management systems, or any project that requires up-to-date public transport information in Austria. By integrating VOR AnachB, users can enhance their applications with reliable transport data, improving the overall user experience. The skill is also suitable for designers looking to incorporate transport functionalities into their projects, providing a seamless way to access vital travel information.

When to use it

Use VOR AnachB when you need to provide users with real-time public transport information, route planning, or disruption alerts in Austria.

When not to use it

This skill may not be suitable for applications focused on transport outside of Austria or for those that do not require real-time data integration.

What you can build with it

Integrate Transport Data in Travel Apps

Developers can use VOR AnachB to provide real-time transport information in travel applications, enhancing user experience.

Monitor Service Disruptions

Use the disruptions feature to notify users of any service interruptions, ensuring they have the latest travel information.

Plan Routes for Commuters

Employ the route planning functionality to help users find the best travel routes between their starting point and destination.

How to install VOR AnachB

View source

1. Install with the skills CLI

npx skills add mitsuhiko/agent-stuff/anachb --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mitsuhiko

VOR AnachB - Austrian Public Transport API

Query Austrian public transport for real-time departures, route planning, and service disruptions using the HAFAS API.

Quick Reference

ScriptPurpose
search.shFind stations/stops by name
departures.shReal-time departures at a station
route.shPlan a trip between two locations
disruptions.shCurrent service disruptions

API: HAFAS (Hacon Fahrplan-Auskunfts-System)
Endpoint: https://vao.demo.hafas.de/gate


1. Search Stations/Stops

Find station IDs by name:

./search.sh "Stephansplatz"
./search.sh "Wien Hauptbahnhof"
./search.sh "Linz"
./search.sh "Salzburg Hbf"

Returns station names, IDs (extId), and coordinates.

Response fields:

  • name: Station name
  • extId: Station ID for use in other queries
  • type: S (Station), A (Address), P (POI)
  • coordinates: WGS84 coordinates (lon/lat in 1e-6 format)

2. Real-Time Departures

Get next departures from a station:

./departures.sh <station-id> [count]

# Examples:
./departures.sh 490132000        # Wien Stephansplatz, 10 departures
./departures.sh 490132000 20     # Wien Stephansplatz, 20 departures
./departures.sh 490060200        # Wien Hauptbahnhof
./departures.sh 444130000        # Linz Hbf
./departures.sh 455000100        # Salzburg Hbf

Response fields:

  • line: Line name (U1, S1, RJ, etc.)
  • direction: Final destination
  • departure: Scheduled departure time
  • delay: Delay in minutes (if any)
  • platform: Platform/track number

3. Route Planning

Plan a trip between two stations:

./route.sh <from-id> <to-id> [results]

# Examples:
./route.sh 490132000 490060200        # Stephansplatz → Hauptbahnhof
./route.sh 490132000 444130000 5      # Wien → Linz, 5 results
./route.sh "Graz Hbf" "Wien Hbf"      # Search by name (slower)

Response fields:

  • departure: Departure time
  • arrival: Arrival time
  • duration: Trip duration
  • changes: Number of transfers
  • legs: Array of trip segments with line info

4. Disruptions

Check current service disruptions:

./disruptions.sh [category]

# Examples:
./disruptions.sh            # All disruptions
./disruptions.sh TRAIN      # Train disruptions only
./disruptions.sh BUS        # Bus disruptions only

Common Station IDs

StationID
Wien Stephansplatz490132000
Wien Hauptbahnhof490134900
Wien Westbahnhof490024300
Wien Praterstern490056100
Wien Karlsplatz490024600
Wien Schwedenplatz490119500
Linz Hbf444116400
Salzburg Hbf455000200
Graz Hbf460086000
Innsbruck Hbf481070100
Klagenfurt Hbf492019500
St. Pölten Hbf431543300
Wiener Neustadt Hbf430521000
Krems a.d. Donau431046400

Tip: Always use ./search.sh to find the correct station ID.


Transport Types

CodeType
ICE/RJ/RJXHigh-speed trains
IC/ECInterCity/EuroCity
REX/RRegional Express/Regional
SS-Bahn (suburban rail)
UU-Bahn (Vienna metro)
STRTram/Straßenbahn
BUSBus
ASTDemand-responsive transport

API Details (for advanced usage)

The scripts use the HAFAS JSON API. For custom queries:

curl -s -X POST "https://vao.demo.hafas.de/gate" \
  -H "Content-Type: application/json" \
  -d '{
    "svcReqL": [{
      "req": { ... },
      "meth": "METHOD_NAME",
      "id": "1|1|"
    }],
    "client": {"id": "VAO", "v": "1", "type": "AND", "name": "nextgen"},
    "ver": "1.73",
    "lang": "de",
    "auth": {"aid": "nextgen", "type": "AID"}
  }'

Available methods:

  • LocMatch - Location/station search
  • StationBoard - Departures/arrivals
  • TripSearch - Route planning
  • HimSearch - Disruptions/service messages
  • JourneyDetails - Details of a specific journey

Tips

  1. Find station IDs first: Always use search.sh to find the correct station ID before querying departures or routes.

  2. Station vs Stop: Major stations have multiple platforms - the main station ID covers all platforms.

  3. Real-time data: Departures include real-time delays when available.

  4. Austria-wide: This API covers all Austrian public transport, not just Vienna.

  5. Cross-border: Some routes extend to neighboring countries (Germany, Czech Republic, etc.).

Frequently asked questions about VOR AnachB

Similar skills