Skip to main content
skill CX Codex

anachb — Claude Code skill: Austrian public transport lookups

The anachb skill for Claude Code searches stops, shows live departures, plans routes and checks disruptions across Austrian public transport.

Apache-2.0 5 installs ★ 3,224 updated 2026-09-27

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mitsuhiko/agent-stuff --skill anachb -a claude-code
Open on GitHub

What anachb does

The skill wraps four shell scripts around the HAFAS endpoint at https://vao.demo.hafas.de/gate. search.sh takes a stop name and hands back the extId plus coordinates. departures.sh then lists what leaves next from that stop: line, final destination, scheduled time, platform and any delay.

route.sh connects two points and returns departure and arrival times, total duration, transfer count and the individual legs. disruptions.sh reports current service problems and can be narrowed to trains or to buses. Coverage is nationwide — regional buses and the Vienna metro included, with some trips running into Germany or the Czech Republic.

Station IDs are numeric, and route.sh is the only script that also accepts a name. That path is slower, since the name gets resolved first. Run ./search.sh "Linz" once and reuse the ID it returns.

What it helps with

  • look up a stop ID from a German station name
  • check how late the next tram is running
  • plan a Vienna to Linz trip with transfer counts
  • see which trains are disrupted right now
  • get station coordinates without leaving the terminal

Example prompts for the agent

  • Find the stop ID for Wien Hauptbahnhof and show the next departures.
  • Plan a route from Stephansplatz to Linz Hbf, give me 5 results.
  • Any train disruptions in Austria right now?

How to install anachb

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/anachb/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/anachb/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about anachb

How do I install anachb in Claude Code?

Run npx skills add mitsuhiko/agent-stuff --skill anachb -a claude-code. The skill file lands at ~/.claude/skills/anachb/SKILL.md.

What does anachb do?

It searches stops by name, returns live departures with delays, plans trips between two locations and reports current service disruptions, all through the HAFAS API.

Does anachb cover transport outside Vienna?

Yes, it works across Austria, from regional buses and S-Bahn lines to long-distance trains. Some routes continue into Germany or the Czech Republic.

Source text

SKILL.md · Apache-2.0
---
name: anachb
description: Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses, trams, metro (U-Bahn), or directions involving public transport in Austria.
---

# 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

| Script | Purpose |
|--------|---------|
| `search.sh` | Find stations/stops by name |
| `departures.sh` | Real-time departures at a station |
| `route.sh` | Plan a trip between two locations |
| `disruptions.sh` | Current service disruptions |

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

---

## 1. Search Stations/Stops

Find station IDs by name:

```bash
./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:

```bash
./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:

```bash
./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:

```bash
./disruptions.sh [category]

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

---

## Common Station IDs

| Station | ID |
|---------|-----|
| Wien Stephansplatz | 490132000 |
| Wien Hauptbahnhof | 490134900 |
| Wien Westbahnhof | 490024300 |
| Wien Praterstern | 490056100 |
| Wien Karlsplatz | 490024600 |
| Wien Schwedenplatz | 490119500 |
| Linz Hbf | 444116400 |
| Salzburg Hbf | 455000200 |
| Graz Hbf | 460086000 |
| Innsbruck Hbf | 481070100 |
| Klagenfurt Hbf | 492019500 |
| St. Pölten Hbf | 431543300 |
| Wiener Neustadt Hbf | 430521000 |
| Krems a.d. Donau | 431046400 |

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

---

## Transport Types

| Code | Type |
|------|------|
| ICE/RJ/RJX | High-speed trains |
| IC/EC | InterCity/EuroCity |
| REX/R | Regional Express/Regional |
| S | S-Bahn (suburban rail) |
| U | U-Bahn (Vienna metro) |
| STR | Tram/Straßenbahn |
| BUS | Bus |
| AST | Demand-responsive transport |

---

## API Details (for advanced usage)

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

```bash
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.).

© mitsuhiko · Apache-2.0 · mitsuhiko/agent-stuff

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set16

The whole set →
librarian librarian caches remote Git repositories locally and refreshes them when referenced again. Useful when an agent needs to inspect external source code. CX Codex +1 170installs sentry Connects your coding agent to the Sentry API to inspect production crashes, examine stack traces, check breadcrumbs, and query system logs. CX Codex +1 136installs native-web-search native-web-search — a skill that runs a fast model with built-in web search and returns a concise summary with full source URLs. Useful when you need current information while coding. CX Codex +1 134installs update-changelog update-changelog is a Claude Code skill that builds formatted CHANGELOG entries from commits between the latest release tag and the current version. CX Codex +1 130installs pi-share pi-share loads shared pi sessions and parses their conversation history. Use it to inspect messages, tool calls, or the human’s actions. CX Codex +1 125installs google-workspace Gives your agent access to Google Workspace services (Gmail, Drive, Docs, Calendar, Sheets and more) through local helper scripts. Use it to automate Google services directly from your IDE. CX Codex +1 108installs oebb-scotty oebb-scotty plans train journeys across Austria through ÖBB's HAFAS endpoint: station lookup, connections with changes, departure boards and disruption notices. CX Codex +1 3installs commit Keeps the agent on Conventional Commits for git commit, with staging limited to the files you name. CX Codex +1 1installs

Project sponsors

Companies that keep this analytics open