Skip to content
Kitbay
Submit

error-pattern-safety

MITUpdated on Nov 11, 20265,616GitHub stars

A maintainer skill with rules for regular expressions used to match errors in gh-aw's agentic engines.

What the skill teaches

A maintainer skill with rules for regular expressions used to match errors in gh-aw's agentic engines. It explains how a JavaScript pattern with the global flag that can match an empty string makes exec loop forever, lists patterns that must not be used, and shows safe alternatives and tests. It applies to the log parsing code in the gh-aw repository.

Capabilities

  • Spot regex patterns that can loop forever in JavaScript
  • Rewrite error patterns to avoid zero-width matches
  • Test error patterns for safety