flutter-add-widget-preview

flutter-add-widget-preview is a skill for Claude Code from flutter/agent-plugins. It costs 36 tokens per session (1,691 once invoked), scanned A, original, BSD-3-Clause.

A Flutter workflow for creating interactive previews of widgets in isolation. A widget is a reusable piece of Flutter’s user interface, such as a button or screen section.

In plain words
What is it for?
Use it when creating or changing widgets to add preview annotations, show multiple configurations, and apply shared themes or wrappers.
Why use it?
It lets you inspect and test UI components without running the entire application or setting up all of its surrounding context.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dart-flutter plugin — 31 skills shipped together

Good fit Use it when creating or changing widgets to add preview annotations, show multiple configurations, and apply shared themes or wrappers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flutter/agent-plugins/flutter-add-widget-preview
About the project

Flutter Agent Plugins is a collection maintained by the Flutter team that extends coding agents with Flutter-specific skills, rules, MCP configuration, and bundled workflows. Flutter developers use it to help agents perform tasks such as testing and building widget previews. The catalogue entries are components of these agent plugins.

flutter/agent-plugins · 3,222 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flutter/agent-plugins --skill flutter-add-widget-preview
Clone the repo
git clone --depth 1 https://github.com/flutter/agent-plugins

Made for: Claude Code.

Or install dart-flutter, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-add-widget-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-widget-preview/github.svg)](https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-widget-preview)
Your own site
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-widget-preview"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-widget-preview/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-add-widget-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-widget-preview"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-widget-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 21 Oct 2026
  • Snyk pass 21 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01691
Opus 5.5 $0.00014 $0.00676
Sonnet 5.5 $0.00007 $0.00338
Haiku 4.5 $0.00004 $0.00169

Measured 1mo ago against content hash da257f97d23b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-add-widget-preview scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/flutter-add-widget-preview/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Previewing Flutter Widgets

Contents

Preview Guidelines

Use the Flutter Widget Previewer to render widgets in real-time, isolated from the full application context.

  • Target Elements: Apply the @Preview annotation to top-level functions, static methods within a class, or public widget constructors/factories that have no required arguments and return a Widget or WidgetBuilder.
  • Imports: Always import package:flutter/widget_previews.dart to access the preview annotations.
  • Custom Annotations: Extend the Preview class to create custom annotations that inject common properties (e.g., custom themes, wrappers, sizes) across multiple widgets.
  • Multiple Configurations: Apply multiple @Preview annotations to a single target to generate multiple preview instances. Alternatively, extend MultiPreview to encapsulate common multi-preview configurations.
  • Runtime Transformations: Override the transform() method in custom Preview or MultiPreview classes to modify preview configurations dynamically at runtime (e.g., building names dynamically based on parameters, which is impossible in a const constructor).

Preview Parameters

The @Preview annotation supports the following parameters for tailoring preview environments:

  • name: A descriptive name for the preview instance.
  • group: A name used to group related previews together in the previewer.
  • size: Artificial constraints using a Size object.
  • textScaleFactor: Custom font scale factor.
  • wrapper: A function that wraps the previewed widget in a specific widget tree (e.g., to inject state or inherited widgets).
  • theme: A function returning a PreviewThemeData subclass instance to provide custom theming with support for sequential theme layering.
  • brightness: The initial theme Brightness (Brightness.light or Brightness.dark).
  • localizations: A function applying a localization configuration.

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +47 lines da257f97d23b
  2. 3mo ago First seen · 146 lines · 36 tokens per session scan A 88cfeb7084e7

Subscribe to this mod's changes

flutter-add-widget-preview is a skill published in the GitHub repository flutter/agent-plugins (3,222 stars, last pushed 12d ago), licensed BSD-3-Clause. It adds 36 tokens to every session and 1,691 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

flutter-add-widget-preview compared with skills from other repositories

flutter-add-widget-preview next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-add-widget-previewflutter/agent-pluginsSkill3.2k12d agoBSD-3-ClauseA36Claude Code
webgl-holographic-foilnexu-io/open-designSkill110ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill110ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
prototype-webnexu-io/html-anythingSkill17k2d agoApache-2.0A24Claude Code, Codex