{
  "schemaVersion": "1.0",
  "item": {
    "slug": "uk-trains",
    "name": "UK Trains",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Jabbslad/uk-trains",
    "canonicalUrl": "https://clawhub.ai/Jabbslad/uk-trains",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/uk-trains",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uk-trains",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/trains.py",
      "scripts/trains.sh"
    ],
    "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/uk-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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/uk-trains",
    "agentPageUrl": "https://openagent3.xyz/skills/uk-trains/agent",
    "manifestUrl": "https://openagent3.xyz/skills/uk-trains/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/uk-trains/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": "UK Trains",
        "body": "Query National Rail Darwin API for live train departures and arrivals."
      },
      {
        "title": "Setup",
        "body": "Requires free Darwin API token:\n\nRegister at https://realtime.nationalrail.co.uk/OpenLDBWSRegistration/\nSet NATIONAL_RAIL_TOKEN in environment (or configure in skills.entries.uk-trains.apiKey)"
      },
      {
        "title": "Commands",
        "body": "# Departures\n./scripts/trains.py departures PAD\n./scripts/trains.py departures PAD to OXF --rows 5\n\n# Arrivals  \n./scripts/trains.py arrivals MAN\n./scripts/trains.py arrivals MAN from EUS\n\n# Station search\n./scripts/trains.py search paddington\n./scripts/trains.py search kings"
      },
      {
        "title": "Station Codes",
        "body": "Use 3-letter CRS codes:\n\nPAD = London Paddington\nEUS = London Euston\nKGX = London Kings Cross\nVIC = London Victoria\nWAT = London Waterloo\nMAN = Manchester Piccadilly\nBHM = Birmingham New Street\nEDB = Edinburgh Waverley\nGLC = Glasgow Central\nBRI = Bristol Temple Meads\nLDS = Leeds\nLIV = Liverpool Lime Street\nRDG = Reading\nOXF = Oxford\nCBG = Cambridge"
      },
      {
        "title": "Response Format",
        "body": "JSON with:\n\nlocationName, crs - Station info\nmessages[] - Service alerts\ntrainServices[] - List of trains:\n\nstd/sta - Scheduled departure/arrival time\netd/eta - Expected time (\"On time\", \"Delayed\", or actual time)\nplatform - Platform number\noperator - Train operating company\ndestination[].name - Final destination\nisCancelled, cancelReason, delayReason - Disruption info"
      },
      {
        "title": "Message Template",
        "body": "Use this compact format for WhatsApp/chat responses:\n\n🚂 {Origin} → {Destination}\n\n*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}\n{status}\n\n*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}\n{status}"
      },
      {
        "title": "Elements",
        "body": "Header: 🚂 emoji + origin → destination\nTime: Bold, departure → arrival times\nPlatform: 📍 + number (or \"TBC\" if unknown)\nCoaches: 🚃 + space + number\nStatus:\n\n✅ On time\n⚠️ Delayed (exp {time})\n❌ Cancelled — {reason}\n🔄 Starts here"
      },
      {
        "title": "Example",
        "body": "🚂 Hemel Hempstead → Euston\n\n*20:18 → 20:55* │📍4 │ 🚃 4\n✅ On time\n\n*20:55 → 21:30* │📍4 │ 🚃 12\n✅ On time\n\n*21:11 → 21:41* │📍4 │ 🚃 8\n✅ On time"
      },
      {
        "title": "Getting Arrival Times",
        "body": "To show arrival times, make two API calls:\n\ndepartures {origin} to {dest} — get departure times + service IDs\narrivals {dest} from {origin} — get arrival times\n\nMatch services by the numeric prefix in serviceID (e.g., 4748110HEMLHMP_ matches 4748110EUSTON__)."
      },
      {
        "title": "Notes",
        "body": "Separate each service with a blank line\nOmit coaches if formation data unavailable\nFor delays, show expected time: ⚠️ Delayed (exp 20:35)"
      }
    ],
    "body": "UK Trains\n\nQuery National Rail Darwin API for live train departures and arrivals.\n\nSetup\n\nRequires free Darwin API token:\n\nRegister at https://realtime.nationalrail.co.uk/OpenLDBWSRegistration/\nSet NATIONAL_RAIL_TOKEN in environment (or configure in skills.entries.uk-trains.apiKey)\nCommands\n# Departures\n./scripts/trains.py departures PAD\n./scripts/trains.py departures PAD to OXF --rows 5\n\n# Arrivals  \n./scripts/trains.py arrivals MAN\n./scripts/trains.py arrivals MAN from EUS\n\n# Station search\n./scripts/trains.py search paddington\n./scripts/trains.py search kings\n\nStation Codes\n\nUse 3-letter CRS codes:\n\nPAD = London Paddington\nEUS = London Euston\nKGX = London Kings Cross\nVIC = London Victoria\nWAT = London Waterloo\nMAN = Manchester Piccadilly\nBHM = Birmingham New Street\nEDB = Edinburgh Waverley\nGLC = Glasgow Central\nBRI = Bristol Temple Meads\nLDS = Leeds\nLIV = Liverpool Lime Street\nRDG = Reading\nOXF = Oxford\nCBG = Cambridge\nResponse Format\n\nJSON with:\n\nlocationName, crs - Station info\nmessages[] - Service alerts\ntrainServices[] - List of trains:\nstd/sta - Scheduled departure/arrival time\netd/eta - Expected time (\"On time\", \"Delayed\", or actual time)\nplatform - Platform number\noperator - Train operating company\ndestination[].name - Final destination\nisCancelled, cancelReason, delayReason - Disruption info\nMessage Template\n\nUse this compact format for WhatsApp/chat responses:\n\n🚂 {Origin} → {Destination}\n\n*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}\n{status}\n\n*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}\n{status}\n\nElements\nHeader: 🚂 emoji + origin → destination\nTime: Bold, departure → arrival times\nPlatform: 📍 + number (or \"TBC\" if unknown)\nCoaches: 🚃 + space + number\nStatus:\n✅ On time\n⚠️ Delayed (exp {time})\n❌ Cancelled — {reason}\n🔄 Starts here\nExample\n🚂 Hemel Hempstead → Euston\n\n*20:18 → 20:55* │📍4 │ 🚃 4\n✅ On time\n\n*20:55 → 21:30* │📍4 │ 🚃 12\n✅ On time\n\n*21:11 → 21:41* │📍4 │ 🚃 8\n✅ On time\n\nGetting Arrival Times\n\nTo show arrival times, make two API calls:\n\ndepartures {origin} to {dest} — get departure times + service IDs\narrivals {dest} from {origin} — get arrival times\n\nMatch services by the numeric prefix in serviceID (e.g., 4748110HEMLHMP_ matches 4748110EUSTON__).\n\nNotes\nSeparate each service with a blank line\nOmit coaches if formation data unavailable\nFor delays, show expected time: ⚠️ Delayed (exp 20:35)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Jabbslad/uk-trains",
    "publisherUrl": "https://clawhub.ai/Jabbslad/uk-trains",
    "owner": "Jabbslad",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/uk-trains",
    "downloadUrl": "https://openagent3.xyz/downloads/uk-trains",
    "agentUrl": "https://openagent3.xyz/skills/uk-trains/agent",
    "manifestUrl": "https://openagent3.xyz/skills/uk-trains/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/uk-trains/agent.md"
  }
}