본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

regex-visualizer

pipedream941 제작

Web & Frontend Development
302clawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Render Regulex-style railroad diagrams for a JavaScript regular expression and export the exact same SVG/PNG.

설명

이 스킬이 하는 일

Exports railroad diagram visualizations for JavaScript regular expressions as SVG and PNG files. Uses the Regulex-Plus web UI rendering engine via headless browser, so output matches the web UI exactly rather than a re-implemented diagram. Supports flags i, m, and g.

Output matches the Regulex-Plus web UI exactly because it reuses the same export logic, avoiding visual discrepancies that come from custom re-implementations.

사용 시점

  • Generating regex diagrams for technical documentation
  • Sharing visual regex breakdowns with teammates
  • Debugging complex regular expressions visually
  • Embedding regex diagrams in README or wiki pages
  • Archiving regex patterns as images for presentations

예시 워크플로

입력

User asks: Generate a railroad diagram for the regex ^(a|b)*?$ with flag i

에이전트
  1. 1

    Runs render.mjs with --re '^(a|b)*?$' and --flags 'i' and an output path

  2. 2

    Loads regulex.html in a headless browser via puppeteer-core

  3. 3

    Triggers the built-in cmd=export mode to capture the canvas and SVG element

  4. 4

    Writes the SVG and PNG files to the specified output path

출력

SVG and PNG files of the railroad diagram matching the Regulex-Plus web UI export

설치

clawhub install pipedream941/regex-visualizer

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크