error-pattern-safety
OfficialSafeguard AI regex, prevent infinite loops.
Authorgithubnext
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: error-pattern-safety Download link: https://github.com/githubnext/gh-aw/archive/main.zip#error-pattern-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.