Pular para o conteúdo
Kitbay
Enviar
SkillOficial

error-pattern-safety

MITAtualizado em 11 de nov. de 20265.616Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

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