mikrotik-routeros-rsc

Creation, editing, and review of RouterOS scripts (.rsc) with focus on idempotency, security, and best practices. Use when you need to generate, adjust, or import .rsc files for MikroTik: (1) create new configurations via script, (2) edit existing scripts with safe corrections, (3) review risks and execution policies, (4) validate with import dry-run and error handling.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mikrotik-routeros-rsc" with this command: npx skills add alexandre-machado/ai-stuffs/alexandre-machado-ai-stuffs-mikrotik-routeros-rsc

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

  1. Define script objective and scope.
  2. Apply idempotent patterns (see References).
  3. Validate syntax and risks with the linter (scripts/lint_rsc.py).
  4. Test import with dry-run and on-error.
  5. Import in a controlled manner to production.

Essential practices

  • Prefer find where ... + conditionals before add/set.
  • Avoid broad policies in /system script add policy=....
  • Use :onerror and :jobname for robustness and single instance.
  • Never include destructive commands (system reset-configuration, etc.).
  • Parameterize and isolate scopes (:local vs :global).

Validation and testing

  • Lint: python scripts/lint_rsc.py path/to/script.rsc.
  • Safe import (RouterOS ≥ 7.16.x):
    • import test.rsc verbose=yes dry-run to find multiple errors without applying changes.
    • do { import test.rsc } on-error={ :put "Failure" } to capture error.
    • onerror e in={ import test.rsc } do={ :put "Failure - $e" } for detailed message.

References (use as needed)

  • Language and syntax: see references/LANGUAGE.md
  • .rsc export/import, dry-run and onerror: see references/RSC_GUIDE.md
  • Security and idempotency best practices: see references/SAFE_PRACTICES.md
  • Common examples and patterns: see references/EXAMPLES.md
  • Linter rules: see references/LINTER_RULES.md

Notes

  • Scripts should be consistent with RouterOS v7 (preferred) and compatible with v6 where possible.
  • Use print as-value, arrays, and where filters for robust queries.
  • For scheduled execution, use Scheduler with appropriate permissions.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

compliance-evidence-assembler

把审计所需证据整理成目录、清单和缺失项,便于后续评审。;use for compliance, evidence, audit workflows;do not use for 伪造证据, 替代正式审计结论.

Archived SourceRecently Updated
Security

skillguard-hardened

Security guard for OpenClaw skills, developed and maintained by rose北港(小红帽 / 猫猫帽帽). Audits installed or incoming skills with local rules plus Zenmux AI intent review, then recommends pass, warn, block, or quarantine.

Archived SourceRecently Updated
Security

api-contract-auditor

审查 API 文档、示例和字段定义是否一致,输出 breaking change 风险。;use for api, contract, audit workflows;do not use for 直接改线上接口, 替代契约测试平台.

Archived SourceRecently Updated
Security

ai-workflow-red-team-lite

对 AI 自动化流程做轻量红队演练,聚焦误用路径、边界失败和数据泄露风险。;use for red-team, ai, workflow workflows;do not use for 输出可直接滥用的攻击脚本, 帮助破坏系统.

Archived SourceRecently Updated