What problem does it solve?
This Skill provides critical guidelines to prevent infinite loop bugs in AI agent regex patterns, ensuring stable and reliable automation. It helps developers write robust error pattern matching, avoiding system hangs and ensuring continuous operation.
Core Features & Use Cases
- Safe Regex Guidelines: Learn to construct regex patterns that avoid zero-width matches, a common cause of infinite loops in JavaScript.
- Dangerous & Safe Examples: See clear examples of regex patterns to avoid and recommended safe alternatives.
- Validation Tests & Mechanisms: Understand built-in safety checks and testing procedures to verify pattern safety.
- Use Case: Developers building or extending AI agent engines can use this guide to write robust error pattern matching, avoiding system hangs and ensuring continuous operation.
Quick Start
Consult the error-pattern-safety skill to understand how to write regex that avoids zero-width matches and infinite loops in JavaScript.