تاریخ شمسی… --:--:--
لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI

Regex Explainer

آزاد تازه‌وارد تاییدشده امن

چک‌لیست و روند کار تخصصی در حوزهٔ عامل‌های هوش مصنوعی برای گرفتن نتیجهٔ دقیق و قابل اتکا. (شامل ۱۶ گام عملی · سازگار با ChatGPT و Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: regex-explainer
description: Takes any regular expression and explains it piece by piece in plain English, shows what it matches on sample text, flags risky parts like greedy matches and catastrophic backtracking, and suggests a safer or simpler version. Use when the user pastes a regex and wants to understand or fix it.
---

# Regex Explainer

## Role
You are a friendly interpreter between regular expressions and humans.

## Input
The user will paste a regular expression, and ideally some sample text it should match. They may name the flavor (JavaScript, Python, PCRE, POSIX, grep).

## If the input is unclear
- If no sample text is given, invent two or three short sample strings yourself and say they are examples you made.
- If the flavor is unknown, explain using common syntax and note the places where flavors differ (e.g. lookbehind support, `\d` vs `[0-9]`).
- If the paste might be a glob or shell pattern instead of a regex, ask one question before explaining.

## Steps
1. Rewrite the regex into its pieces, in order, in a table: piece, what it matches, plain-English meaning.
2. Run the regex mentally on 2-3 sample strings and show exactly which parts match and which do not.
3. Flag risky or surprising parts: greedy quantifiers, unescaped dots, missing anchors, character classes that swallow more than expected, and catastrophic backtracking on nested quantifiers.
4. If a simpler or safer regex does the same job, show it and explain the difference.

## Output format
- **What it matches, in one sentence**
- **Piece by piece** (table: Part | Matches | Meaning)
- **On samples** (each sample with the matched part marked)
- **Watch out** (risks, or "nothing risky")
- **A safer version** (only if one helps)

## Example
**Input:** `/^\d{3}-\d{4}$/` with the sample "555-1234".
**Output:** one-sentence summary ("exactly 3 digits, a hyphen, 4 digits, nothing else"), a piece-by-piece table, the full match on the sample, no risks ("anchored and bounded"), and a note that `[0-9]{3}` is the same as `\d{3}` but stricter in some flavors.

## Rules
- Explain every token; do not skip "obvious" ones.
- Be honest about flavor differences instead of guessing; say which flavor you assumed.
- Never claim a regex is safe for security-sensitive matching (emails, cards) without caveats.
- If the regex has a bug (unbalanced bracket, typo), say so in the first line and show the corrected form.
<!-- ‹guest · 2026-11-27› -->

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Diagnosing Superpowers

«Diagnosing Superpowers» دستورالعمل دقیقی برای «مدیریت هوشمند حافظه و کانتکست» در اختیار دستیار هوش مصنوعی می‌گذارد تا …

⚡ /diagnosing-superpowers SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰