← 返回 Skills 市场
shan8851

Rail CLI

作者 shan8851 · GitHub ↗ · v0.2.2 · MIT-0
cross-platform ✓ 安全检测通过
207
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install rail-cli
功能描述
UK National Rail CLI — live departures, arrivals, station search, destination filtering, batch station search from stdin, and lightweight field selection for...
安全使用建议
This skill appears to do what it says: run the 'rail' CLI and use your Darwin access token for live rail data. Before installing, verify the npm package and author (e.g., check the package page, readme, recent versions, and package contents) because npm packages run code on your machine. Keep the DARWIN_ACCESS_TOKEN private and only provide it to trusted packages; if you prefer, inspect the package source or run it in a sandbox/container before global install. The SKILL.md mentions an optional RAIL_API_URL (not flagged as required) — you can ignore that unless you need to point to a custom Huxley2 instance.
功能分析
Type: OpenClaw Skill Name: rail-cli Version: 0.2.2 The rail-cli skill is a legitimate utility for accessing UK National Rail data via the Darwin/Huxley2 API. It requires a standard API token (DARWIN_ACCESS_TOKEN) and installs via a public npm package (@shan8851/rail-cli). The instructions in SKILL.md are well-documented and aligned with the tool's stated purpose, with no evidence of malicious behavior, data exfiltration, or prompt injection attacks.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description, required binary ('rail'), and required env (DARWIN_ACCESS_TOKEN) match: the CLI queries National Rail Darwin for departures/arrivals and station search, so the token and binary are expected and proportionate.
Instruction Scope
SKILL.md instructs the agent to run the 'rail' CLI and use the Darwin token; it does not ask the agent to read unrelated files, secrets, or system state beyond recommending how to set the token. Behavior (JSON/text output, stdin modes) is narrowly scoped to the stated functionality.
Install Mechanism
Install is an npm package (@shan8851/rail-cli) that exposes the 'rail' binary. Using npm is an expected delivery mechanism for a CLI written in Node, but installing code from a public registry carries moderate risk—verify the package author, version, and contents before installing system-wide.
Credentials
Only DARWIN_ACCESS_TOKEN is required and is justified for departures/arrivals. The SKILL.md mentions an optional RAIL_API_URL override that is not listed as required in registry metadata (minor documentation inconsistency but not a security mismatch). No other unrelated credentials are requested.
Persistence & Privilege
The skill is not forced-always and does not request system-wide config changes or other skills' credentials. Default autonomous invocation is allowed (platform default) and is not combined with other concerning privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install rail-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /rail-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.2
Add OpenClaw metadata and credential requirements
v0.2.1
Publish from ~/.openclaw/skills as source of truth; keep OpenClaw metadata and updated agent-first search docs.
v0.2.0
- Adds support for batch station search via stdin with `rail search --stdin`. - Introduces the `--select` flag for lightweight field selection (e.g. CRS only, name only, or both). - Enhances agent-friendliness with explicit envelope structure for both success and error outputs. - Expands usage documentation and notes for agent integration and new search modes. - No core command syntax changes; existing departure and arrival queries remain unchanged.
v0.1.0
Initial release of rail-cli — UK National Rail CLI. - Provides live departures, arrivals, and station search for all GB National Rail stations. - Supports filtering by destination or origin, and returning calling points or limited results. - Offers both text and JSON output, with easy toggling and color management. - Requires a free Darwin access token for departures and arrivals; station search works without authentication. - Accepts both station names and CRS codes, and handles ambiguous station names with suggestions.
元数据
Slug rail-cli
版本 0.2.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Rail CLI 是什么?

UK National Rail CLI — live departures, arrivals, station search, destination filtering, batch station search from stdin, and lightweight field selection for... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。

如何安装 Rail CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install rail-cli」即可一键安装,无需额外配置。

Rail CLI 是免费的吗?

是的,Rail CLI 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Rail CLI 支持哪些平台?

Rail CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Rail CLI?

由 shan8851(@shan8851)开发并维护,当前版本 v0.2.2。

💬 留言讨论