بنقرة واحدة
regex-builder
Builds, explains, and tests regular expressions with step-by-step breakdowns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Builds, explains, and tests regular expressions with step-by-step breakdowns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyzes project structure, module dependencies, imports, and entry points to generate architecture diagrams in Mermaid format
Analyzes ETL and data pipeline code for optimization opportunities across Python (Pandas, PySpark), Rust (polars, datafusion), SQL, and general pipeline descriptions
Validates environment variable configurations and config files (YAML, TOML, JSON, .env) for missing required variables, type mismatches, deprecated keys, naming convention violations, secret exposure risks, and invalid value ranges
Analyzes code for performance bottlenecks including N+1 queries, O(n^2) or worse algorithms, unnecessary allocations, sync I/O in async contexts, excessive cloning, missing caching opportunities, and large payload transfers. Supports Rust, Python, TypeScript, and Go.
Analyzes, improves, and restructures LLM prompts for clarity, efficiency, and reliability
Analyzes source code for common security vulnerabilities including SQL injection, XSS, command injection, hardcoded secrets, insecure deserialization, path traversal, and SSRF
| name | regex-builder |
| description | Builds, explains, and tests regular expressions with step-by-step breakdowns |
| version | 1.0.0 |
| author | go-on-team |
| tags | ["regex","regular-expression","text-processing","pattern-matching"] |
| min_go_on_version | 1.0.0 |
Helps construct regular expressions from natural-language descriptions, explains what an existing regex does in plain English, and tests patterns against sample text. Supports PCRE, ECMAScript, Rust regex crate, Python re module, and Go regexp syntax variants.
| Parameter | Type | Description |
|---|---|---|
description | string | Natural-language description (used when action=generate) |
pattern | string | Existing regex pattern (used when action=explain or action=test) |
test_strings | string[] | Optional: sample strings to test the pattern against |
engine | string | Regex engine: rust, python, javascript, pcre, go (default: rust) |
action | string | Action: generate, explain, test, optimize (default: generate) |
flags | string | Optional: regex flags (i, m, s, x, combined) |
{
"description": "Match a valid HTTP or HTTPS URL with optional path, query string, and fragment",
"engine": "rust",
"action": "generate",
"test_strings": [
"https://example.com/path?q=search#section",
"http://localhost:8080",
"ftp://invalid"
]
}
Example output (abbreviated):
// Generated pattern:
// ^https?://[\\w.-]+(?::\\d{1,5})?(?:/[\\w./-]*)*(?:\\?[\\w&=.-]*)?(?:#[\\w-]*)?$
// Breakdown:
// ^ ─ Start of string
// https? ─ Literal "http" + optional "s"
// :// ─ Literal "://"
// [\\w.-]+ ─ Domain name (word chars, dots, hyphens)
// (?::\\d{1,5})? ─ Optional port number
// (?:/[\\w./-]*)* ─ Optional path segments
// (?:\\?[\\w&=.-]*)? ─ Optional query string
// (?:#[\\w-]*)? ─ Optional fragment
// $ ─ End of string
// Test results:
// ✅ https://example.com/path?q=search#section — MATCH
// ✅ http://localhost:8080 — MATCH
// ❌ ftp://invalid — NO MATCH (expected: wrong protocol)