Logo Elron

Elron

Cộng đồng
joe-bell
elron

Look up Elron train times, fares and connections between Estonian (and cross-border Latvian) stations, see live delays and positions of running trains on a map, and check Ühiskaart farecard balances, remembering the user's home station and cards. Use when someone asks about trains in Estonia, Elron departures, the next or last train to or from a station, whether a train is late or where it is, which trains will pass through a station, ticket prices, or the balance on their Elron or Ühiskaart card.

Tổng quan

Nhà phát hànhjoe-bell
Kho mãskills
Tên kỹ năngelron
Sao
213
Bản fork
2
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được joe-bell công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Elron trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/joe-bell/skills/tree/main/skills/elron
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/joe-bell/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/elron .claude/skills/elron
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Elron trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Elron ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Elron với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Elron

Elron runs Estonia's passenger trains. Timetables, fares and farecard balances come from the public Ridango API at api.ridango.com; live running data comes from the feed behind the live map on elron.ee. Neither needs a login.

Use the bundled script rather than calling either source by hand. It resolves stop names, sends requests in the shape the API expects, remembers the user's settings and prints compact results. It needs Python 3.9+ and nothing else.

sh
python3 scripts/elron.py stops [QUERY]
python3 scripts/elron.py trips [FROM] TO [--date YYYY-MM-DD] [--all] [--connections]
python3 scripts/elron.py live [QUERY] [--map [PATH]] [--tiles] [--watch [SECONDS]]
python3 scripts/elron.py passing STATION
python3 scripts/elron.py balance [CARD_NUMBER]
python3 scripts/elron.py config [--home STOP] [--add-card N] [--remove-card N] [--clear]

Run it from this skill's directory, or pass the script's full path.

1. Home station and farecards

The skill ships with no station and no card. Learn them from the user, once.

  • Home station. When the user asks about a train without saying where from ("when's the next train to Tartu?"), run trips TO. If it reports that no home station is saved, ask which station they usually travel from, save it with config --home STOP, then answer. From then on trips TO starts there. If they name a different origin, pass both stops and leave the saved one alone unless they ask.
  • Farecards. When the user asks for their balance without giving a number, run balance. If no card is saved, ask for the number, save it with config --add-card N, then answer. balance with no argument checks every saved card. Use --remove-card when they ask you to forget one; it takes the full number or the last four characters, which is all the output shows.
  • config with no flags shows what's saved and where. Settings live in ~/.config/elron/config.json (or $ELRON_CONFIG), readable only by the user. Where the filesystem doesn't persist between conversations, as in a hosted chat's sandbox, keep the home station in the host's own memory as well and pass it explicitly.

Never write the user's station or card numbers into this skill's files. Installs are copied folders: anything stored here is lost on the next update and leaks if the install is shared. Don't repeat a card number back beyond what the answer needs.

2. Answering questions

Answer in a sentence or two, leading with what was asked. For "when's the next train to Tartu?":

The next one leaves at 16:21 and gets in at 18:20. After that: 17:37 and 19:02.

  • Add a train's live status when it's already on its way ("it's 3 minutes late"). Add the fare, bikes or express only when the user asks about them.
  • Relay a notice when the script shows one. It already leaves out notices that name only stations off the user's stretch, such as a change of train further down the line.
  • After saving a station or card, say so in a few words. Give the file's path only if asked, and don't describe the script, its sources or its output.
  • Stop names match case- and accent-insensitively ("polva" finds "Põlva"), and a unique partial name works too; "Riga" finds Riia. An ambiguous or unknown name lists the candidates; pick one or ask. stops QUERY helps when unsure what a station is called.
  • Today vs another day. With no --date, the script uses today in Europe/Tallinn and hides trains that have already left, saying how many it hid. --all shows the whole day; --date picks another (convert "tomorrow" or "Saturday" to a date first, in Estonian time).
  • "Next train" or "last train": run trips and read the first or last row. Rows are trains the user can still catch, allowing for a late train's delay.
  • What a row shows: departure, arrival and journey time, then tags: the single-ticket fare in euros, bikes ok when bikes are allowed, express, Elron's notices, and live: for a train that is on its way right now.
  • Changes of train. trips lists direct trains first. When none are left it adds journeys with one change automatically; --connections adds them anyway. Each says where and when to change.
  • Is my train late? Where is it? For today, trips lists trains that have left but not yet reached the user's stop under Already on the way, with their live status, allowing for delays. live lists every running train with its delay, last stop, speed and coordinates; filter it with a line or stop name (live Tartu).
  • What goes through a station? Only when the user asks what will pass through or just went through, stopping or not ("what's the next train through Kehra?", "what was that train that didn't stop?"), run passing STATION. "Next train" questions stay with trips, which lists trains that stop. passing places each running train on its line from its live position and speed, and says whether it stops there.

All times are Estonian local time; say so only if the user may be elsewhere. If no journey turns up even with one change, say there's no Elron train for that trip, not that there's no way to get there.

3. Live map

live --map also writes a self-contained HTML map of the running trains: dots over an embedded outline of Estonia and its neighbours, coloured green (on time), orange (late) and red (5+ minutes late). It prints the file's path; the file goes to the system temp folder unless you pass one. The page makes no network requests, and its own security policy forbids them, so it works offline and in sandboxed previews such as Claude's artifacts, which block every outside request. If the host can show HTML to the user, show that file; otherwise give the path or open it in their browser.

--tiles draws the trains over OpenFreeMap street tiles instead. Use it only for a page the user opens in their own browser: a sandboxed preview can't load the tiles, so there it falls back to the plain map. HTML shown inside Claude must make no outside requests.

Elron's own map can't be embedded: elron.ee forbids framing. A page can't poll the feed either, because it sends no CORS headers. For a map that follows the trains, run live --map --watch in the background on the user's own machine. It prints the map's path straight away, rewrites the file every 15 seconds and the page reloads itself (with --tiles, keeping the user's pan and zoom); stop it when they're done. In a hosted chat, run live --map again when they ask for an update.

4. Limits

Live data covers only trains running right now, so passing can't see a train that hasn't set off yet. Its times are rough estimates from distance and current speed; give them as "about". A train whose stopping pattern can't be confirmed shows neither "stops" nor "doesn't stop". A train that hasn't set off has no delay forecast, so call it scheduled rather than promising it's on time; "running to schedule" is Elron's own status. If elron.ee can't be reached, the script says so and still lists the timetable. Fares are the full single-ticket price: discounts, period tickets and first class aren't covered.

5. If a request fails

"could not reach api.ridango.com", or "live running data unavailable", in a sandboxed host (claude.ai, ChatGPT, a cloud agent) almost always means the sandbox blocks the domain. Tell the user to allow api.ridango.com and elron.ee in that environment's network settings, and don't retry in a loop. A farecard Elron doesn't recognise is reported per card; ask the user to check the number.

For changing this skill, see maintenance.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Elron làm được gì?

Look up Elron train times, fares and connections between Estonian (and cross-border Latvian) stations, see live delays and positions of running trains on a map, and check Ühiskaart farecard balances, remembering the user's home station and cards. Use when someone asks about trains in Estonia, Elron departures, the next or last train to or from a station, whether a train is late or where it is, which trains will pass through a station, ticket prices, or the balance on their Elron or Ühiskaart card.

Vì sao nên dùng Elron trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Elron là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Elron trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/joe-bell/skills/tree/main/skills/elron. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Elron?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Elron với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Elron với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Elron có miễn phí không?

Có. Kỹ năng này được joe-bell phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇