{
  "schemaVersion": "1.0",
  "item": {
    "slug": "trein",
    "name": "Trein",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Joehoel/trein",
    "canonicalUrl": "https://clawhub.ai/Joehoel/trein",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/trein",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trein",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-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/trein"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/trein",
    "agentPageUrl": "https://openagent3.xyz/skills/trein/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trein/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trein/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "trein - Dutch Railways CLI",
        "body": "A CLI for the NS (Dutch Railways) API with real-time departures, trip planning, disruptions, and station search."
      },
      {
        "title": "Install",
        "body": "npm (recommended):\n\nnpm i -g trein\n\nOr download a standalone binary from GitHub Releases."
      },
      {
        "title": "Setup",
        "body": "Get an API key from https://apiportal.ns.nl/ and set it:\n\nexport NS_API_KEY=\"your-api-key\"\n\nOr create ~/.config/trein/trein.config.json:\n\n{ \"apiKey\": \"your-api-key\" }"
      },
      {
        "title": "Departures",
        "body": "trein departures \"Amsterdam Centraal\"\ntrein d amsterdam\ntrein d amsterdam --json  # structured output"
      },
      {
        "title": "Trip Planning",
        "body": "trein trip \"Utrecht\" \"Den Haag Centraal\"\ntrein t utrecht denhaag --json"
      },
      {
        "title": "Disruptions",
        "body": "trein disruptions\ntrein disruptions --json"
      },
      {
        "title": "Station Search",
        "body": "trein stations rotterdam\ntrein s rotterdam --json"
      },
      {
        "title": "Aliases (shortcuts)",
        "body": "trein alias set home \"Amsterdam Centraal\"\ntrein alias set work \"Rotterdam Centraal\"\ntrein alias list\ntrein d home  # uses alias"
      },
      {
        "title": "Tips",
        "body": "Use --json flag for all commands to get structured output for parsing\nStation names support fuzzy matching (e.g., \"adam\" -> \"Amsterdam Centraal\")\nAliases are stored in the config file and can be used in place of station names"
      }
    ],
    "body": "trein - Dutch Railways CLI\n\nA CLI for the NS (Dutch Railways) API with real-time departures, trip planning, disruptions, and station search.\n\nInstall\n\nnpm (recommended):\n\nnpm i -g trein\n\n\nOr download a standalone binary from GitHub Releases.\n\nSetup\n\nGet an API key from https://apiportal.ns.nl/ and set it:\n\nexport NS_API_KEY=\"your-api-key\"\n\n\nOr create ~/.config/trein/trein.config.json:\n\n{ \"apiKey\": \"your-api-key\" }\n\nCommands\nDepartures\ntrein departures \"Amsterdam Centraal\"\ntrein d amsterdam\ntrein d amsterdam --json  # structured output\n\nTrip Planning\ntrein trip \"Utrecht\" \"Den Haag Centraal\"\ntrein t utrecht denhaag --json\n\nDisruptions\ntrein disruptions\ntrein disruptions --json\n\nStation Search\ntrein stations rotterdam\ntrein s rotterdam --json\n\nAliases (shortcuts)\ntrein alias set home \"Amsterdam Centraal\"\ntrein alias set work \"Rotterdam Centraal\"\ntrein alias list\ntrein d home  # uses alias\n\nTips\nUse --json flag for all commands to get structured output for parsing\nStation names support fuzzy matching (e.g., \"adam\" -> \"Amsterdam Centraal\")\nAliases are stored in the config file and can be used in place of station names"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Joehoel/trein",
    "publisherUrl": "https://clawhub.ai/Joehoel/trein",
    "owner": "Joehoel",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/trein",
    "downloadUrl": "https://openagent3.xyz/downloads/trein",
    "agentUrl": "https://openagent3.xyz/skills/trein/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trein/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trein/agent.md"
  }
}