From pm-engineering
Builds a regex from a plain-English description or explains an existing one with a token breakdown, test cases, and edge-case notes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pm-engineering:regex-builderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Produce correct, readable regular expressions — and explain them so the user actually understands what they're shipping.
Produce correct, readable regular expressions — and explain them so the user actually understands what they're shipping.
Infer the regex flavor (JavaScript/PCRE/Python/Go) from context; if unstated, default to one and say so (assumed — confirm). Always deliver a working pattern and tests even from a loose description. Never leave placeholders.
The regex in a code block, plus the flavor and any flags (e.g. i, g, m) and why.
A token-by-token table or list: each part of the pattern and what it matches.
| Token | Matches |
|---|---|
^ | start of string |
| … | … |
Edge cases, catastrophic-backtracking risks, anchoring, Unicode, and a simpler alternative if the regex is getting unwieldy (sometimes "don't use regex" is the right answer — say so).
\d, lookbehind, and named groups differ across enginesnpx claudepluginhub mohitagw15856/pm-claude-skills --plugin pm-engineeringDEPRECATED: No longer provides meaningful uplift over base model regex capabilities. Retained for reference only.
Detects and prevents catastrophic regex backtracking (ReDoS) by identifying vulnerable patterns with nested quantifiers or overlapping alternation and rewriting them with atomic groups or possessive quantifiers.
Detects regex patterns vulnerable to catastrophic backtracking (ReDoS) in user-input processing, configuration, or validation. Flags nested quantifiers and overlapping alternations, suggests fixes.