Add golden tests for existing rfw_gen widgets. Use when the user says /add-golden-test, wants to add visual regression tests, create golden image tests for a widget, or needs to verify widget rendering output. Triggers on golden test creation requests for rfw_gen catalog widgets.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Add golden tests for existing rfw_gen widgets. Use when the user says /add-golden-test, wants to add visual regression tests, create golden image tests for a widget, or needs to verify widget rendering output. Triggers on golden test creation requests for rfw_gen catalog widgets.
user_invocable
true
Add Golden Test Skill
Add golden (visual regression) tests for existing rfw_gen widgets.
Usage
/add-golden-test [widgetName]
Steps
Check the widget's category from _catalogWidgets in example/lib/main.dart
Add a testWidgets block to the matching example/test/golden_catalog_{category}_test.dart
Check if the widget uses network images (HttpOverrides is already configured in loadTestFonts())
Generate golden images:
cd example && flutter test {file} --update-goldens --tags golden
Verify the test passes:
cd example && flutter test {file} --tags golden
Visually inspect the generated golden image at goldens/catalog/{category}/{widget_name}.png