deutsche-bahn

deutsche-bahn is a skill for Claude Code, Codex from borski/travel-hacking-toolkit. It costs 54 tokens per session (1,729 once invoked), scanned A, original, MIT.

A guide for searching Deutsche Bahn trains, Germany’s national railway, and planning journeys in Germany and nearby countries. It supports long-distance ICE and IC trains, regional trains, and airport connections.

In plain words
What is it for?
Use it to find stations, plan rail journeys, check upcoming departures, and compare connections between German, neighboring-country, and airport stations.
Why use it?
It avoids the need to manually search railway websites when checking routes or departure times. It can resolve stations by name and search journeys for a chosen date and time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the travel-hacker plugin — 48 skills, 1 agent, 6 MCP servers shipped together

Good fit Use it to find stations, plan rail journeys, check upcoming departures, and compare connections between German, neighboring-country, and airport stations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/borski/travel-hacking-toolkit/deutsche-bahn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add borski/travel-hacking-toolkit --skill deutsche-bahn
Clone the repo
git clone --depth 1 https://github.com/borski/travel-hacking-toolkit

Made for: Claude Code, Codex.

Or install travel-hacker, the plugin that ships this one along with the rest of its 48 skills, 1 agent, 6 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deutsche-bahn

README.md
[![agentmods](https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/deutsche-bahn/github.svg)](https://agentmods.dev/skills/borski/travel-hacking-toolkit/deutsche-bahn)
Your own site
<a href="https://agentmods.dev/skills/borski/travel-hacking-toolkit/deutsche-bahn"><img src="https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/deutsche-bahn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deutsche-bahn

Your own site · 80×15
<a href="https://agentmods.dev/skills/borski/travel-hacking-toolkit/deutsche-bahn"><img src="https://agentmods.dev/badge/skills/borski/travel-hacking-toolkit/deutsche-bahn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01729
Opus 5 $0.00027 $0.00864
Sonnet 5 $0.00011 $0.00346
Haiku 4.5 $0.00005 $0.00173

Measured 9d ago against content hash 0f9ec9128a8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

deutsche-bahn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/search_trains.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/travel-hacking-toolkit/skills/deutsche-bahn/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deutsche Bahn Skill

Search German train schedules and plan journeys using the db-vendo-client library (open-source client for bahn.de APIs).

No API key required. No Docker. Just Node.js.

Source: db-vendo-client — wraps bahn.de's internal APIs.

Setup

cd skills/deutsche-bahn && npm install

Commands

Station Search

Find station IDs by name:

node skills/deutsche-bahn/scripts/search_trains.mjs stations "Frankfurt Flughafen"

Journey Planning

Search train routes between two stations (by ID or name):

# By station ID
node skills/deutsche-bahn/scripts/search_trains.mjs journeys 8070003 8000376 --date 2026-05-05 --time 10:00 --results 5

# By station name (auto-resolves to ID)
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Frankfurt Airport" "Germersheim" --date 2026-05-05
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Amsterdam Centraal" "Mannheim Hbf" --date 2026-05-15 --time 09:00
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Paris Est" "Mannheim" --date 2026-05-05

Departure Board

Check upcoming departures from any station:

node skills/deutsche-bahn/scripts/search_trains.mjs departures "Mannheim Hbf" --results 10
node skills/deutsche-bahn/scripts/search_trains.mjs departures 8070003 --date 2026-05-05 --time 14:00

Key Station IDs

German Airports

Airport Station ID Station Name Notes
Frankfurt (FRA) 8070003 Frankfurt(M) Flughafen Fernbf Long-distance (ICE/TGV)
Frankfurt (FRA) 8070004 Frankfurt(M) Flughafen Regionalbf Regional trains
Munich (MUC) 8004154 München Flughafen Terminal S-Bahn to München Hbf
Düsseldorf (DUS) 8001585 Düsseldorf Flughafen S-Bahn + RE
Cologne/Bonn (CGN) 8003330 Köln/Bonn Flughafen ICE station
Berlin (BER) 8089021 Flughafen BER Terminal 1-2 FEX + RE + S-Bahn
Stuttgart (STR) 8005773 Flughafen/Messe S-Bahn to Stuttgart Hbf
Hamburg (HAM) 8002549 Hamburg Airport S-Bahn

Read the full file on GitHub · 146 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 146 lines · 54 tokens per session scan A 0f9ec9128a8d

Subscribe to this mod's changes

deutsche-bahn is a skill published in the GitHub repository borski/travel-hacking-toolkit (654 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,729 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.