Verify Diagram

Verify an SVG diagram or HTML scene for visual quality. Renders to PNG, checks for overlaps, clipping, readability, density.

noelpuig 76478a5 872 B Updated

File contents

Visual Verification

Verify the visual quality of: $file

Step 1: CLI Validation

node ../cli/bin/claude-explains.js $file --validate

Parse the JSON output. Report all issues.

Step 2: Render Preview

node ../cli/bin/claude-explains.js $file --preview 0 -o /tmp/verify_preview

Read the rendered PNG.

Step 3: Visual Inspection

  • All labels readable (not overlapping, not clipped)
  • Content fills 80%+ of viewport
  • Clear visual hierarchy (3 size tiers)
  • Connector lines properly attached
  • Content centered or intentionally positioned
  • Colors match theme (60-30-10 rule)

Step 4: Report

{"file": "$file", "pass": true, "issues": []}

noelpuig/claude-explains/tree/main/pipeline/.claude/skills/verify-diagram commit 76478a5ae0

Frequently asked questions

npx skillmds@latest add noelpuig/verify-diagram