routeros-scripting-guidelines
Skill3 starsChanged 8 days agoMITView on GitHub
Apply RouterOS v7 scripting language guidance when writing, reviewing, or diagnosing persisted .rsc files, script repository sources, scheduler, Netwatch, PPP or DHCP event bodies, imports, error handling, permissions, or external I/O. Use as a conditional language overlay; the primary workflow retains repository ownership and live-device authority.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- analyze-projectSkill
- api-contract-strategySkill
- architecture-patternsSkill
- close-changeSkill
- design-changeSkill
- development-standardsSkill
- docker-multiarch-buildSkill
- error-patternsSkill
- go-guidelinesSkill
- herdr-implementSkill
- implement-changeSkill
- logging-standardsSkill
- lua-guidelinesSkill
- organize-docsSkill
- output-stylesSkill
- plan-changeSkill
- powershell-guidelinesSkill
- python-guidelinesSkill
- review-changeSkill
- review-designSkill
- review-implementationSkill
- review-planSkill
- runtime-diagnosisSkill
- security-guardrailsSkill
- shell-guidelinesSkill
- skill-authoringSkill
- skill-minerSkill
- skills-routingSkill
- smart-commitSkill
- sops-age-guardrailsSkill
- sync-truthSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Read only the references needed for the current task:
- Distinctive: line 23
Keep secrets in the repository or runtime secret mechanism, and diagnose permission errors by caller, invocation form and policy sets first.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RouterOS Scripting Guidelines
Apply RouterOS language and execution semantics inside the active primary workflow. Verify syntax and version-specific behavior against the current MikroTik Scripting manual and the target version's actual execution context; repository examples show patterns and defer to the manual.
References
Read only the references needed for the current task:
- For declarations, scopes, variable names, values, arrays, substitutions, functions, and object selection, read language-and-values.md.
- For script repository, CLI/import, scheduler, Netwatch, PPP, DHCP, caller permissions, and background execution, read execution-contexts-and-permissions.md.
- For convergence, runtime errors, retries, imports, external I/O, logging, and validation, read convergence-and-external-io.md.
Working Method
- Identify the RouterOS version and exact execution context before choosing syntax, built-in variables, or permission assumptions.
- Separate expected absence or no-op state from a runtime failure, then make the caller-owned failure policy explicit.
- Validate with the narrowest safe oracle available, escalating from source inspection to import dry-run or live execution when the primary workflow authorizes it. Take the live-device apply path, backup and rollback policy from the primary workflow and repository owner.
- Keep secrets in the repository or runtime secret mechanism, and diagnose permission errors by caller, invocation form and policy sets first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

