flutter-add-widget-preview
Pass
Audited by Gen Agent Trust Hub on Jul 13, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill serves as a documentation guide for the Flutter Widget Previewer. All instructions and code examples pertain to standard UI development practices using the
package:flutter/widget_previews.dartlibrary. - [COMMAND_EXECUTION]: Includes instructions to run
flutter widget-preview startvia the command line. This is a legitimate framework command used to launch the development environment and does not involve unauthorized or elevated privilege execution. - [DATA_EXPOSURE]: Explicitly advises against using native APIs like
dart:ioordart:ffidue to the web execution environment of the previewer, which aligns with security best practices for cross-platform development. - [DYNAMIC_EXECUTION]: Demonstrates the use of the
transform()method to dynamically modify preview metadata (such as names and themes) at runtime. This is a documented feature of the Flutter preview system for metadata manipulation and does not facilitate arbitrary code execution.
Audit Metadata