Help us improve
Share bugs, ideas, or general feedback.
From figma2flutter
Visual verification of Flutter output against Figma reference screenshots using Claude Vision
npx claudepluginhub clearclown/figma2flutterHow this skill is triggered — by the user, by Claude, or both
Slash command
/figma2flutter:visual-verifyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Compare Figma reference screenshots with Flutter golden test outputs to ensure pixel-level design fidelity.
Use when a backpressured loop has a front-end/UI change and needs to compare the rendered result against its design reference (a Figma frame or images on a Linear ticket) — catching layout, spacing, contrast, and visual-consistency defects automated tests and happy-path clicking miss.
Implements pixel-perfect UIs from Figma designs, mockups, or specs by extracting exact dimensions, colors, typography, shadows, and assets for zero-deviation code reproduction.
Compares a Figma node's actual specs against a codeSpec to produce a 0–100 parity score, discrepancy list, and fix suggestions. Detects design-to-code drift.
Share bugs, ideas, or general feedback.
Compare Figma reference screenshots with Flutter golden test outputs to ensure pixel-level design fidelity.
Find the corresponding files:
test/goldens/figma_ref/{widget_name}_figma_ref.pngtest/goldens/ci/{widget_name}.png or run golden tests to generateoutput/ir/{widget_name}.ir.json or test/fixtures/{widget_name}.ir.json# Basic comparison
node dist/verify-visual.js test/goldens/figma_ref/card_figma_ref.png test/goldens/ci/card.png
# With IR context for better analysis
node dist/verify-visual.js ref.png golden.png --ir design.ir.json
# JSON output for CI integration
node dist/verify-visual.js ref.png golden.png --json
The verification produces:
Common fixes by category:
figma2flutter.config.json and src/compiler/emitters/container-emitter.tssrc/compiler/emitters/flex-emitter.tssrc/compiler/emitters/text-emitter.tssrc/compiler/flutter-compiler.tsRequires ANTHROPIC_API_KEY environment variable.
export ANTHROPIC_API_KEY=your-key-here