grex

grex is a command-line tool and library that automatically generates regular expressions from user-provided test cases. Written in Rust with Python bindings, it produces the most specific regex matching the inputs and supports Unicode 16.0, character-class detection, quantifier notation, and case-insensitive matching.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "grex" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a34a86a9e0cf5ff16748a366b1efe95e392351c612aafda1e8b2435965b50d40. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/grex-regex-generator-from-test-cases before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

grex is a command-line tool and library that automatically generates regular expressions from user-provided test cases. Written in Rust with Python bindings, it produces the most specific regex matching the inputs and supports Unicode 16.0, character-class detection, quantifier notation, and case-insensitive matching.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "grex 从测试用例生成正则表达式"
slug: "grex-regex-generator-from-test-cases"
version: "1.0.0"
displayName: "grex 从测试用例生成正则表达式"
summary: "grex 是一个命令行工具和库,能够从用户提供的测试用例中自动生成正则表达式。该工具使用 Rust 编写并提供 Python 绑定,可以生成最具体的匹配给定输入的正则表达式,支持 Unicode 16.0、字符类检测、量词表示法和不区分大小写的匹配。"
license: "MIT"
description: "grex 是一个命令行工具和库,能够从用户提供的测试用例中自动生成正则表达式。该工具使用 Rust 编写并提供 Python 绑定,可以生成最具体的匹配给定输入的正则表达式,支持 Unicode 16.0、字符类检测、量词表示法和不区分大小写的匹配。"
github_stars: 8079
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Developer Tools"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 8079

grex 从测试用例生成正则表达式

grex is a command-line tool and library that automatically generates regular expressions from user-provided test cases. Written in Rust with Python bindings, it produces the most specific regex that matches the given input, supporting Unicode 16.0, character class detection, quantifier notation, and case-insensitive matching.

Installation

Use the upstream install or setup path that matches your environment:

Requirements and caveats from upstream:

  • python build status
  • supported Python versions
  • Specifies the minimum length a repeated substring must have in order to be converted if

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供从测试用例自动生成正则表达式的实用功能,解决开发者常见痛点
  • 支持 Unicode 16.0、字符类检测等高级特性,功能完整
Trigger Precision55/100

Areas to improve

  • 缺少具体触发词描述 Reported severity: Minor

    description 描述了工具功能,但未提供具体的触发词或 When to Use 场景指引

    Recommendation: 补充具体的触发词描述和典型使用场景,帮助用户准确判断何时使用该 Skill

Structure and Standards60/100

Areas to improve

  • 缺少端到端完整示例 Reported severity: Minor

    文档包含基本用法说明,但缺少完整的端到端使用示例

    Recommendation: 补充一个完整的使用示例,展示从输入测试用例到生成正则表达式的完整流程

  • 缺少清晰的步骤划分 Reported severity: Minor

    Installation 和 Basic usage 部分缺乏清晰的步骤划分和出口条件

    Recommendation: 使用 Phase 或步骤编号明确划分操作流程,并说明每个步骤的预期结果

Execution Reliability50/100

Areas to improve

  • 工具来源不明 Reported severity: Major

    Installation 部分引用 GitHub 仓库 1991513ccie-png/skills,但未说明其与官方 grex 项目的关系

    Recommendation: 明确说明工具来源,如果是官方版本请提供官方仓库链接;如果是 fork 版本请说明差异和可靠性保障

Evidence Verifiability (mean of the first four)60/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • img.shields.io
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.