Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build a regular expression from a plain-English description, or explain an existing one. Use when asked to write a regex, match/validate/extract a pattern, or understand what a regex does. Produces the regex, a token-by-token breakdown, passing and failing test cases, and notes on flavor/edge cases.
.claude/skills/mohitagw15856-regex-builder/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-23 | ✓→✗ | ▼ Worse | 232% | 0% |
| case-21 | ✓→✓ | = Same ✓ | 40% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 187% | 0% |
| case-01 | ✗→✗ | = Same ✗ | -38% | 0% |
| case-02 | ✗→✗ | = Same ✗ | -13% | 0% |
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.
re, RE2, grep -E…) — anchors, lookbehind, and Unicode behaviour differ enough to break portability silently.Detect which from the input.
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 engines| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 35,169 | 17,046 | -52% | 1 | 1 | 0% | 5,102 | 3,182 | -38% | 0 | 0 | — |
case-02 | fail→fail | 18,098 | 17,418 | -4% | 1 | 1 | 0% | 3,723 | 3,257 | -13% | 0 | 0 | — |
case-03 | fail→fail | 20,754 | 23,348 | +12% | 1 | 1 | 0% | 3,198 | 3,257 | +2% | 0 | 0 | — |
case-04 | fail→fail | 18,253 | 17,202 | -6% | 1 | 1 | 0% | 3,048 | 3,430 | +13% | 0 | 0 | — |
case-05 | fail→fail | 19,715 | 21,199 | +8% | 1 | 1 | 0% | 3,146 | 4,172 | +33% | 0 | 0 | — |
case-06 | fail→fail | 19,846 | 18,212 | -8% | 1 | 1 | 0% | 3,007 | 3,280 | +9% | 0 | 0 | — |
case-07 | fail→fail | 36,898 | 25,659 | -30% | 1 | 1 | 0% | 6,627 | 4,942 | -25% | 0 | 0 | — |
case-08 | fail→fail | 19,122 | 24,127 | +26% | 1 | 1 | 0% | 3,044 | 3,767 | +24% | 0 | 0 | — |
case-09 | fail→fail | 17,857 | 17,533 | -2% | 1 | 1 | 0% | 2,442 | 2,979 | +22% | 0 | 0 | — |
case-10 | fail→fail | 32,046 | 23,437 | -27% | 1 | 1 | 0% | 4,088 | 3,738 | -9% | 0 | 0 | — |
case-11 | fail→fail | 15,453 | 23,253 | +50% | 1 | 1 | 0% | 3,046 | 4,297 | +41% | 0 | 0 | — |
case-12 | fail→fail | 19,287 | 21,636 | +12% | 1 | 1 | 0% | 3,167 | 4,331 | +37% | 0 | 0 | — |
case-13 | fail→fail | 12,526 | 17,466 | +39% | 1 | 1 | 0% | 2,563 | 3,208 | +25% | 0 | 0 | — |
case-14 | fail→fail | 38,452 | 33,066 | -14% | 1 | 1 | 0% | 5,960 | 4,612 | -23% | 0 | 0 | — |
case-15 | fail→fail | 12,970 | 18,885 | +46% | 1 | 1 | 0% | 2,171 | 3,397 | +56% | 0 | 0 | — |
case-16 | fail→fail | 23,956 | 23,401 | -2% | 1 | 1 | 0% | 2,814 | 3,409 | +21% | 0 | 0 | — |
case-17 | fail→fail | 21,462 | 16,673 | -22% | 1 | 1 | 0% | 2,624 | 2,740 | +4% | 0 | 0 | — |
case-18 | fail→fail | 22,400 | 20,077 | -10% | 1 | 1 | 0% | 3,510 | 3,373 | -4% | 0 | 0 | — |
case-19 | fail→fail | 16,341 | 18,408 | +13% | 1 | 1 | 0% | 1,881 | 2,573 | +37% | 0 | 0 | — |
case-20 | fail→fail | 31,896 | 19,374 | -39% | 1 | 1 | 0% | 4,251 | 3,536 | -17% | 0 | 0 | — |
case-21 | pass→pass | 11,623 | 19,783 | +70% | 1 | 1 | 0% | 2,217 | 3,098 | +40% | 0 | 0 | — |
case-22 | pass→pass | 10,424 | 16,079 | +54% | 1 | 1 | 0% | 770 | 2,207 | +187% | 0 | 0 | — |
case-23 | pass→fail | 8,812 | 12,695 | +44% | 1 | 1 | 0% | 834 | 2,767 | +232% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of -4 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Other measured skills in the registry, with their headline benchmark lift.