# Send UK 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": "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": {
    "downloadUrl": "/downloads/uk-trains",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uk-trains",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/trains.py",
      "scripts/trains.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "uk-trains",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T08:00:40.471Z",
      "expiresAt": "2026-05-17T08:00:40.471Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uk-trains",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=uk-trains",
        "contentDisposition": "attachment; filename=\"uk-trains-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "uk-trains"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### UK Trains

Query National Rail Darwin API for live train departures and arrivals.

### Setup

Requires free Darwin API token:

Register at https://realtime.nationalrail.co.uk/OpenLDBWSRegistration/
Set NATIONAL_RAIL_TOKEN in environment (or configure in skills.entries.uk-trains.apiKey)

### Commands

# Departures
./scripts/trains.py departures PAD
./scripts/trains.py departures PAD to OXF --rows 5

# Arrivals  
./scripts/trains.py arrivals MAN
./scripts/trains.py arrivals MAN from EUS

# Station search
./scripts/trains.py search paddington
./scripts/trains.py search kings

### Station Codes

Use 3-letter CRS codes:

PAD = London Paddington
EUS = London Euston
KGX = London Kings Cross
VIC = London Victoria
WAT = London Waterloo
MAN = Manchester Piccadilly
BHM = Birmingham New Street
EDB = Edinburgh Waverley
GLC = Glasgow Central
BRI = Bristol Temple Meads
LDS = Leeds
LIV = Liverpool Lime Street
RDG = Reading
OXF = Oxford
CBG = Cambridge

### Response Format

JSON with:

locationName, crs - Station info
messages[] - Service alerts
trainServices[] - List of trains:

std/sta - Scheduled departure/arrival time
etd/eta - Expected time ("On time", "Delayed", or actual time)
platform - Platform number
operator - Train operating company
destination[].name - Final destination
isCancelled, cancelReason, delayReason - Disruption info

### Message Template

Use this compact format for WhatsApp/chat responses:

🚂 {Origin} → {Destination}

*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}
{status}

*{dep} → {arr}* │📍{platform} │ 🚃 {coaches}
{status}

### Elements

Header: 🚂 emoji + origin → destination
Time: Bold, departure → arrival times
Platform: 📍 + number (or "TBC" if unknown)
Coaches: 🚃 + space + number
Status:

✅ On time
⚠️ Delayed (exp {time})
❌ Cancelled — {reason}
🔄 Starts here

### Example

🚂 Hemel Hempstead → Euston

*20:18 → 20:55* │📍4 │ 🚃 4
✅ On time

*20:55 → 21:30* │📍4 │ 🚃 12
✅ On time

*21:11 → 21:41* │📍4 │ 🚃 8
✅ On time

### Getting Arrival Times

To show arrival times, make two API calls:

departures {origin} to {dest} — get departure times + service IDs
arrivals {dest} from {origin} — get arrival times

Match services by the numeric prefix in serviceID (e.g., 4748110HEMLHMP_ matches 4748110EUSTON__).

### Notes

Separate each service with a blank line
Omit coaches if formation data unavailable
For delays, show expected time: ⚠️ Delayed (exp 20:35)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Jabbslad
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T08:00:40.471Z
- Expires at: 2026-05-17T08:00:40.471Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/uk-trains)
- [Send to Agent page](https://openagent3.xyz/skills/uk-trains/agent)
- [JSON manifest](https://openagent3.xyz/skills/uk-trains/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/uk-trains/agent.md)
- [Download page](https://openagent3.xyz/downloads/uk-trains)