Tool v1.0.0

bahn

使用 bahn-cli 工具查询德国铁路列车班次,适用于查找德国车站之间的列车连接、查看发车时间或协助行程规划。支持使用如“Berlin Hbf”“München”“Hannover”等车站名称

ClawHub 更新于 2026-03-23 22 浏览
下载 SKILL

技能说明

使用 bahn-cli 工具查询德国铁路列车班次,适用于查找德国车站之间的列车连接、查看发车时间或协助行程规划。支持使用如“Berlin Hbf”“München”“Hannover”等车站名称

使用场景

Use bahn-cli to search Deutsche Bahn train connections between German stations for travel planning

查看英文原始说明

Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, or help with travel planning. Works with station names like "Berlin Hbf", "München", "Hannover".

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/bahn
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 7.1 kB · zip 4.4 kB
手动下载 zip · 4.4 kB
SKILL.md text/markdown
---
name: bahn
description: Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, or help with travel planning. Works with station names like "Berlin Hbf", "München", "Hannover".
---

# Deutsche Bahn CLI

Search train connections using the `bahn-cli` tool.

## Installation

The tool should be installed globally or in the workspace. If not installed:

```bash
cd ~/Code/bahn-cli && npm install
```

## Usage

Search train connections:

```bash
cd ~/Code/bahn-cli && node index.js search "<from>" "<to>" [options]
```

### Options

- `--date YYYY-MM-DD` - Departure date (default: today)
- `--time HH:MM` - Departure time (default: current time)
- `--results <number>` - Number of results to show (default: 5)

### Examples

Search connections from Hannover to Bonn:
```bash
cd ~/Code/bahn-cli && node index.js search "Hannover Hbf" "Bonn Hbf" --results 3
```

Search with specific date and time:
```bash
cd ~/Code/bahn-cli && node index.js search "Berlin" "München" --date 2026-02-05 --time 14:30
```

## Station Names

- Use common German station names
- "Hbf" means Hauptbahnhof (main station)
- Examples: "Berlin Hbf", "München Hbf", "Frankfurt(Main)Hbf", "Köln Hbf"
- Station names are case-insensitive

## Output

The tool shows:
- Departure and arrival times
- Platform numbers
- Duration
- Number of changes
- Intermediate stops for connections with changes
- Train numbers (ICE, IC, RE, etc.)

## Notes

- The CLI uses the db-vendo-client library
- Some station names in output may show "undefined" (cosmetic issue, doesn't affect functionality)
- Direct connections are listed first
- Times are in 24-hour format

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。