regtraxlisted
Install: claude install-skill jord0-cmd/jord0.skills
# REGTRAX — Regex Railroad Visualizer
> "Don't just write Regex. Replay it."
**Author:** jord0 | **Version:** 1.0
---
## Prerequisites
- Python 3 (for `http.server`)
- Modern browser (Chrome, Firefox, Safari, Edge)
---
## Usage
Describe what you want to match, or paste a regex you want to understand. REGTRAX generates an animated railroad diagram and serves it in your browser.
```
Match email addresses that end in .gov or .mil
```
```
Debug this regex: ^(\d{4}-\d{2}-\d{2})\s(INFO|WARN|ERROR)\s(\w+):\s(.+)$
```
```
Explain this pattern — I inherited it and nobody knows what it does
```
### What You See
A dark-themed railroad diagram with colour-coded nodes: cyan for literals, amber for character classes, violet for quantifiers, emerald for groups, rose for anchors. Type a test string and watch a photon walk the track — green on match, red on failure with the exact derailment point highlighted.
---
## When to Invoke
- User asks for help writing a regex
- User wants to understand/debug an existing regex
- User says "regex", "pattern", "match", "railroad", "visualize"
- User provides a natural language description of what to match
- User has a regex that isn't working and wants to see why
---
## Capability Lookup
| Task | REGTRAX Does |
|------|-------------|
| Natural language → regex | Write the pattern + explanation |
| Explain existing regex | Parse it, describe each part |
| Debug failing regex | Visualize where the match fails |
| Test regex interactively