regex-builder
Skill130 starsChanged 12 months agoMITView on GitHub
Use when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- 0xelitesystem/claude-skills-collectiontheir own version, first seen Jun 11, 2026
- TeamDzX/myllm-skillstheir own version, first seen Jun 5, 2026
- kakarot-oncloud/claude-dev-skillstheir own version, first seen Apr 19, 2026
- ilhankilic/yaratai-skilltheir own version, first seen Apr 14, 2026
- mergisi/awesome-openclaw-agentstheir own version, first seen Mar 14, 2026
- agentsdance/agentskillstheir own version, first seen Jan 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- mergisi/awesome-openclaw-agents★ 4ksame name
- agentsdance/agentskills★ 3same name
- TeamDzX/myllm-skills★ 2same name
- ilhankilic/yaratai-skill★ 1same name
- 0xelitesystem/claude-skills-collection★ 0same name
- kakarot-oncloud/claude-dev-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- branch-cleanerSkill
- bug-triageSkill
- ci-fixSkill
- commit-workSkill
- create-prSkill
- dependency-upgraderSkill
- docs-syncSkill
- focused-tddSkill
- manage-product-ideasSkill
- pr-visual-explainerSkill
- rebase-assistantSkill
- release-notesSkill
- review-architecture-scopeSkill
- review-backend-changeSkill
- review-frontend-changeSkill
- review-security-privacySkill
- review-test-coverageSkill
- vps-checkupSkill
- write-ui-copySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Do not present a pattern as portable across JavaScript, Python, Java, .NET, RE2, PCRE2, or a command-line tool unless the common subset was …
- Distinctive: line 16
Start with the smallest literal structure that distinguishes the samples.
- Distinctive: line 17
Add anchors, boundaries, separators, Unicode handling, and capture groups only when required by the contract.
- Very specific: line 18
Test with the actual target engine.
- Distinctive: line 19
Verify every supplied match and non-match.
- Distinctive: line 20
Check shell and string-literal escaping separately from regex syntax.
- Distinctive: line 21
Avoid nested ambiguous quantifiers and unbounded backtracking on untrusted input.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Regex builder
Define the contract
Confirm the target engine and version, flags, multiline behavior, input boundary, capture or replacement needs, and representative matches and non-matches. Infer these from the consuming code when possible; ask only for information the repository cannot answer.
Do not present a pattern as portable across JavaScript, Python, Java, .NET, RE2, PCRE2, or a command-line tool unless the common subset was verified.
Build and test
- Start with the smallest literal structure that distinguishes the samples.
- Add anchors, boundaries, separators, Unicode handling, and capture groups only when required by the contract.
- Test with the actual target engine. Use
rgonly for ripgrep's default engine orrg -Pfor its PCRE2 mode; use the application runtime for other flavors. - Verify every supplied match and non-match. Add boundary cases for empty input, adjacent matches, newlines, and Unicode. For untrusted input, include a long adversarial near-miss or non-match, measure its runtime, and require an application input bound when the engine has no timeout.
- Check shell and string-literal escaping separately from regex syntax.
- Avoid nested ambiguous quantifiers and unbounded backtracking on untrusted input. Prefer a simpler parser when the grammar or safety requirements exceed a readable regex.
Deliver
Provide:
- the regex and flags;
- its target engine and required version or features;
- a capture-group or replacement map when used;
- one runnable verification in the target runtime with expected results;
- known limitations and any backtracking or input-size risk.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

