detect-diagram-crossings
Installation
SKILL.md
Detect Diagram Crossings
Purpose
Provide a rigorous, multi-method approach to detecting edge crossings and overlaps in SVG flowchart diagrams. This skill combines mathematical geometric analysis with visual inspection to ensure diagrams have clean, crossing-free layouts.
When to Use
- Validating Diagram Layouts: After creating or modifying workflow diagrams
- Quality Assurance: Before committing diagram changes to ensure no crossings
- Debugging Visual Issues: When users report crossing/overlap problems
- Comparative Analysis: Testing multiple layout versions to find the best one
Detection Methods
Method 1: Parametric Line Intersection (Mathematical)
The primary detection method uses parametric line equations to mathematically determine if two line segments intersect.