routeros-fundamentals
掌握 MikroTik RouterOS v7 設定與腳本
手動設定 MikroTik 路由器會在重複性任務上浪費數小時。此技能為 AI 代理程式提供 RouterOS v7 知識,使其能夠第一次就寫出正確的 CLI 命令、REST API 呼叫和自動化腳本。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「routeros-fundamentals」。 如何在 RouterOS v7 上新增靜態路由至 192.168.10.0/24 透過閘道 10.0.0.1?
預期結果:
- 使用 /ip route add 命令:
- /ip route add dst-address=192.168.10.0/24 gateway=10.0.0.1
- 與 Linux 的主要差異:RouterOS 使用 dst-address 而非 -net/-host,且語法為 dst-address=<網路> gateway=<閘道 IP>。
正在使用「routeros-fundamentals」。 撰寫 REST API 呼叫以列出 RouterOS 上的所有防火牆規則
預期結果:
- GET /rest/ip/firewall/rule
- 標頭:Content-Type: application/json, Accept: application/json, Authorization: Bearer <token>
- 驗證需要透過 /rest/login 或使用 SSL 憑證產生權杖。
安全審計
安全Security scan detected 1898 potential issues, but all are false positives. The skill consists entirely of markdown documentation files containing RouterOS v7 reference material. The static scanner misidentified markdown code fences (backticks around code blocks) as Ruby shell execution, API documentation examples as code implementation, and common networking terminology as command-and-control indicators. No executable code, no credential exfiltration, no network access, and no malicious patterns exist. This is legitimate educational documentation for MikroTik RouterOS administrators.
風險因素
⚙️ 外部命令 (14)
🌐 網路存取 (11)
品質評分
你能建構什麼
網路管理員自動化路由器設定
管理多台 MikroTik 設備的 IT 管理員使用此技能產生 RouterOS CLI 命令和 REST API 腳本,以便跨基礎設施進行批量設定變更。
DevOps 工程師建立網路自動化
DevOps 團隊使用此技能將 RouterOS 自動化整合到其基礎設施即程式碼 pipeline 中,以產生正確的 API 呼叫和腳本用於路由器配置。
開發人員疑難排解 RouterOS 錯誤
建構與 MikroTik 路由器整合的開發人員使用此技能來了解為什麼 Linux 命令在 RouterOS 上失敗,以及如何調整其程式碼以適應 RouterOS v7。
試試這些提示
如何在 RouterOS v7 上設定 [功能]?寫出用於 [特定任務] 的 CLI 命令。
產生對 RouterOS v7 上 [端點] 的 REST API 呼叫,用於 [操作]。包含驗證標頭。
使用指令碼語言語法撰寫一個執行 [自動化任務描述] 的 RouterOS 指令碼。
為什麼 Linux 命令 [命令] 在 RouterOS 上會失敗?RouterOS 的等效命令是什麼?
最佳實務
- 務必明確指定 RouterOS v7 以避免建議 v6 命令語法
- 對於生產自動化使用 REST API 搭配 SSL 憑證而非純 HTTP
- 首先在實驗室環境中測試 CLI 命令,因為 RouterOS 的語法與 Linux 不同
避免
- 不要假設 Linux 命令在 RouterOS 上可以運作而不檢查語法差異
- 不要將 RouterOS v6 文件用於 v7 設定,因為命令結構不同
- 在使用 REST API 的指令碼中不要略過驗證設定