Effect Regex

Community

Automate regex design, testing, and optimization.

AuthorPaulJPhilp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers quickly design, test, optimize, and explain regex patterns using a deterministic, AST-based approach. It reduces debugging time, increases correctness across multiple dialects, and automates repetitive regex tasks.

Core Features & Use Cases

  • Pattern Building: Generate robust patterns from natural language descriptions with multi-dialect support (JS, RE2, PCRE).
  • Pattern Testing: Validate patterns against positive/negative test cases with timeout protection.
  • Pattern Optimization: Apply 4 AST transformation passes to reduce complexity and improve performance.
  • Pattern Explanation: Produce human-readable explanations that help non-technical stakeholders understand regex logic.
  • CLI Integration: Parse CLI command structures and create semantic capture maps for tooling and parsers.
  • AI-assisted Generation: Generate AI-driven patterns from examples with optional Claude integration.
  • Dialect Conversion: Convert patterns between JavaScript, RE2, and PCRE dialects.

Quick Start

Ask Claude to create a regex for validating email addresses, then test and refine the pattern in the same session:

  • Example prompt: "Create a regex to validate email addresses and test it against these examples: user@example.com, user@domain, user@domain.co.uk"

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Effect Regex
Download link: https://github.com/PaulJPhilp/effect-regex/archive/main.zip#effect-regex

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository