# Send NS Trains to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ns-trains",
    "name": "NS Trains",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/eggressive/ns-trains",
    "canonicalUrl": "https://clawhub.ai/eggressive/ns-trains",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ns-trains",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ns-trains",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SECURITY.md",
      "SKILL.md",
      "scripts/arrivals.mjs",
      "scripts/commute.mjs",
      "scripts/departures.mjs",
      "scripts/disruptions.mjs"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ns-trains"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ns-trains",
    "downloadUrl": "https://openagent3.xyz/downloads/ns-trains",
    "agentUrl": "https://openagent3.xyz/skills/ns-trains/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ns-trains/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ns-trains/agent.md"
  }
}
```
## Documentation

### NS Trains Skill

Check Dutch train schedules, departures, disruptions, and plan journeys using the official NS (Nederlandse Spoorwegen) API.

### 1. Get an NS subscription key

Go to NS API Portal
Create an account and subscribe to the Ns-App product (free tier available)
Copy your Primary Key

### 2. Set Environment Variables

export NS_SUBSCRIPTION_KEY="your-subscription-key-here"   # preferred
# Back-compat:
export NS_API_KEY="$NS_SUBSCRIPTION_KEY"                   # legacy name still supported

# Optional: Configure commute stations for quick shortcuts
export NS_HOME_STATION="Utrecht Centraal"
export NS_WORK_STATION="Amsterdam Zuid"

For security, prefer injecting these env vars via your runtime secret mechanism rather than committing them anywhere. Avoid printing or sharing your subscription key.

### 🚆 Commute shortcuts

node {baseDir}/scripts/commute.mjs --to-work   # Morning: Home → Work
node {baseDir}/scripts/commute.mjs --to-home   # Evening: Work → Home

### Plan any journey

node {baseDir}/scripts/journey.mjs --from "Utrecht Centraal" --to "Amsterdam Zuid"

### Check departures from a station

node {baseDir}/scripts/departures.mjs --station "Amsterdam Centraal"

### Check arrivals at a station

node {baseDir}/scripts/arrivals.mjs --station "Rotterdam Centraal"

### Search for stations

node {baseDir}/scripts/stations.mjs amsterdam
node {baseDir}/scripts/stations.mjs --search "den haag"

### Check current disruptions

node {baseDir}/scripts/disruptions.mjs
node {baseDir}/scripts/disruptions.mjs --from "Utrecht" --to "Amsterdam"

### Natural Language

Just ask:

"When is the next train to Amsterdam?"
"Check trains from Utrecht to Rotterdam"
"Any train disruptions today?"
"Plan my commute to work"
"What time does the train arrive?"

### Output

Returns journey options with:

Departure/arrival times
Real-time delays
Duration
Transfers
Platform numbers
Disruption warnings
Crowdedness forecast (🟢 low / 🟡 medium / 🔴 high)

### Commands Reference

CommandDescriptioncommute.mjs [work|home]Quick commute check (requires NS_HOME_STATION & NS_WORK_STATION)journey.mjs --from X --to YPlan a journey between any stationsdepartures.mjs --station XList departures from a stationarrivals.mjs --station XList arrivals at a stationstations.mjs [query]Search for station namesdisruptions.mjsCheck current disruptions

### API Endpoints Used

/reisinformatie-api/api/v3/trips - Journey planning
/reisinformatie-api/api/v2/arrivals - Arrivals
/reisinformatie-api/api/v2/departures - Departures
/reisinformatie-api/api/v3/disruptions - Disruptions
/reisinformatie-api/api/v2/stations - Station search

### Reference

NS API Portal: https://apiportal.ns.nl/
Documentation: https://apiportal.ns.nl/startersguide
Free tier: 5000 requests/day
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: eggressive
- Version: 1.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ns-trains)
- [Send to Agent page](https://openagent3.xyz/skills/ns-trains/agent)
- [JSON manifest](https://openagent3.xyz/skills/ns-trains/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ns-trains/agent.md)
- [Download page](https://openagent3.xyz/downloads/ns-trains)