← 返回 Skills 市场
evolinkai

Regex Assistant

作者 EvolinkAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
113
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-regex-assistant
功能描述
AI-powered regular expression generation, explanation, testing, debugging, and cross-language conversion. Generate regex from natural language, explain compl...
使用说明 (SKILL.md)

Regex Assistant

AI-powered regular expression generation, explanation, testing, debugging, and cross-language conversion from your terminal.

Powered by Evolink.ai

When to Use

  • User wants to generate a regex pattern from a plain language description
  • User asks to explain what a regex pattern does
  • User needs to test a regex against a file and find matches/edge cases
  • User has a regex that doesn't work and needs debugging
  • User needs to convert a regex between programming languages
  • User wants a quick reference for regex syntax

Quick Start

1. Set your EvoLink API key

export EVOLINK_API_KEY="your-key-here"

Get a free key: evolink.ai/signup

2. Generate a regex

bash scripts/regex.sh generate "match email addresses" --lang python

3. Explain a regex

bash scripts/regex.sh explain "(?\x3C=@)[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"

Capabilities

Local Commands (no API key needed)

Command Description
cheatsheet Regex syntax quick reference — characters, quantifiers, groups, flags, common patterns

AI Commands (require EVOLINK_API_KEY)

Command Description
generate "\x3Cdesc>" [--lang \x3Clang>] AI generate regex from natural language with usage examples
explain "\x3Cpattern>" [--lang \x3Clang>] AI explain regex pattern component by component
test "\x3Cpattern>" \x3Cfile> AI test regex against file content, find matches and edge cases
debug "\x3Cpattern>" "\x3Cinput>" "\x3Cexpected>" AI diagnose why a regex fails and provide a fix
convert "\x3Cpattern>" --from \x3Clang> --to \x3Clang> AI convert regex between programming languages

Supported Languages

python · javascript · go · java · rust · php · ruby · csharp · perl

Examples

Generate a regex for URLs

bash scripts/regex.sh generate "match HTTP and HTTPS URLs" --lang javascript

Explain a complex pattern

bash scripts/regex.sh explain "\b\d{1,3}(\.\d{1,3}){3}\b"

Test a regex against a log file

bash scripts/regex.sh test "\d{4}-\d{2}-\d{2}" server.log

Debug a failing regex

bash scripts/regex.sh debug "(\d+\.)+\d+" "192.168.1.1" "should match full IP but only matches partial"

Convert Python regex to Go

bash scripts/regex.sh convert "(?P\x3Cyear>\d{4})-(?P\x3Cmonth>\d{2})" --from python --to go

Quick reference

bash scripts/regex.sh cheatsheet

Configuration

Variable Default Required Description
EVOLINK_API_KEY Yes (AI commands) Your EvoLink API key. Get one free
EVOLINK_MODEL claude-opus-4-6 No Model for AI analysis

Required binaries: python3, curl

Security

Data Transmission

AI commands send regex patterns and test content to api.evolink.ai for analysis by Claude. By setting EVOLINK_API_KEY and using these commands, you consent to this transmission. Data is not stored after the response is returned. The cheatsheet command runs entirely locally and never transmits data.

Network Access

  • api.evolink.ai — AI analysis (AI commands only)

Persistence & Privilege

Temporary files for API payloads are cleaned up automatically. No credentials or persistent data are stored.

Links

安全使用建议
This skill appears to be what it says: an Evolink-backed regex assistant. Before installing or using AI commands, be aware that any pattern plus test file content you submit will be transmitted to api.evolink.ai using your EVOLINK_API_KEY. Do not run the 'test' or 'debug' commands on files that contain secrets, credentials, personal data, or other sensitive information. If you must analyze sensitive data, limit usage to the local 'cheatsheet' command (which runs offline), or inspect and modify the scripts to remove network calls. Consider creating an API key with limited scope (if offered by Evolink) and review Evolink's privacy/data-retention policy. If you have concerns about payload handling, review the evolink_ai() implementation: it truncates test content to 8000 bytes, uses temporary files and attempts cleanup via trap, and sends data with x-api-key and an 'anthropic-version' header — confirm these match the Evolink API contract before relying on the tool in production.
功能分析
Type: OpenClaw Skill Name: ai-regex-assistant Version: 1.0.0 The skill provides regex utility by sending local file content and patterns to a third-party API (api.evolink.ai) for analysis. While this behavior is disclosed in SKILL.md and README.md, the combination of local file access and network transmission of that data constitutes a high-risk capability. The core logic in scripts/regex.sh reads up to 8KB of a user-specified file and includes it in a JSON payload sent via curl. Although the intent appears aligned with the stated purpose of 'regex testing', the transmission of potentially sensitive local data to an external endpoint warrants a suspicious classification under the provided criteria.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the implementation: the scripts provide generate, explain, test, debug, and convert commands. Required binaries (python3, curl) are used by the scripts, and the declared primary credential (EVOLINK_API_KEY) is required for AI calls to api.evolink.ai. No unrelated env vars, binaries, or config paths are requested.
Instruction Scope
SKILL.md and scripts instruct the agent/user to send regex patterns and (for 'test') file contents to api.evolink.ai. The test command explicitly reads the target file (truncates to 8000 bytes) and posts it to the remote API. This behavior is coherent with the stated 'test' and 'debug' features, but it means arbitrary file contents can be transmitted to a third party — users should not use AI commands with sensitive files or secrets. The skill also creates temporary files for payloads and removes them via trap; response parsing assumes a specific JSON layout (blocks with type 'text'), which may produce errors if the API format differs, but this is an implementation detail rather than a security mismatch.
Install Mechanism
There is no remote download or extraction. An included npm/bin installer copies bundled skill-files into a local 'skills/<slug>' directory and updates a local .clawhub lockfile — standard local install behavior. No URLs or external archives are fetched during install.
Credentials
Only EVOLINK_API_KEY is required (with optional EVOLINK_MODEL). No unrelated credentials or broad environment access are requested. The primaryEnv matches the declared external service (api.evolink.ai).
Persistence & Privilege
The skill is not always-enabled and is user-invocable. Installer writes its own files and a local origin/lock entry (normal). It does not request system-wide config changes or credentials belonging to other skills. Temporary files for payloads are created and cleaned up; nothing in the package tries to persist credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-regex-assistant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-regex-assistant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Regex Assistant — AI-powered regex tools in your terminal. - Generate regex from natural language descriptions with usage examples - Explain complex regex patterns component by component - Test and debug regex patterns against files and troubleshoot failures - Convert regex patterns between multiple programming languages - Includes a quick reference cheatsheet for regex syntax (no API key needed) - Requires EvoLink API key for AI-powered features; supports Python, JavaScript, Go, Java, Rust, and more
元数据
Slug ai-regex-assistant
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Regex Assistant 是什么?

AI-powered regular expression generation, explanation, testing, debugging, and cross-language conversion. Generate regex from natural language, explain compl... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 Regex Assistant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-regex-assistant」即可一键安装,无需额外配置。

Regex Assistant 是免费的吗?

是的,Regex Assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Regex Assistant 支持哪些平台?

Regex Assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Regex Assistant?

由 EvolinkAI(@evolinkai)开发并维护,当前版本 v1.0.0。

💬 留言讨论