📦 Regex — 正则表达式
v1.0.0AssistantAI 驱动的正则表达式生成、解释、测试、调试与跨语言转换。用自然语言生成 regex,解释复杂……
0· 17·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidence该技能的文件、运行时指令及所需凭据均符合一个调用 Evolink API 的 AI 正则助手;不存在无法解释的凭据、下载或特权行为——但 AI 命令会将文件内容传输至第三方服务,请勿发送敏感数据。
评估建议
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 t...详细分析 ▾
✓ 用途与能力
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.
ℹ 指令范围
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.
✓ 安装机制
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.
✓ 凭证需求
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).
✓ 持久化与权限
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.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/19
Regex Assistant 初版发布——终端里的 AI 驱动正则工具 - 用自然语言描述即可生成正则,并附使用示例 - 逐组件讲解复杂正则模式 - 针对文件测试与调试正则,快速定位失败原因 - 在多种编程语言间互转正则模式 - 内置正则语法速查表(无需 API key) - AI 功能需 EvoLink API key;支持 Python、JavaScript、Go、Java、Rust 等
● 可疑
安装命令
点击复制官方npx clawhub@latest install ai-regex-assistant
镜像加速npx clawhub@latest install ai-regex-assistant --registry https://cn.longxiaskill.com
技能文档
AI 驱动的正则表达式生成、解释、测试、调试与跨语言转换,直接在终端使用。由 Evolink.ai 提供支持
何时使用
- 用户想用自然语言生成 regex 模式
- 用户请求解释某 regex 的作用
- 用户需要针对文件测试 regex 并找出匹配/边界情况
- 用户 regex 不工作,需要调试
- 用户需要在编程语言间转换 regex
- 用户想要快速查阅 regex 语法
快速开始
1. 设置 EvoLink API 密钥
export EVOLINK_API_KEY="your-key-here" 免费获取:evolink.ai/signup2. 生成 regex
bash scripts/regex.sh generate "匹配邮箱地址" --lang python3. 解释 regex
bash scripts/regex.sh explain "(?<=@)[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"功能
本地命令(无需 API 密钥)
| 命令 | 说明 | |---------|-------------| |cheatsheet | regex 语法速查 —— 字符、量词、分组、标志、常见模式 | AI 命令(需 EVOLINK_API_KEY)
| 命令 | 说明 | |---------|-------------| |generate " | AI 根据自然语言生成 regex 并附使用示例 |
| explain "" [--lang ] | AI 逐组件解释 regex 模式 |
| test "" | AI 针对文件内容测试 regex,找出匹配与边界情况 |
| debug "" "" "" | AI 诊断 regex 失败原因并提供修复方案 |
| convert "" --from --to | AI 在编程语言间转换 regex | 支持语言
python · javascript · go · java · rust · php · ruby · csharp · perl 示例
生成 URL regex
bash scripts/regex.sh generate "匹配 HTTP 和 HTTPS 网址" --lang javascript解释复杂模式
bash scripts/regex.sh explain "\b\d{1,3}(\.\d{1,3}){3}\b"针对日志文件测试 regex
bash scripts/regex.sh test "\d{4}-\d{2}-\d{2}" server.log调试失败 regex
bash scripts/regex.sh debug "(\d+\.)+\d+" "192.168.1.1" "应完整匹配 IP 但只匹配部分"Python regex 转 Go
bash scripts/regex.sh convert "(?P\d{4})-(?P\d{2})" --from python --to go速查
bash scripts/regex.sh cheatsheet配置
| 变量 | 默认值 | 必需 | 说明 | |---|---|---|---| |EVOLINK_API_KEY | — | 是(AI 命令) | 你的 EvoLink API 密钥。免费获取 |
| EVOLINK_MODEL | claude-opus-4-6 | 否 | AI 分析所用模型 | 所需二进制文件:python3, curl
安全
数据传输 AI 命令会将 regex 模式及测试内容发送至api.evolink.ai 由 Claude 分析。设置 EVOLINK_API_KEY 并使用这些命令即表示你同意此传输。数据在返回响应后不会被存储。
cheatsheet 命令完全本地运行,绝不传输数据。 网络访问
api.evolink.ai—— AI 分析(仅 AI 命令)
持久化与权限 API 载荷的临时文件会自动清理。不存储任何凭据或持久数据。