
Mikrotik Routeros Rsc
If you're managing MikroTik routers and need to generate or fix RouterOS scripts without breaking production, this is built for that. It pushes idempotent patterns, wraps everything in error handling with onerror and dry-run validation, and includes a Python linter to catch risky commands before you import. The references cover language syntax, safe practices, and real examples. Honestly, the main value is in the guardrails: it won't let you write scripts that silently fail or add duplicate config on every run. Works best with RouterOS 7, but stays compatible with 6 where it can.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 5
- skills.sh installs
- 332
- GitHub stars
- 6
- last updated
- Jun 3, 2026
Install
$ npx -y skills add alexandre-machado/ai-stuffs --skill mikrotik-routeros-rsc --agent claude-codeInstalls into .claude/skills of the current project.
Files
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).
Validation and testing
Sponsors
Details
- Repository
- github.com/alexandre-machado/ai-stuffs
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026