一键导入
tfl-journey-disruption
Plan TfL journeys from start/end/time, resolve locations (prefer postcodes), and warn about disruptions; suggest alternatives when disrupted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Plan TfL journeys from start/end/time, resolve locations (prefer postcodes), and warn about disruptions; suggest alternatives when disrupted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | tfl-journey-disruption |
| description | Plan TfL journeys from start/end/time, resolve locations (prefer postcodes), and warn about disruptions; suggest alternatives when disrupted. |
| license | MIT |
| metadata | {"author":"Diego Petrucci","version":"1.1"} |
Use this skill when the user wants a TfL journey plan and needs disruption awareness.
Reference: https://tfl.gov.uk/info-for/open-data-users/api-documentation
Use scripts/tfl_journey_disruptions.py for a quick journey + disruption check.
Examples:
python3 scripts/tfl_journey_disruptions.py "940GZZLUSTD" "W1F 9LD" --depart-at 0900
python3 scripts/tfl_journey_disruptions.py --from "Stratford" --to "W1F 9LD" --arrive-by 1800
Notes:
parameterValue.TFL_APP_ID and TFL_APP_KEY in the environment.If any of these are missing or ambiguous, ask the user for clarification.
Prefer postcodes when available. Otherwise, resolve place names and stations:
{from} or {to}.StopPoint/Search/{query} and choose a hub or the relevant NaPTAN ID.Call:
/Journey/JourneyResults/{from}/to/{to}?date=YYYYMMDD&time=HHMM&timeIs=Depart|Arrive
Guidelines:
timeIs=Arrive; otherwise default to Depart.From the response, take the first 1-3 journeys. For each, capture:
Line IDs usually appear in leg.routeOptions[].lineIdentifier.id or leg.line.id. Ignore walking legs.
For each journey, collect unique line IDs and call:
/Line/{ids}/Status
Treat a route as disrupted if any line status is not "Good Service" or includes a reason. Summarize the severity and reason.
Optionally, check station-specific issues with /StopPoint/{id}/Disruption when relevant.