flutter

flutter is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 21 tokens per session (843 once invoked), scanned A, original, MIT.

A practical guide for building Flutter apps, which use Dart to create interfaces for phones, browsers, and desktop systems from one codebase. It covers widgets, app state, asynchronous screens, platform-specific connections, and release builds.

In plain words
What is it for?
Use it when building or refactoring Flutter screens, choosing how to store app state, connecting to native phone features, handling loading and error states, or preparing a release build.
Why use it?
It helps avoid common Flutter problems such as unnecessary screen updates, unsafe asynchronous work, blocked user interfaces, and mismatched build settings.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it when building or refactoring Flutter screens, choosing how to store app state, connecting to native phone features, handling loading and error states, or preparing a release build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/flutter
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 alivirgo/Major-AI-Skills --skill flutter
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/flutter/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/flutter)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/flutter"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/flutter/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/flutter"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/flutter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 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.
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.00021 $0.00843
Opus 5 $0.00010 $0.00421
Sonnet 5 $0.00004 $0.00169
Haiku 4.5 $0.00002 $0.00084

Measured yesterday against content hash ab3f284dff56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

flutter 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 yesterday.

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.

skills/flutter/SKILL.md · 124 lines

How it starts

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

Flutter Cross-Platform UI AI Skill Guide

Overview & Engine Architecture

Flutter paints UI with a widget tree compiled to native ARM/x64 (and web/desktop targets). Everything is a widget; rebuilds are cheap when state is localized. Agents prefer composition over deep inheritance, choose an explicit state approach (Riverpod/Bloc/Provider) and stick to it, and keep platform-specific code behind clean facades.

Dart app
  -> Widget tree (build)
      -> Element / RenderObject
          -> Skia / Impeller
              -> iOS / Android / Web / Desktop

When to use this skill

  • Building or refactoring Flutter screens
  • Fixing unnecessary rebuilds and async UI races
  • Adding platform views or method channels carefully
  • Preparing release/signing build configs

Operational directives

  1. Keep build() pure - no side effects; trigger work from callbacks/initState/providers.
  2. Use const constructors where possible to cut rebuild cost.
  3. Handle loading/error/empty states explicitly for every async boundary.
  4. Do not block the UI isolate with heavy JSON/parse - use compute/isolates when needed.
  5. Match Flutter/Dart SDK constraints in CI to local pubspec constraints.

Widget sketch

class ItemCount extends StatelessWidget {
  const ItemCount({super.key, required this.qty});
  final int qty;

  @override
  Widget build(BuildContext context) {
    return Text('Qty: $qty');
  }
}

class AddItemButton extends StatefulWidget {
  const AddItemButton({super.key, required this.onAdd});
  final Future<void> Function() onAdd;

  @override
  State<AddItemButton> createState() => _AddItemButtonState();
}

class _AddItemButtonState extends State<AddItemButton> {
  bool _busy = false;

  Future<void> _handle() async {
    if (_busy) return;
    setState(() => _busy = true);
    try {
      await widget.onAdd();
    } finally {
      if (mounted) setState(() => _busy = false);
    }
  }

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: _busy ? null : _handle,
      child: Text(_busy ? 'Saving...' : 'Add'),
    );
  }
}

Read the full file on GitHub · 124 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. yesterday Changed · -4 tokens per session ab3f284dff56
  2. 7d ago First seen · 124 lines · 25 tokens per session scan A b4e91b332dc2

Subscribe to this mod's changes

flutter is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 843 once invoked, about $0.0001 per session on Opus 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-09-05.