[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Q48FRJD8A9G8TYQXR2DV1":3,"skill-same:01M75Q48FRJD8A9G8TYQXR2DV1":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M75Q48FRJD8A9G8TYQXR2DV1","flutter-add-widget-preview",null,"Adds interactive widget previews to the project using the previews.dart system. Use when creating new UI components or updating existing screens to ensure consistent design and interactive testing.","mictlanix\u002Fmbe-ui","mictlanix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F703184?v=4","01M75Q1XD9477GXRKPM6JVVC11","Mictlanix","01M75Q1XDXKYX3VS9T3CS2XEFR",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fflutter-add-widget-preview\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: flutter-add-widget-preview\ndescription: Adds interactive widget previews to the project using the previews.dart system. Use when creating new UI components or updating existing screens to ensure consistent design and interactive testing.\nmetadata:\n  model: models\u002Fgemini-3.1-pro-preview\n  last_modified: Tue, 21 Apr 2026 20:05:23 GMT\n---\n# Previewing Flutter Widgets\n\n## Contents\n- [Preview Guidelines](#preview-guidelines)\n- [Handling Limitations](#handling-limitations)\n- [Workflows](#workflows)\n- [Examples](#examples)\n\n## Preview Guidelines\n\nUse the Flutter Widget Previewer to render widgets in real-time, isolated from the full application context. \n\n- **Target Elements:** Apply the `@Preview` annotation to top-level functions, static methods within a class, or public widget constructors\u002Ffactories that have no required arguments and return a `Widget` or `WidgetBuilder`.\n- **Imports:** Always import `package:flutter\u002Fwidget_previews.dart` to access the preview annotations.\n- **Custom Annotations:** Extend the `Preview` class to create custom annotations that inject common properties (e.g., themes, wrappers) across multiple widgets.\n- **Multiple Configurations:** Apply multiple `@Preview` annotations to a single target to generate multiple preview instances. Alternatively, extend `MultiPreview` to encapsulate common multi-preview configurations.\n- **Runtime Transformations:** Override the `transform()` method in custom `Preview` or `MultiPreview` classes to modify preview configurations dynamically at runtime (e.g., generating names based on dynamic values, which is impossible in a `const` context).\n\n## Handling Limitations\n\nAdhere to the following constraints when authoring previewable widgets, as the Widget Previewer runs in a web environment:\n\n- **No Native APIs:** Do not use native plugins or APIs from `dart:io` or `dart:ffi`. Widgets with transitive dependencies on `dart:io` or `dart:ffi` will throw exceptions upon invocation. Use conditional imports to mock or bypass these in preview mode.\n- **Asset Paths:** Use package-based paths for assets loaded via `dart:ui` `fromAsset` APIs (e.g., `packages\u002Fmy_package_name\u002Fassets\u002Fmy_image.png` instead of `assets\u002Fmy_image.png`).\n- **Public Callbacks:** Ensure all callback arguments provided to preview annotations are public and constant to satisfy code generation requirements.\n- **Constraints:** Apply explicit constraints using the `size` parameter in the `@Preview` annotation if your widget is unconstrained, as the previewer defaults to constraining them to approximately half the viewport.\n\n## Workflows\n\n### Creating a Widget Preview\nCopy and track this checklist when implementing a new widget preview:\n\n- [ ] Import `package:flutter\u002Fwidget_previews.dart`.\n- [ ] Identify a valid target (top-level function, static method, or parameter-less public constructor).\n- [ ] Apply the `@Preview` annotation to the target.\n- [ ] Configure preview parameters (`name`, `group`, `size`, `theme`, `brightness`, etc.) as needed.\n- [ ] If applying the same configuration to multiple widgets, extract the configuration into a custom class extending `Preview`.\n\n### Interacting with Previews\nFollow the appropriate conditional workflow to launch and interact with the Widget Previewer:\n\n**If using a supported IDE (Android Studio, IntelliJ, VS Code with Flutter 3.38+):**\n1. Launch the IDE. The Widget Previewer starts automatically.\n2. Open the \"Flutter Widget Preview\" tab in the sidebar.\n3. Toggle \"Filter previews by selected file\" at the bottom left if you want to view previews outside the currently active file.\n\n**If using the Command Line:**\n1. Navigate to the Flutter project's root directory.\n2. Run `flutter widget-preview start`.\n3. View the automatically opened Chrome environment.\n\n**Feedback Loop: Preview Iteration**\n1. Modify the widget code or preview configuration.\n2. Observe the automatic update in the Widget Previewer.\n3. If global state (e.g., static initializers) was modified: Click the global hot restart button at the bottom right.\n4. If only the local widget state needs resetting: Click the individual hot restart button on the specific preview card.\n5. Review errors in the IDE\u002FCLI console -> fix -> repeat.\n\n## Examples\n\n### Basic Preview\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\n@Preview(name: 'My Sample Text', group: 'Typography')\nWidget mySampleText() {\n  return const Text('Hello, World!');\n}\n```\n\n### Custom Preview with Runtime Transformation\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nfinal class TransformativePreview extends Preview {\n  const TransformativePreview({\n    super.name,\n    super.group,\n  });\n\n  PreviewThemeData _themeBuilder() {\n    return PreviewThemeData(\n      materialLight: ThemeData.light(),\n      materialDark: ThemeData.dark(),\n    );\n  }\n\n  @override\n  Preview transform() {\n    final originalPreview = super.transform();\n    final builder = originalPreview.toBuilder();\n    \n    builder\n      ..name = 'Transformed - ${originalPreview.name}'\n      ..theme = _themeBuilder;\n\n    return builder.toPreview();\n  }\n}\n\n@TransformativePreview(name: 'Custom Themed Button')\nWidget myButton() => const ElevatedButton(onPressed: null, child: Text('Click'));\n```\n\n### MultiPreview Implementation\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\n\u002F\u002F\u002F Creates light and dark mode previews automatically.\nfinal class MultiBrightnessPreview extends MultiPreview {\n  const MultiBrightnessPreview({required this.name});\n\n  final String name;\n\n  @override\n  List\u003CPreview> get previews => const [\n        Preview(brightness: Brightness.light),\n        Preview(brightness: Brightness.dark),\n      ];\n\n  @override\n  List\u003CPreview> transform() {\n    final previews = super.transform();\n    return previews.map((preview) {\n      final builder = preview.toBuilder()\n        ..group = 'Brightness'\n        ..name = '$name - ${preview.brightness!.name}';\n      return builder.toPreview();\n    }).toList();\n  }\n}\n\n@MultiBrightnessPreview(name: 'Primary Card')\nWidget cardPreview() => const Card(child: Padding(padding: EdgeInsets.all(8.0), child: Text('Content')));\n```\n","# Previewing Flutter Widgets\n\n## Contents\n- [Preview Guidelines](#preview-guidelines)\n- [Handling Limitations](#handling-limitations)\n- [Workflows](#workflows)\n- [Examples](#examples)\n\n## Preview Guidelines\n\nUse the Flutter Widget Previewer to render widgets in real-time, isolated from the full application context. \n\n- **Target Elements:** Apply the `@Preview` annotation to top-level functions, static methods within a class, or public widget constructors\u002Ffactories that have no required arguments and return a `Widget` or `WidgetBuilder`.\n- **Imports:** Always import `package:flutter\u002Fwidget_previews.dart` to access the preview annotations.\n- **Custom Annotations:** Extend the `Preview` class to create custom annotations that inject common properties (e.g., themes, wrappers) across multiple widgets.\n- **Multiple Configurations:** Apply multiple `@Preview` annotations to a single target to generate multiple preview instances. Alternatively, extend `MultiPreview` to encapsulate common multi-preview configurations.\n- **Runtime Transformations:** Override the `transform()` method in custom `Preview` or `MultiPreview` classes to modify preview configurations dynamically at runtime (e.g., generating names based on dynamic values, which is impossible in a `const` context).\n\n## Handling Limitations\n\nAdhere to the following constraints when authoring previewable widgets, as the Widget Previewer runs in a web environment:\n\n- **No Native APIs:** Do not use native plugins or APIs from `dart:io` or `dart:ffi`. Widgets with transitive dependencies on `dart:io` or `dart:ffi` will throw exceptions upon invocation. Use conditional imports to mock or bypass these in preview mode.\n- **Asset Paths:** Use package-based paths for assets loaded via `dart:ui` `fromAsset` APIs (e.g., `packages\u002Fmy_package_name\u002Fassets\u002Fmy_image.png` instead of `assets\u002Fmy_image.png`).\n- **Public Callbacks:** Ensure all callback arguments provided to preview annotations are public and constant to satisfy code generation requirements.\n- **Constraints:** Apply explicit constraints using the `size` parameter in the `@Preview` annotation if your widget is unconstrained, as the previewer defaults to constraining them to approximately half the viewport.\n\n## Workflows\n\n### Creating a Widget Preview\nCopy and track this checklist when implementing a new widget preview:\n\n- [ ] Import `package:flutter\u002Fwidget_previews.dart`.\n- [ ] Identify a valid target (top-level function, static method, or parameter-less public constructor).\n- [ ] Apply the `@Preview` annotation to the target.\n- [ ] Configure preview parameters (`name`, `group`, `size`, `theme`, `brightness`, etc.) as needed.\n- [ ] If applying the same configuration to multiple widgets, extract the configuration into a custom class extending `Preview`.\n\n### Interacting with Previews\nFollow the appropriate conditional workflow to launch and interact with the Widget Previewer:\n\n**If using a supported IDE (Android Studio, IntelliJ, VS Code with Flutter 3.38+):**\n1. Launch the IDE. The Widget Previewer starts automatically.\n2. Open the \"Flutter Widget Preview\" tab in the sidebar.\n3. Toggle \"Filter previews by selected file\" at the bottom left if you want to view previews outside the currently active file.\n\n**If using the Command Line:**\n1. Navigate to the Flutter project's root directory.\n2. Run `flutter widget-preview start`.\n3. View the automatically opened Chrome environment.\n\n**Feedback Loop: Preview Iteration**\n1. Modify the widget code or preview configuration.\n2. Observe the automatic update in the Widget Previewer.\n3. If global state (e.g., static initializers) was modified: Click the global hot restart button at the bottom right.\n4. If only the local widget state needs resetting: Click the individual hot restart button on the specific preview card.\n5. Review errors in the IDE\u002FCLI console -> fix -> repeat.\n\n## Examples\n\n### Basic Preview\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\n@Preview(name: 'My Sample Text', group: 'Typography')\nWidget mySampleText() {\n  return const Text('Hello, World!');\n}\n```\n\n### Custom Preview with Runtime Transformation\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nfinal class TransformativePreview extends Preview {\n  const TransformativePreview({\n    super.name,\n    super.group,\n  });\n\n  PreviewThemeData _themeBuilder() {\n    return PreviewThemeData(\n      materialLight: ThemeData.light(),\n      materialDark: ThemeData.dark(),\n    );\n  }\n\n  @override\n  Preview transform() {\n    final originalPreview = super.transform();\n    final builder = originalPreview.toBuilder();\n    \n    builder\n      ..name = 'Transformed - ${originalPreview.name}'\n      ..theme = _themeBuilder;\n\n    return builder.toPreview();\n  }\n}\n\n@TransformativePreview(name: 'Custom Themed Button')\nWidget myButton() => const ElevatedButton(onPressed: null, child: Text('Click'));\n```\n\n### MultiPreview Implementation\n```dart\nimport 'package:flutter\u002Fwidget_previews.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\n\u002F\u002F\u002F Creates light and dark mode previews automatically.\nfinal class MultiBrightnessPreview extends MultiPreview {\n  const MultiBrightnessPreview({required this.name});\n\n  final String name;\n\n  @override\n  List\u003CPreview> get previews => const [\n        Preview(brightness: Brightness.light),\n        Preview(brightness: Brightness.dark),\n      ];\n\n  @override\n  List\u003CPreview> transform() {\n    final previews = super.transform();\n    return previews.map((preview) {\n      final builder = preview.toBuilder()\n        ..group = 'Brightness'\n        ..name = '$name - ${preview.brightness!.name}';\n      return builder.toPreview();\n    }).toList();\n  }\n}\n\n@MultiBrightnessPreview(name: 'Primary Card')\nWidget cardPreview() => const Card(child: Padding(padding: EdgeInsets.all(8.0), child: Text('Content')));\n```\n",{"name":5,"metadata":24,"description":7},{"model":25,"last_modified":26},"models\u002Fgemini-3.1-pro-preview","Tue, 21 Apr 2026 20:05:23 GMT","main","228e23386ed058f8a2456399cd68f63999d63adf",".claude\u002Fskills\u002Fflutter-add-widget-preview","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui","https:\u002F\u002Fgithub.com\u002Fmictlanix","https:\u002F\u002Fmictlanix.com","2026-11-15 04:02:27",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mictlanix\u002Fmbe-ui --skill flutter-add-widget-preview",{"tool":40,"command":41},"bunx","bunx skills add mictlanix\u002Fmbe-ui --skill flutter-add-widget-preview",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mictlanix\u002Fmbe-ui --skill flutter-add-widget-preview","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fflutter-add-widget-preview\u002FSKILL.md",true,[],[49,56,61,68,75,82],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75QCZHHB42Q7KJTZHQZXZ77","speckit-wireframes-draft","Draw low-fi wireframes for every screen and state the spec describes","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fwireframes\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M75QCXRSD7HM7AFZH4HA9E6S","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M75QCVS17DXXBTQ8DE2SSXVR","speckit-taskstoissues","Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-taskstoissues\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M75QCS3M02XD4PW58EXS6458","speckit-tasks","Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-tasks\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M75QCP9NASXGDNYZF6XYJZBD","speckit-specify","Create or update the feature specification from a natural language feature description.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-specify\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M75QCKBPS4K60R4YPRQ8HBJ9","speckit-plan","Execute the implementation planning workflow using the plan template to generate design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-plan\u002FSKILL.md",[],[]]