Logo Routeros Webfig

Routeros Webfig

Tổ chức
tikoci
routeros-webfig

Build RouterOS WebFig deep links for human review of connections, addresses, VLANs, bridges, firewall rules and CMR. Covers the hash-fragment URL scheme, object links, login redirects, browser token storage, and embedding the router UI in a native WebView. Use when linking a human to RouterOS views or integrating WebFig into an app. Grounded on CHR 7.24.5 and version-specific CMR checks; use routeros-centrs for machine configuration.

Tổng quan

Nhà phát hànhtikoci
Kho mãrouteros-skills
Tên kỹ năngrouteros-webfig
Sao
85
Bản fork
18
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 tikoci 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 Routeros Webfig 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/tikoci/routeros-skills/tree/main/routeros-webfig
  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/tikoci/routeros-skills.git /tmp/routeros-skills
mkdir -p .claude/skills
cp -r /tmp/routeros-skills/routeros-webfig .claude/skills/routeros-webfig
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 Routeros Webfig 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 Routeros Webfig 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 Routeros Webfig 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.

RouterOS WebFig links and embedded views

Use WebFig to let a human inspect the router's own UI alongside an agent's work. Give them a link plus what to check, for example:

Review the bridge's tagged and untagged VLAN membership: https://router.example/webfig/#Bridge.VLANs

WebFig can edit configuration too; opening its UI does not make an agent's changes approved. Use routeros-centrs for machine configuration and verification. This skill covers navigation and session behavior.1

Build a link

Use a router web origin reachable from the human's browser or embedded view, plus /webfig/ and a fragment:

text
https://router.example:8443/webfig/#IP:Firewall.Connections
https://router.example:8443/webfig/#IP:Addresses
https://router.example:8443/webfig/#Bridge.VLANs

Get the actual service and port from /ip/service through centrs. www serves HTTP (default 80); www-ssl serves HTTPS (default 443) and needs a valid certificate. A quickchr host-forward port belongs in the URL instead of the guest's service port. Prefer trusted HTTPS for deployed routers. A working REST endpoint proves that the corresponding web service is reachable from that client. Check the human's browser separately when the agent uses a tunnel or loopback address on another machine. On releases exposing /ip/service/webserver, webfig-plain and webfig-secure can disable WebFig independently of REST. Check /webfig/ and its rendered view too.2

The common grammar is #[group:]service[.container]. Names are case-sensitive. The served normalize() function replaces whitespace and dots in service/container names with underscores; it leaves the group literal. Thus IP → Firewall → Filter Rules is #IP:Firewall.Filter_Rules. CLI paths are not WebFig fragments: /ip/address maps to #IP:Addresses, not #ip:address.3

Frequently useful views

These views were opened in Chrome against x86 CHR 7.24.5 and 7.26beta1; see the validation record for versions and limits.

Human should reviewFragment
Connection tracking#IP:Firewall.Connections
IPv4 addresses#IP:Addresses
IPv4 routes#IP:Routes
Firewall filter rules#IP:Firewall.Filter_Rules
NAT rules#IP:Firewall.NAT
Interfaces#Interfaces.Interface
VLAN interfaces#Interfaces.VLAN
Bridges#Bridge.Bridge
Bridge ports#Bridge.Ports
Bridge VLAN membership#Bridge.VLANs
RouterOS users#System:Users

CMR was checked separately on 7.26beta1 with the optional cmr package:

Human should reviewFragment
Controller dashboard#CMR_Dashboard.Dashboard
Controller device inventory#CMR_Devices.Devices
Router's own CMR client settings/status#System:CMR_Client

#CMR and #CMR.Devices did not open CMR in that lab; they silently fell back to Interfaces. Use the UI's names rather than guessing from /cmr.

For other views, use the fragment catalog and discovery guidance. Menu availability depends on RouterOS version, installed packages, hardware (including CHR architecture: ARM64 7.24.5 did not advertise ups.jg in its menu manifest even with the ups package installed), user policy and skins. Copy the URL from the target UI when possible.3

Object links and fallback

Additional components can select an object: the UI generated #Interfaces.Interface.2 when opening the lab's ether1, and reopening that URL opened its form. MikroTik also documents #IP:Firewall.Filter_Rules.17 as an object URL. Copy the actual UI-generated fragment; suffixes are router-local object identifiers, not portable row numbers or interface names. Do not blindly append a REST .id such as *1.4

Unknown services or containers can silently fall back to another view while leaving the requested hash in the address bar. Verify the rendered title and selected tab, not just the URL or HTTP 200. Do not bulk-open generated fragments: the menu definitions include action containers as well as tables and forms, and some doit containers dispatch an operation when opened.3

Skins

For a simplified WebFig UI, use a skin, edited in #SkinDesigner when the user's permissions expose the designer and stored as skins/<name>.json on the router. Assign it to a user group (/user/group set <group> skin=<skin> via centrs). MikroTik also documents WinBox use of the group skin; WinBox was not tested here. A skin can hide or rename entries, add notes, and apply UI limits or read-only fields; it is not a security boundary — a user whose group policies allow an action can still reach it through the CLI or another tool.5

Login and human handoff

Send a plain URL with no password or token. On the tested 7.24.5 login flow:

  1. /webfig/#IP:Firewall.Connections without a token redirects to /#IP:Firewall.Connections.
  2. A failed password login returns to that login URL with the hash intact.
  3. Successful login returns to the requested WebFig view.
  4. A returning browser uses a token from the router origin's localStorage.

An expired password can instead open #System:Password.Change_Now; treat login and any required password change as human steps. Default configuration and other startup flows may also take precedence. This is tested version behavior, not a promise for every RouterOS release.6

Embed in an app

Load the router's URL as the top-level page of a native WebView, with JavaScript and web storage available. Let the human use WebFig's login form. Keep /, /webfig/, /assets/ and /jsproxy on the same router origin; fetching only the WebFig HTML into a local app page does not recreate its relative requests or storage context.7

The tested server sends X-Frame-Options: sameorigin for / and /webfig/. A cross-origin iframe in an app's web dashboard is therefore blocked; a native top-level WebView is a different integration. Validate the actual target engine and RouterOS release before promising an embedded experience.7

Choose whether the WebView's website data persists. WebFig stores its token in localStorage, whose storage area is scoped to the scheme/host/port and the browser's data store. This describes browser storage isolation, not a server-side restriction on where the token can authenticate. Changing HTTP to HTTPS, changing the port, or opening another browser profile can require a new login. Reusing one data store and origin shares the login; independent data stores allow separate sessions. For example, WKWebView exposes this through WKWebsiteDataStore.8

Keep privileged native bridges away from untrusted navigation, and validate TLS normally. WebFig's application encryption does not authenticate the HTML/JS delivered over plain HTTP. Use the auth/session reference when debugging login, token persistence, logout or /jsproxy; it is background for hosting the real UI, not a replacement configuration API.7

Related skills

  • routeros-centrs — validated machine operations and state verification.
  • routeros-cmr — CMR package/version requirements and configuration.
  • routeros-quickchr-cli — disposable CHR for reproducing UI behavior.

Footnotes

  1. MikroTik WebFig manual describes monitoring, configuration, troubleshooting and skins. ↩

  2. WebFig HTTPS setup, web server settings, and quickchr's port-forwarding documentation. ↩

  3. Validation record: 7.24.5 served bundle normalize, findContainer, selectService, updateContent and container.*.createPane; browser checks of valid and invalid fragments. ↩ ↩2 ↩3

  4. MikroTik's skin alias / URL example and live object-link check. ↩

  5. MikroTik WebFig skins ("Design Skin … is not a security tool"; group assignment via /user/group set), served-bundle loadSkin/saveSkin/normalizeSkin schema (validation), and live /user/group skin property read on CHR 7.24.5. ↩

  6. Validation record, including browser login, wrong-password and expired-password observations; bundle autoLogin, doAuth, logout, start and login-page openWebFig. ↩

  7. Validation record for headers and source inspection. Native WebView guidance is an integration recommendation; native engines were not tested. HTML origin rules explain origin isolation. ↩ ↩2 ↩3

  8. HTML Web Storage standard and Apple WKWebsiteDataStore, plus observed WebFig token behavior. ↩

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 Routeros Webfig làm được gì?

Build RouterOS WebFig deep links for human review of connections, addresses, VLANs, bridges, firewall rules and CMR. Covers the hash-fragment URL scheme, object links, login redirects, browser token storage, and embedding the router UI in a native WebView. Use when linking a human to RouterOS views or integrating WebFig into an app. Grounded on CHR 7.24.5 and version-specific CMR checks; use routeros-centrs for machine configuration.

Vì sao nên dùng Routeros Webfig 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. Routeros Webfig 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 Routeros Webfig trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/tikoci/routeros-skills/tree/main/routeros-webfig. 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 Routeros Webfig?

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 Routeros Webfig 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 Routeros Webfig 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 Routeros Webfig có miễn phí không?

Có. Kỹ năng này được tikoci 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 👇