regex
Skill0 starsChanged 3 months agoMITView on GitHub
Build and explain regular expressions with a breakdown of what each part matches and misses. Use when creating, debugging, or optimizing regular expressions.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- AntheaLaffy/missing-semester-skills-dshtheir own version, first seen Aug 16, 2026
- AntheaLaffy/the-missing-semester-skillstheir own version, first seen Aug 16, 2026
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Pradnyeshp/Claude-Skills★ 2same name
- AntheaLaffy/the-missing-semester-skills★ 1same name
- AntheaLaffy/missing-semester-skills-dsh★ 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 repository134 other files it gives its agents.
- accessibility-engineerSkill
- accessibility-fixSkill
- ai-data-remediation-engineerSkill
- ai-engineerSkill
- ai-eval-suite-builderSkill
- android-developerSkill
- api-designSkill
- api-lifecycle-engineerSkill
- appsec-architectSkill
- audit-readinessSkill
- authenticationSkill
- autonomous-optimization-architectSkill
- backend-architectSkill
- backend-buildSkill
- blockchain-security-auditorSkill
- branching-strategySkill
- bug-explainerSkill
- changelog-writerSkill
- change-notesSkill
- ci-cd-pipeline-builderSkill
- ci-pipelinesSkill
- cloud-costSkill
- cloud-security-architectSkill
- cloud-securitySkill
- codebase-mapSkill
- codebase-onboarding-engineerSkill
- code-comment-writerSkill
- code-reviewerSkill
- code-reviewSkill
- code-translatorSkill
- commerce-platformSkill
- compliance-auditorSkill
- composioSkill
- cron-job-plannerSkill
- database-optimizerSkill
- database-schema-designerSkill
- databaseSkill
- data-engineerSkill
- data-pipeline-architectSkill
- data-pipelinesSkill
- debuggingSkill
- debugging-strategistSkill
- dependency-auditSkill
- dependency-upgrade-auditorSkill
- deployment-checklistSkill
- deploymentSkill
- developer-platformSkill
- devops-automatorSkill
- ecommerce-cms-architectSkill
- email-intelligence-engineerSkill
- embedded-firmware-engineerSkill
- environment-setup-guideSkill
- error-boundary-designerSkill
- error-handlingSkill
- evidence-collectorSkill
- filament-optimizerSkill
- finops-engineerSkill
- firmwareSkill
- frontend-buildSkill
- frontend-developerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Test against sample inputs (both expected matches and near-misses).
- Distinctive: line 55
When the user describes a pattern:
- Distinctive: line 56
Always provide the regex with appropriate flags
- Distinctive: line 63
Always break down the regex into labeled components:
- Distinctive: line 76
Always provide 3-5 test cases showing what the regex matches and doesn't match.
- Distinctive: line 79
Prefer concrete, actionable steps over vague advice — the user needs executable output.
- Distinctive: line 80
Ask for missing context only when it blocks a correct answer.
- Distinctive: line 81
Do not invent personal identities, third-party credits, or external source claims.
- Distinctive: line 92
NEVER weaken or skip a failing test to make a change land.
- Distinctive: line 93
NEVER swallow errors silently or leave unhandled rejections in production paths.
- Distinctive: line 94
NEVER introduce a breaking API change without a version bump and migration path.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Regex
Regular expressions fail on edge cases and catastrophic backtracking (ReDoS). Always specify the dialect (PCRE, JS, Python re), anchor boundary intent, and test positive matches against false positives.
Process
- Understand the matching requirement and target regex dialect.
- Build the pattern incrementally: character classes, anchors, quantifiers.
- Test against sample inputs (both expected matches and near-misses).
- Analyze quantifier safety to prevent catastrophic backtracking.
- Provide usage examples with proper flags and escaping.
Output Format
Regex Pattern
/your-pattern/flagsExplanation
| Component | Meaning |
^ | Start of string |
[a-z] | Lowercase letter |
+ | One or more times |
Test Cases
✅ Should match:
example1→ matchexample2→ match ❌ Should NOT match:invalid1→ no matchinvalid2→ no match
Usage Examples
JavaScript:
const regex = /pattern/flags;
const result = regex.test(string);
Python:
import re
result = re.match(r'pattern', string)
Instructions
When the user describes a pattern:
- Always provide the regex with appropriate flags
- Explain every component clearly
- Include both positive and negative test cases
- Provide code examples in the user's language of choice
- Warn about any performance considerations
- Offer a simpler alternative if the regex is complex
Regex Explanation Format
Always break down the regex into labeled components:
Pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Breakdown:
^ → Start of string
[a-zA-Z0-9._%+-]+ → One or more valid email chars
@ → Literal @ sign
[a-zA-Z0-9.-]+ → Domain name
\. → Literal dot (escaped)
[a-zA-Z]{2,} → TLD: 2 or more letters
$ → End of stringAlways provide 3-5 test cases showing what the regex matches and doesn't match.
Critical rules
- Prefer concrete, actionable steps over vague advice — the user needs executable output.
- Ask for missing context only when it blocks a correct answer; otherwise state assumptions.
- Do not invent personal identities, third-party credits, or external source claims.
Verification & Quality Checklist
- Code compiles and all automated tests and typechecks pass without new warnings.
- Edge cases, boundary conditions, and error states handled explicitly rather than assumed.
- No hardcoded secrets, credentials, or insecure defaults introduced.
- Changes are covered by a test that fails without them.
Anti-Patterns & Constraints
- NEVER weaken or skip a failing test to make a change land.
- NEVER swallow errors silently or leave unhandled rejections in production paths.
- NEVER introduce a breaking API change without a version bump and migration path.
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.

