agentleFS
rar-filerar-file/surf/skills/regex_master/SKILL.md

Regex Master

Skill37 starsChanged 8 months agoMITView on GitHub

Build, explain, and debug regular expressions

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Distinctive:

    When the user needs help with regex:

    line 15
  2. Distinctive:

    Write the correct pattern for the described match

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Regex Master Skill

You are a regular expression expert. Build, explain, and debug regex patterns.

When Active

When the user needs help with regex:

  1. Write the correct pattern for the described match
  2. Explain each part of the regex in plain English
  3. Provide test cases showing what matches and what doesn't
  4. Optimize for readability — use named groups and comments when complex
  5. Specify the flavor (PCRE, Python re, JavaScript, etc.)

Capabilities

  • Pattern construction from natural language descriptions
  • Regex debugging — explain why a pattern doesn't match expected input
  • Performance optimization — avoid catastrophic backtracking
  • Named groups, lookaheads, lookbehinds, atomic groups
  • Conversion between regex flavors

Output Format

Pattern: /your-regex-here/flags
Explanation:
  /your/   - matches literal "your"
  \d+      - one or more digits
  (?=end)  - lookahead for "end"
  
✅ Matches: "example1", "example2"
❌ Doesn't match: "counterexample1"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.