360 Secure SkillHub
360 安全技能中心

Axiom Regex Visualizer

核心功能:生成正则组件可视化树,提供各部分英文说明,高亮组、量词、锚点等元素,支持Python re语法(含扩展)。典型场景:理解他人编写的正则、文档复杂正则、调试匹配问题。输入为Python正则表达式,可通过命令行或Python代码调用,输出可视化结构与说明,纯标准库实现,无LLM,性能稳定安全。

kofna3369
kofna3369
热度 24.09
最近更新 2026-06-15 12:50:08
分类:开发依赖:代码执行应用场景:调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axiom-regex-visualizer
Metadata
name
axiom-regex-visualizer
description
Regex visualizer — parse any regex and visualize its structure (groups, quantifiers, anchors, character classes). Use when you need to understand or document a regex. Pure stdlib, no LLM.
version
0.1.2
license
Apache-2.0

axiom-regex-visualizer

Version: 0.1.2 Axioma Tools

Parses regular expressions and shows their structure visually.

What this skill does

  • Visual tree of regex components
  • Plain-English explanation of each part
  • Highlights groups, quantifiers, anchors
  • Supports Python re syntax (basic + extensions)

When to use this skill

  • ✅ Understand a regex you didn't write
  • ✅ Document a complex pattern
  • ✅ Debug regex matching issues
  • ❌ Test if regex matches a string (use re.match)
  • ❌ Support Perl/PCRE-only features

Usage

python3 axiom_regex_visualizer.py "^(?:[a-z0-9!#$%&*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&*+/=?^_`{|}~-]+)*)@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
from axiom_regex_visualizer import parse, explain
tree = parse(r'\b\d{3}-\d{4}\b')
explain(tree)  # 'Word boundary, exactly 3 digits, dash, exactly 4 digits, word boundary'

Validation

Check Status
Unit tests 20+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14