Agent skill

Regex Builder

by mohitagw15856 in mohitagw15856/pm-claude-skills

Build a regular expression from a plain-English description, or explain an existing one.

MITAuto-check passedTesting & QA

Install Regex Builder

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill regex-builder -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills regex-builder --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/regex-builder .claude/skills/regex-builder && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
regex-builder
GitHub stars
1.4k
Token cost
~704 tokens
SKILL.md length
342 words
Files
1
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Build a regular expression from a plain-English description, or explain an existing one.

  • Asked to write a regex
  • SKILL.md covers Working from a brief, Required Inputs, Two modes and Output Structure, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Match/validate/extract a pattern

What it does

Regex Builder is an agent skill from mohitagw15856/pm-claude-skills. 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.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Failing and flaky tests and Plain language and style rules. The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked to write a regex
  • Match/validate/extract a pattern
  • Understand what a regex does

Example prompts

  • “/regex-builder”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Regex Builder loads about 704 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 342 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~704

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 342 words, ~704 tokens.

Download SKILL.mdSave it as .claude/skills/regex-builder/SKILL.md (or your agent's skills folder).
name
regex-builder
description
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.

Regex Builder & Explainer Skill

Produce correct, readable regular expressions — and explain them so the user actually understands what they're shipping.

Working from a brief

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.

Required Inputs

  • What should match and what should NOT — 3+ positive examples and, critically, 2+ near-miss negatives (the strings that look matchable but must be rejected). The negatives are where every regex bug lives.
  • The engine/flavor (JavaScript, PCRE, Python re, RE2, grep -E…) — anchors, lookbehind, and Unicode behaviour differ enough to break portability silently.
  • Where it runs — validation, extraction, or replacement changes how greedy the pattern should be.

Two modes

  • Build: the user describes what to match → produce the regex.
  • Explain: the user pastes a regex → break it down. Detect which from the input.

Output Structure

Pattern

The regex in a code block, plus the flavor and any flags (e.g. i, g, m) and why.

Breakdown

A token-by-token table or list: each part of the pattern and what it matches.

TokenMatches
^start of string
……
Test cases
  • ✅ Matches: 3–5 strings it should match
  • ❌ Rejects: 3–5 strings it should not match (include the tricky near-misses)
Notes

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).

Quality Checks

  • The pattern actually passes the listed "matches" and rejects the "rejects"
  • Flavor and flags are stated
  • The breakdown covers every token, not just the interesting ones
  • Edge cases / backtracking risks are flagged

Anti-Patterns

  • Do not give a regex with no test cases — always prove it
  • Do not ignore the flavor — \d, lookbehind, and named groups differ across engines
  • Do not produce an unreadable one-liner when a commented/verbose version or a non-regex approach is clearer
  • Do not silently assume anchoring — state whether it matches the whole string or a substring

Example Trigger Phrases

  • "Write a regex."
  • "Match/validate/extract a pattern."
  • "Understand what a regex does."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/regex-builder of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Regex Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Regex Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Regex Builder this skillmohitagw15856/pm-claude-skills1.4k—~704Automated safety check: PassMIT
Dx Devops Test Failures Analyzeforcedotcom/sf-skills1.1k—~1.4kAutomated safety check: PassApache-2.0
Tlaplusswingerman/engineer154—~1.8kAutomated safety check: PassMIT
QA Dopetrkindlmann/qa-skills170—~2.9kAutomated safety check: PassMIT
Geb Identification Strategyfranklee16/academic-research-skills2231 repos~1kAutomated safety check: PassNone
Regex DebuggerOneWave-AI/claude-skills336—~1.3kAutomated safety check: PassMIT

Similar skills

  • Dx Devops Test Failures Analyze

    forcedotcom/sf-skills

    Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix direction, and prioritized improvement…

    1.1k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Tlaplus

    swingerman/engineer

    A skill your agent uses to model-check real code or a design with TLA+ and TLC.

    154 GitHub stars~1.8k tokensUpdated 17 days ago
    Testing & QAAuto-check passed
  • QA Do

    petrkindlmann/qa-skills

    Routing skill of last resort. An agent skill from petrkindlmann/qa-skills.

    170 GitHub stars~2.9k tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Geb Identification Strategy

    franklee16/academic-research-skills

    A skill your agent uses when the analytical core of a Games and Economic Behavior (GEB) manuscript is the bottleneck — assumptions, theorem statements, proof exposition, and generality for a…

    223 GitHub starsUsed in 1 repo~1k tokens
    Testing & QAAuto-check passed
  • Regex Debugger

    OneWave-AI/claude-skills

    Debug regex patterns with visual breakdowns, plain English explanations, test case generation, and flavor conversion.

    336 GitHub stars~1.3k tokensUpdated 8 days ago
    Testing & QAAuto-check passed
  • Pgjev

    realZachi/pg-jev

    Install, configure, query and explain pgjev (the jev PostgreSQL extension that filters, ranks and classifies rows with plain-language conditions via TypeSafe's Jev model).

    1.1k GitHub stars~2.9k tokensUpdated 3 days ago
    Writing & ContentAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Questions about Regex Builder

What does Regex Builder do?

Build a regular expression from a plain-English description, or explain an existing one. Regex Builder is an agent skill from mohitagw15856/pm-claude-skills. Build a regular expression from a plain-English description, or explain an existing one.

When should I use Regex Builder?

Regex Builder fits situations like: asked to write a regex; match/validate/extract a pattern; understand what a regex does.

How do I install Regex Builder in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill regex-builder -a claude-code`. Or copy the skill folder (skills/regex-builder in mohitagw15856/pm-claude-skills) into .claude/skills/regex-builder in your project. Claude Code loads it when a task matches its description.

How do I install Regex Builder in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill regex-builder -a codex`. Or copy the skill folder (skills/regex-builder in mohitagw15856/pm-claude-skills) into .agents/skills/regex-builder in your project. Codex loads it when a task matches its description.

Can I use Regex Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill regex-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/regex-builder, .gemini/skills/regex-builder, .github/skills/regex-builder and .opencode/skills/regex-builder in your project.

What does Regex Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: Regex Builder is instructions for the agent only. Our summary lists: Python 3.

Does Regex Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Regex Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Regex Builder use?

Regex Builder is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Regex Builder use?

About 704 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Regex Builder?

Skills that share tags, products or a category with Regex Builder: Dx Devops Test Failures Analyze (forcedotcom/sf-skills, 1.1k stars), Tlaplus (swingerman/engineer, 154 stars), QA Do (petrkindlmann/qa-skills, 170 stars) and Geb Identification Strategy (franklee16/academic-research-skills, 223 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Regex Builder?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,434 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 9, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.