routeros-syntax-inspection

routeros-syntax-inspection is a skill for Claude Code, Codex from tikoci/routeros-skills. It costs 111 tokens per session (2,825 once invoked), scanned A, original, MIT.

A guide for checking MikroTik RouterOS commands and scripts with the device’s own parser. RouterOS is the operating system used by MikroTik network equipment.

In plain words
What is it for?
Use it to validate commands before running them, inspect highlighted script parts, request command completions or help, explore the command tree, parse scripts into RouterOS’s intermediate form, and build syntax-aware tools such as validators or language servers.
Why use it?
It helps catch syntax problems using the exact RouterOS version, installed packages, and current device state, which a general offline checker may not know. It also helps explain what parts of a script mean and what the parser can or cannot confirm.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate commands before running them, inspect highlighted script parts, request command completions or help, explore the command tree, parse scripts into RouterOS’s intermediate form, and build syntax-aware tools such as validators or language servers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tikoci/routeros-skills/routeros-syntax-inspection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tikoci/routeros-skills --skill routeros-syntax-inspection
Clone the repo
git clone --depth 1 https://github.com/tikoci/routeros-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for routeros-syntax-inspection

README.md
[![agentmods](https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-syntax-inspection/github.svg)](https://agentmods.dev/skills/tikoci/routeros-skills/routeros-syntax-inspection)
Your own site
<a href="https://agentmods.dev/skills/tikoci/routeros-skills/routeros-syntax-inspection"><img src="https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-syntax-inspection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for routeros-syntax-inspection

Your own site · 80×15
<a href="https://agentmods.dev/skills/tikoci/routeros-skills/routeros-syntax-inspection"><img src="https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-syntax-inspection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.02825
Opus 5 $0.00056 $0.01412
Sonnet 5 $0.00022 $0.00565
Haiku 4.5 $0.00011 $0.00282

Measured 11d ago against content hash 072a483f56eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

routeros-syntax-inspection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

routeros-syntax-inspection/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RouterOS Syntax Inspection

Overview

RouterOS exposes its own parser over the REST API: /console/inspect classifies every byte of console input (highlight), proposes continuations (completion), returns structured help (syntax), and enumerates the command tree (child); the :parse scripting command returns the intermediate language (IL) the engine actually executes. Together these are the ground truth for "is this valid RouterOS?" — version-exact, package-exact, and even runtime-state-exact, which no static grammar can be.

This skill is a probe-selection and wire-format guide: which surface answers which question, how to read each response, and which claims the responses do and do not support. It is grounded in full-corpus captures (913 scripts × multiple RouterOS versions) published in tikoci/lsp-routeros-ts — the docs/ references there carry the full evidence [^1].

"Parse RouterOS" is not one operation. Pick the probe for the question:

Question Probe What it cannot establish
Which span is a command, argument, variable, comment, live-state marker? request=highlight Nested structure; value validity; anything after the first hard error
Is the script structurally valid; what blocks/expressions result? :parse Source ranges; partial IL on error; path/argument split without schema data
What is valid at this cursor position? Enum values? request=completion Requiredness; exhaustiveness of candidate lists; runtime acceptance
What paths, commands, arguments exist on this device? request=child + request=syntax Enum values (those come from completion); required arguments
Which arguments are required? Execute-error probe (add with no args) Conditional requirements past the first discriminator

Details per surface: references/highlight.md, references/parseil.md, references/command-schema.md, references/validation.md.

Read the full file on GitHub · 188 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 188 lines · 111 tokens per session scan A 072a483f56eb

Subscribe to this mod's changes

routeros-syntax-inspection is a skill published in the GitHub repository tikoci/routeros-skills (59 stars, last pushed 1mo ago), licensed MIT. It adds 111 tokens to every session and 2,825 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.