Regex Safety Review

Review a regular expression that runs on untrusted input for catastrophic backtracking and other denial-of-service shapes. Identify the engine and whether it backtracks, spot nested quantifiers, overlapping alternations and unbounded repetition, measure the worst case with a long non-matching input instead of trusting a small test, and rewrite the pattern as a linear-time expression, an anchored one, or a parser. Use for "is this regex safe", "one request body hangs the service", "a regex pinned the CPU at 100 percent", or a ReDoS advisory in a dependency. Not for authoring a new pattern from scratch (code-scaffold), a broad input-validation review (security-review), a slow query (sql-performance), or a CPU profile of a running service (profiling).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 387438e7ab

Frequently asked questions

npx get-skill add greenblacked/regex-safety-review