mikrotik-routeros-rsc
Installation
SKILL.md
Skill: RouterOS .rsc
This skill guides the creation, editing, and review of RouterOS (.rsc) scripts with safe and idempotent patterns, plus validation before import.
Quick workflow
- Define script objective and scope.
- Apply idempotent patterns (see References).
- Validate syntax and risks with the linter (scripts/lint_rsc.py).
- Test import with
dry-runandon-error. - Import in a controlled manner to production.
Essential practices
- Prefer
find where ...+ conditionals beforeadd/set. - Avoid broad policies in
/system script add policy=.... - Use
:onerrorand:jobnamefor robustness and single instance. - Never include destructive commands (
system reset-configuration, etc.). - Parameterize and isolate scopes (
:localvs:global).