agentleFS
zakariafzakariaf/Flutter-Skills/AGENTS.md

Flutter-Skills

AGENTS.md32 starsChanged 4 months agoMITView on GitHub

Guidance for any AI coding agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, Windsurf, Cline, OpenCode, Antigravity, …) working in a Flutter/Dart project that has these skills installed. These skills follow the Agent Skills open standard, so they work with any agent that can read Markdown instructions — not only Claude Code. Each skill is a short playbook at skills/<name>/SKILL.md (or .claude/skills/<name>/SKILL.md once installed into a project) that encodes the non-negotiable rules for one area of Flutter engineering: architecture, state…

The file

Files
AGENTS.md

AGENTS.md

Guidance for any AI coding agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, Windsurf, Cline, OpenCode, Antigravity, …) working in a Flutter/Dart project that has these skills installed.

These skills follow the Agent Skills open standard, so they work with any agent that can read Markdown instructions — not only Claude Code.

What these skills are

Each skill is a short playbook at skills/<name>/SKILL.md (or .claude/skills/<name>/SKILL.md once installed into a project) that encodes the non-negotiable rules for one area of Flutter engineering: architecture, state (Riverpod 3.x), widgets, async safety, testing, persistence, i18n/RTL, accessibility, navigation, forms, performance, and the codegen/CI/migration runbooks.

The description in each skill's YAML frontmatter says when it applies. Some skills bundle references/ (deep-dives), examples/ (complete .dart samples), and scripts/ (runnable checks).

How to use them

  1. Before writing or reviewing Flutter/Dart code, check whether a skill applies — match the task to a skill description. If one matches, read that SKILL.md (and any reference it points to) and follow it. Do not improvise a different approach when a skill governs the area.
  2. Follow the skill fully, including its Non-negotiable rules, Anti-patterns, and Definition of done. Run any bundled scripts/*.sh the skill tells you to before opening a PR.
  3. flutter-conventions-index is the front door — its routing table maps each task to the right deep-dive skill and gives a recommended build order. Start there when unsure.

Intent → skill map

When you are…Consult
Structuring a project / deciding where code goesflutter-architecture, project-structure-and-packages
Adding a feature / screenscaffold-feature-module, then the state/widget/nav skills
Managing state or dependency injectionstate-management-riverpod
Building or refactoring UIwidget-composition, adaptive-layout, design-system-structure
Loading / empty / error states, snackbars, dialogs, Undoui-states-and-feedback
Wiring navigation / routes / deep linksnavigation-and-routing
Building a form or handling inputforms-and-input
Handling errors / asyncerror-handling-typed-results, async-safety
Storing data locallypersistence-drift, value-objects-money-and-units
Exporting, backing up, sharing, or restoring user datadata-export-and-restore
Wiring a side effect or native channelservice-boundary-and-native
Localizing / RTLi18n-rtl-l10n
Accessibilityaccessibility-as-code
Writing teststesting-strategy, widget-golden-and-a11y-testing
Performance / jankflutter-performance
Naming / Dart idioms / docs / lintnaming-conventions, dart3-idioms-and-coding-standards, dartdoc-conventions, lint-and-style-config
Codegen / CI / dependenciescodegen-and-toolchain, run-codegen, ci-pipeline-and-gates, dependency-hygiene
Applying a schema migrationrun-migration
Re-baselining golden imagesrun-goldens-rebaseline
End-of-build design/QA reviewdesign-review-workflow
Animating, adding haptics, or designing a success/error momentmotion-and-haptics
Generating reproducible content from a seed or dateseeded-determinism-and-golden-vectors
Cutting a release, signing, store declarations, rolloutrelease-and-store-shipping
Adding ads, a paywall, or an entitlement gateads-and-iap-monetization

The canonical stack these skills assume

Flutter 3.2x · Dart 3.x · Riverpod 3.x for state + DI (with a Provider/ChangeNotifier appendix where relevant) · go_router · Material 3 · drift for local storage · intl/gen-l10n · very_good_analysis. Skills target a single-package app by default; monorepo / pub-workspace guidance is fenced under "when multi-package".

Note for agents editing this repository itself: the reusable assets are the skills in skills/. This file is meant to travel with the skills into a consuming project — copy its "How to use them" and "Intent → skill map" into that project's own AGENTS.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.