agentsclimarketplace

Traininfo

Skill otsune/traininfo/traininfo

Get real-time train operation status in the Kanto area (関東) from Yahoo! Transit. Use this whenever the user asks about train delays, 運行情報, 遅延情報, or any specific route like 山手線, 銀座線, 中央線 — even casually like 'are trains running normally?'. Supports JR East, Tokyo Metro, Toei Subway, and all Kanto lines. Just pass route name(s) and optionally --url.From its SKILL.md

Install
npx -y skills add otsune/traininfo --skill traininfo

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.7 KB, 913 tokens by cl100k_base, as published. Nobody here has run it

Traininfo

関東の鉄道路線の運行情報をYahoo!路線情報から取得します。

Usage

traininfo 山手線 京浜東北線
traininfo --url 中央線 都営浅草線
python -m traininfo 銀座線   # if not on PATH

Agent execution (recommended): Always prefix with PYTHONIOENCODING=utf-8 to avoid cp932 encoding issues on Windows:

PYTHONIOENCODING=utf-8 python -m traininfo 山手線

If running via Bash tool or subprocess, set env={"PYTHONIOENCODING": "utf-8"} or use the prefix above.

Route name resolution

Short names are auto-resolved to full page names:

Short -> Full
銀座線 -> 東京メトロ銀座線
丸ノ内線 -> 東京メトロ丸ノ内線
日比谷線 -> 東京メトロ日比谷線
東西線 -> 東京メトロ東西線
千代田線 -> 東京メトロ千代田線
有楽町線 -> 東京メトロ有楽町線
半蔵門線 -> 東京メトロ半蔵門線
南北線 -> 東京メトロ南北線
副都心線 -> 東京メトロ副都心線
浅草線 -> 都営浅草線
三田線 -> 都営三田線
新宿線 -> 都営新宿線
大江戸線 -> 都営大江戸線
中央線 -> 中央線(快速)[東京~高尾]
中央総武線 -> 中央総武線(各停)
総武快速線 -> 総武線(快速)[東京~千葉]
京浜東北線 -> 京浜東北根岸線

Full names (e.g. 東京メトロ銀座線) also work directly. Routes are parsed dynamically from the page so any route listed on Yahoo works.

Output

Page statusCLI output
平常運転{name}は平常運転です。
列車遅延{name}は列車遅延があります。 + description
運転状況{name}は運転状況に変更があります。 + description
運転見合わせ{name}は運転見合わせしています。 + description

With --url, the detail page URL is appended for non-normal status.

Handling ambiguous queries

If the user does not specify a route name, ask which route(s) to check before running the command.

Error handling

  • Unsupported route -> "{name}は未対応の路線です。"
  • Network error -> stderr message; tell user Yahoo Transit is unreachable
  • Encoding issues -> set terminal to UTF-8 (chcp 65001 on Windows)

What ships with it: 4 files

7.9 KB alongside SKILL.md, 4 of them executable

Keep looking

Skills are one crate of 326,367. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.