xiaohongshu
xiaohongshu
Expert regex pattern generation, optimization, testing, and explanation using deterministic AST-based construction. Use when user needs to create, test, optimize, or understand regex patterns, parse CLI commands, validate inputs, or build complex text matching patterns.
Full skill instructions
The Effect Regex skill provides expert assistance with regex pattern development using a deterministic, AST-based approach. It excels at creating maintainable, testable regex patterns with multi-dialect support (JavaScript, RE2, PCRE).
Use Effect Regex when the user needs to:
Build vetted patterns instantly from the standard library:
Tier 1 (CLI-focused):
quotedString - Single/double quoted strings with escape handlingkeyValue - Key-value pairs (key=value)pathSegment - Directory/file namesfilePathBasic - Unix/Windows file pathscsvList - Comma-separated valuesinteger - Signed integersTier 2 (Advanced):
uuidV4 - UUID version 4 formatsemverStrict - Semantic versioning (strict)Tier 3 (Utility):
ipv4 - IPv4 addressesipv6Compressed - IPv6 addresses (compressed format)float - Floating-point numbersisoDate - ISO 8601 dates (YYYY-MM-DD)isoDateTime - ISO 8601 date-timesCommand:
cd effect-regex/effect-regex
node dist/bin.cjs build-pattern <pattern-name>
Test patterns against positive and negative test cases with timeout protection:
cd effect-regex/effect-regex
node dist/bin.cjs test "<pattern>" test-cases.json
Test cases format:
{
"positive": ["match1", "match2"],
"negative": ["nomatch1", "nomatch2"]
}
Optimize patterns using 4 AST transformation passes:
cd effect-regex/effect-regex
node dist/bin.cjs optimize <pattern-name>
Returns before/after patterns with metrics (nodes reduced, reduction percentage).
Validate patterns for syntax errors and dialect compatibility:
cd effect-regex/effect-regex
node dist/bin.cjs lint "<pattern>"
Returns validation results with severity levels (error, warning, info).
Get human-readable explanations of pattern structure:
cd effect-regex/effect-regex
node dist/bin.cjs explain "<pattern>"
The CLI is pre-built in effect-regex/effect-regex/dist/bin.cjs. Always run commands from the effect-regex/effect-regex directory.
All commands output JSON for easy parsing:
{
"pattern": "/regex/pattern/",
"notes": ["any warnings or notes"],
"captureMap": {"groupName": 1}
}
node dist/bin.cjs build-pattern <name>node dist/bin.cjs explain "<pattern>"node dist/bin.cjs optimize <pattern-name>The MCP server provides 8 tools for AI-powered pattern development:
cd effect-regex/effect-regex
node dist/server.cjs
Available via MCP protocol for Claude Desktop, Cline, etc.
Import and use Effect-based TypeScript API:
import { RegexBuilder, emit } from "./core/builder.js"
import { optimize } from "./core/optimizer.js"
import { testRegex } from "./core/tester.js"
For detailed technical information, see:
Generate regex from CLI command specifications:
The MCP server includes propose_pattern tool that uses Anthropic Claude API:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience