svg-inspection

Inspect SVG maps for parser issues and validate with Python scripts.

7|4|Updated Feb 12, 2024
One-click install
npx skills add https://github.com/ll7/robot_sf_ll7 --skill svg-inspection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svg-inspection
Source: https://github.com/ll7/robot_sf_ll7/tree/main/.codex/skills/svg-inspection
Command: npx skills add https://github.com/ll7/robot_sf_ll7 --skill svg-inspection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rg, uv, and includes scripts (resource) components.

What problem does it solve?

This Skill helps identify and fix issues within SVG map files that can cause runtime errors or warnings in the Robot SF environment, ensuring map integrity and correct simulation behavior.

Core Features & Use Cases

  • Parser Warnings: Detects issues like route-only mode inconsistencies, zone index mismatches, and risky path commands.
  • Semantic Checks: Validates map elements for correct structure and adherence to expected formats.
  • Use Case: When a robot simulation behaves erratically or fails to load a map, this Skill can pinpoint the exact SVG element causing the problem, allowing for targeted fixes.

Quick Start

Run the semantic inspection helper on the map file named 'classic_01.svg'.

Frequently Asked Questions about svg-inspection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug SVG map parser issues in Robot SF simulations?

To debug SVG map parser issues in Robot SF, run semantic inspection scripts that detect route-only mode inconsistencies, zone index mismatches, and risky path commands. This validation pinpoints exact SVG elements causing erratic robot behavior for targeted fixes.

Why does my robot simulation fail to load an SVG map?

Robot simulation fails to load an SVG map due to structural issues like zone index mismatches or risky path commands. Semantic inspection identifies these parser-facing problems, validating map elements against expected formats to ensure correct simulation behavior.

What SVG path commands cause obstacle-crossing route validation errors?

Obstacle-crossing route validation errors are caused by risky SVG path commands and route-only mode inconsistencies. The inspection helper analyzes path geometry and map structure to detect routes intersecting obstacles incorrectly.

Do I need Python and rg installed to inspect SVG maps for parser warnings?

Yes, you need Python, rg, and uv installed to run the semantic inspection scripts. These dependencies execute the reusable Robot SF helpers that validate SVG map structure and detect parser warnings.

What is the best way to validate SVG map integrity before running robot simulations?

The best way to validate SVG map integrity is running semantic inspection scripts that check for zone index mismatches, risky path commands, and obstacle-crossing routes. This reusable Robot SF helper approach ensures map correctness before simulation execution.