Skip to content
Skill

Dart flutter patterns

Gives your agent Dart and Flutter patterns for state, navigation, networking and tests

Dart flutter patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Dart flutter patterns

This skill is a reference of copy-paste Dart and Flutter code patterns, grouped by concern: null safety, immutable state with sealed classes and Freezed, concurrent async work, widget structure and rebuild scoping, and state management with BLoC/Cubit and Riverpod. It also covers GoRouter navigation with a reactive authentication redirect, Dio networking with an auth interceptor and a single-retry token refresh, global error capture, and testing with BLoC tests, widget tests and fakes.

The guidance is written as good versus bad examples, so an agent reviewing code can point out anti-patterns such as bang operators, widget-returning helper methods and sequential awaits, and suggest the preferred alternative. It pairs the patterns with short code snippets that the agent can adapt to the project in front of it.

The skill expects a Dart or Flutter codebase. Where it fits, the patterns name the packages they rely on, such as freezed, flutter_bloc, riverpod, go_router, dio and collection. It does not run scripts or call external services.

When your agent uses it

Production-ready Dart and Flutter patterns covering null safety, immutable state with Freezed, async composition, widget architecture, state management (BLoC, Riverpod, Provider), GoRouter navigation with auth guards, Dio networking, error handling, and testing. Use when writing or reviewing Dart and Flutter code — state, widgets, navigation, networking, or architecture.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (16 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/dart-flutter-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dart-flutter-patterns &&
cp -R "$tmp/.agents/skills/dart-flutter-patterns" ~/.claude/skills/dart-flutter-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/dart-flutter-patterns inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/dart-flutter-patterns to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dart-flutter-patterns &&
cp -R "$tmp/.agents/skills/dart-flutter-patterns" ~/.agents/skills/dart-flutter-patterns &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/dart-flutter-patterns inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/dart-flutter-patterns to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dart-flutter-patterns &&
cp -R "$tmp/.agents/skills/dart-flutter-patterns" ~/.cursor/skills/dart-flutter-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/dart-flutter-patterns inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/dart-flutter-patterns

Or copy the folder to ~/.gemini/skills/dart-flutter-patterns yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/dart-flutter-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dart-flutter-patterns &&
cp -R "$tmp/.agents/skills/dart-flutter-patterns" ~/.copilot/skills/dart-flutter-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/dart-flutter-patterns inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/dart-flutter-patterns into your agent's skills folder as dart-flutter-patterns. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Null safety guidance
Prefers fallbacks, pattern matching and early returns over the bang operator and overused late fields.
Immutable state modeling
Shows sealed state hierarchies and Freezed classes with copyWith and JSON serialization.
Widget performance patterns
Covers extracting widget classes, const propagation and isolating rebuilds with Riverpod.
BLoC and Riverpod examples
Provides Cubit, notifier and derived provider examples for managing application state.
Auth-guarded routing
Demonstrates GoRouter redirects that react to authentication changes.
Dio networking with token refresh
Shows interceptors that attach bearer tokens and retry once after a 401 response.
Testing references
Includes unit, BLoC and widget test examples using fakes and provider overrides.

Good for

  • Review a Flutter widget for rebuild and const issues
  • Set up GoRouter with a login redirect
  • Add a Riverpod provider that derives a cart total
  • Write BLoC tests for a login Cubit
  • Add Dio interceptors that refresh an expired token
  • Check async code for unsafe BuildContext use after await

Dart flutter patterns FAQ

What does the skill need to run?

It needs no scripts or tools. It is a set of instructions and code patterns that an agent reads when working on Dart or Flutter code.

When does Dart flutter patterns trigger?

It is meant for writing or reviewing Dart and Flutter code around state, widgets, navigation, networking or architecture.

Which state management libraries does Dart flutter patterns cover?

It covers BLoC and Cubit, Riverpod and Provider, with examples for BLoC and Riverpod.

How do I install Dart flutter patterns in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dart-flutter-patterns to use it in all your projects, or to .claude/skills/dart-flutter-patterns in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Dart flutter patterns run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Dart flutter patterns?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Dart flutter patterns?

The closest alternatives to Dart flutter patterns are Dart use pattern matching, Dart generate test mocks, Dart add unit test, Flutter add widget test and Flutter testing skill.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  5. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments