← 返回 Skills 市场
eggressive

NS Trains

作者 eggressive · GitHub ↗ · v1.1.0
cross-platform ✓ 安全检测通过
1884
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ns-trains
功能描述
Check Dutch train schedules, departures, disruptions, and plan journeys using the NS API. Perfect for daily commute checks.
安全使用建议
This skill appears to be what it says: it queries the official NS API and only needs your NS subscription key. Before installing, consider: (1) Keep NS_SUBSCRIPTION_KEY secret — inject it via your runtime secret manager rather than committing it. (2) The included ns-api.mjs enforces HTTPS and an allowlist (gateway.apiportal.ns.nl) and sets the Ocp-Apim-Subscription-Key header — you can review that file yourself (it's included) to confirm no other hosts are contacted. (3) Ensure your environment has a compatible Node version (modern Node provides global fetch). (4) Because the code runs locally, only grant the subscription key if you trust this skill source; if you obtain the key elsewhere (or rotate it), revoke it from the NS API portal if you suspect exposure. Overall the package is internally consistent and minimal for its purpose.
功能分析
Type: OpenClaw Skill Name: ns-trains Version: 1.1.0 This skill is classified as benign. The code is well-structured and clearly aligned with its stated purpose of checking Dutch train schedules via the NS API. A critical security control is implemented in `scripts/ns-api.mjs`, which enforces an HTTPS-only connection and an explicit allowlist for the NS API host (`gateway.apiportal.ns.nl`), preventing arbitrary network egress. The `SKILL.md` instructions are straightforward and do not contain any prompt injection attempts. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation. Environment variables are handled appropriately for API key management and user-defined commute stations.
能力评估
Purpose & Capability
Name/description match the actual behavior: all scripts query NS endpoints (journeys, departures, arrivals, disruptions, stations). The only required binary is node and the only required secret is NS_SUBSCRIPTION_KEY — both are appropriate for calling the NS API.
Instruction Scope
SKILL.md instructs setting NS_SUBSCRIPTION_KEY and running the included node scripts. The scripts only read env vars (subscription key, optional commute stations), call NS API endpoints, and print results. They do not read unrelated files, leak data to external hosts, or execute arbitrary shell commands.
Install Mechanism
There is no install spec (instruction-only), but the skill includes runnable JS files. No external downloads or package installs are performed by the skill. Note: scripts rely on Node's built-in fetch (works on modern Node versions); the SKILL.md only requires 'node' but does not specify a minimum Node version.
Credentials
Only NS_SUBSCRIPTION_KEY (and backward-compatible NS_API_KEY) are required, plus optional NS_HOME_STATION / NS_WORK_STATION for convenience. These variables are appropriate and minimal for the stated API interactions.
Persistence & Privilege
Skill does not request persistent/system-wide privileges, does not set always:true, and does not modify other skills or system configuration. Autonomous invocation (model can call it) is the platform default and is not excessive here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ns-trains
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ns-trains 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Security hardening (HTTPS + allowlist via nsFetch), add SECURITY.md, add ns-api.mjs, improve departures to resolve station names -> codes, env var back-compat NS_API_KEY->NS_SUBSCRIPTION_KEY
v1.0.0
Initial release of ns-trains - Check Dutch train schedules, departures, arrivals, and disruptions using the official NS API. - Command-line scripts for common tasks: plan journeys, check commute departures, search stations, and monitor disruptions. - Supports real-time data: delays, platform info, and crowdedness forecasts. - Custom commute shortcuts via environment variables. - Compatible with natural language queries (e.g., "When is the next train to Amsterdam?"). - Comprehensive setup and usage instructions included.
元数据
Slug ns-trains
版本 1.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

NS Trains 是什么?

Check Dutch train schedules, departures, disruptions, and plan journeys using the NS API. Perfect for daily commute checks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1884 次。

如何安装 NS Trains?

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

NS Trains 是免费的吗?

是的,NS Trains 完全免费(开源免费),可自由下载、安装和使用。

NS Trains 支持哪些平台?

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

谁开发了 NS Trains?

由 eggressive(@eggressive)开发并维护,当前版本 v1.1.0。

💬 留言讨论