Agent skill
db-bahn
Query Deutsche Bahn train connections and prices.
Install this agent skill to your Project
npx add-skill https://github.com/timkrase/clawdis-skills/tree/main/db-bahn
Metadata
Additional technical details for this skill
- clawdis
-
{ "emoji": "\ud83d\ude82", "install": [ { "id": "brew", "bins": [ "dbrest" ], "kind": "brew", "label": "Install dbrest (brew)", "formula": "timkrase/tap/dbrest" } ], "requires": { "bins": [ "dbrest" ] } }
SKILL.md
DB Bahn Skill 🚂
Query train connections and prices via the Deutsche Bahn API.
CLI: dbrest
Binary: dbrest (Homebrew: timkrase/tap/dbrest)
Find stations
dbrest locations "station name"
Output: Tab-separated list with ID, Name, Type.
Search connections
dbrest journeys --from <ID> --to <ID> [--departure ISO8601] [--results N]
Important: --from and --to require station IDs (IBNR), not names!
Workflow:
# 1. Find station IDs
dbrest locations "Köln Hbf" # → 8000207
dbrest locations "München Hbf" # → 8000261
# 2. Search journeys
dbrest journeys --from 8000207 --to 8000261 --results 5
With prices (JSON)
dbrest --json journeys --from 8000207 --to 8000261 --results 5
Prices are at journeys[].price.amount and journeys[].price.currency.
Live departures
dbrest departures --stop <ID> --results 10
Live arrivals
dbrest arrivals --stop <ID> --results 10
Notes
- Prices only for long-distance trains — S-Bahn/regional trains often have no price
- International stations (CH, AT, etc.) work ✅
- Global flags before command:
dbrest --json journeys ...
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
football
European football matches — upcoming games, results, and highlights for briefings.
decide
Decision helper — coin flip, dice roll, pick from options, Magic 8-Ball.
qmd
Search Tim's Obsidian vault with semantic and keyword search via qmd.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?