Agent skill
trein
Query Dutch Railways (NS) for train departures, trip planning, disruptions, and station search via the trein CLI.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/trein-moltbot-skills
Metadata
Additional technical details for this skill
- clawdbot
-
{ "emoji": "\ud83d\ude86", "install": [ { "id": "npm", "bins": [ "trein" ], "kind": "node", "label": "Install trein (npm)", "package": "trein" }, { "id": "download-mac-arm", "os": [ "darwin" ], "url": "https://github.com/joelkuijper/trein/releases/latest/download/trein-darwin-arm64", "bins": [ "trein" ], "kind": "download", "label": "Download (macOS Apple Silicon)" }, { "id": "download-mac-x64", "os": [ "darwin" ], "url": "https://github.com/joelkuijper/trein/releases/latest/download/trein-darwin-x64", "bins": [ "trein" ], "kind": "download", "label": "Download (macOS Intel)" }, { "id": "download-linux", "os": [ "linux" ], "url": "https://github.com/joelkuijper/trein/releases/latest/download/trein-linux-x64", "bins": [ "trein" ], "kind": "download", "label": "Download (Linux x64)" } ], "requires": { "env": [ "NS_API_KEY" ], "bins": [ "trein" ] }, "primaryEnv": "NS_API_KEY" }
SKILL.md
trein - Dutch Railways CLI
A CLI for the NS (Dutch Railways) API with real-time departures, trip planning, disruptions, and station search.
Install
npm (recommended):
npm i -g trein
Or download a standalone binary from GitHub Releases.
Setup
Get an API key from https://apiportal.ns.nl/ and set it:
export NS_API_KEY="your-api-key"
Or create ~/.config/trein/trein.config.json:
{ "apiKey": "your-api-key" }
Commands
Departures
trein departures "Amsterdam Centraal"
trein d amsterdam
trein d amsterdam --json # structured output
Trip Planning
trein trip "Utrecht" "Den Haag Centraal"
trein t utrecht denhaag --json
Disruptions
trein disruptions
trein disruptions --json
Station Search
trein stations rotterdam
trein s rotterdam --json
Aliases (shortcuts)
trein alias set home "Amsterdam Centraal"
trein alias set work "Rotterdam Centraal"
trein alias list
trein d home # uses alias
Tips
- Use
--jsonflag for all commands to get structured output for parsing - Station names support fuzzy matching (e.g., "adam" -> "Amsterdam Centraal")
- Aliases are stored in the config file and can be used in place of station names
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?