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.
npx skills add zakariaf/Flutter-Skills --skill flutter-conventions-indexgit clone --depth 1 https://github.com/zakariaf/Flutter-SkillsWrote 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.
[](https://agentmods.dev/skills/zakariaf/flutter-skills/flutter-conventions-index)<a href="https://agentmods.dev/skills/zakariaf/flutter-skills/flutter-conventions-index"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/flutter-conventions-index/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.
<a href="https://agentmods.dev/skills/zakariaf/flutter-skills/flutter-conventions-index"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/flutter-conventions-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00143 | $0.04182 |
| Opus 5 | $0.00072 | $0.02091 |
| Sonnet 5 | $0.00029 | $0.00836 |
| Haiku 4.5 | $0.00014 | $0.00418 |
Grade A, and why
flutter-conventions-index 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flutter Conventions — Index
The front door for this Flutter/Dart app. It states the cross-cutting house rules every task obeys, then routes each concern to a focused skill. For any non-trivial task: apply the rules here, then open the specialized skill for depth. This is the only skill that names every other skill in the library.
Assumes a single-package Flutter app by default. Monorepo / pub-workspace guidance is fenced inside the skills that own it (project-structure-and-packages, codegen-and-toolchain) — never required for a small app.
Non-negotiable rules
- Feature-first, layered, downward-only. Group by feature (a folder), then by layer: View → ViewModel → Repository → Service/data. Lower layers never import upward; the dependency graph is a strict DAG. WHY: an acyclic downward graph is the only structural guard against a big ball of mud. (
flutter-architecture,project-structure-and-packages) - Widgets are dumb. No business logic, data access, math, or formatting in a widget — it reads state and renders. WHY: logic in
build()is untestable and rebuilds unpredictably. (widget-composition) - One ViewModel per screen, over immutable state. A single
Notifier/AsyncNotifierowns private mutable state and exposes it as an immutable value with value equality; a transition assigns a new state, never mutates in place. WHY: immutable value + single owner makes every change diffable and testable. (state-management-riverpod) - Riverpod 3.x is state + DI. Modern
Notifier/AsyncNotifier/Future/Streamproviders only; providers are the DI container. Noget_it, nopackage:provider, no legacyStateProvider/StateNotifierProvider/ChangeNotifierProvider. WHY: one composition model, no second DI framework to reconcile. (state-management-riverpod,app-startup-and-bootstrap) - Single write path. A widget or ViewModel never mutates persisted state directly; every mutation is a repository method that persists first, then republishes via a stream. WHY: one durable, observable route means state is never half-written. (
state-management-riverpod,persistence-drift) - Derive, don't store; depend on abstractions. Compute derived values on read instead of caching a second copy; program against interfaces you inject, not concretes. WHY: a duplicated source of truth drifts out of sync; injected seams keep code testable. (
flutter-architecture,service-boundary-and-native) - Immutable models, typed errors. Domain and UI state are
freezed/sealed value types withcopyWithand value equality. Pure functions are total — they return uncertainty, never throw. Recoverable I/O returns a sealedResult<T, F extends Failure>, switched exhaustively; never a swallowedcatch (_) {}. WHY: the compiler enforces every case; failures carry a stable code, not a localized string. (error-handling-typed-results,dart3-idioms-and-coding-standards) - Side effects behind injected interfaces. Every platform/native effect (clock, notifications, share, analytics, storage) is a Dart interface behind a provider, overridden once at the composition root, faked in tests. Read "now" from an injected
Clock, neverDateTime.now(). WHY: a global side effect is a non-deterministic, untestable dependency. (service-boundary-and-native,value-objects-money-and-units) - Async is never silent.
awaiteverything or handle theFutureexplicitly; no fire-and-forget arrow callbacks. GuardBuildContext/mountedafter everyawait; dispose controllers, subscriptions, timers, and sinks. WHY: a droppedFutureswallows errors no lint catches. (async-safety) - Small units, extracted widget classes. Keep to the complexity-limit table owned by
dart3-idioms-and-coding-standards(method ≤30,build()≤80, file ≤300, positional params ≤3, logic nesting ≤3 — widget build trees may nest to ≤5 as the stated exception). ExtractconstStatelessWidgetclasses, never_buildX()methods;consteverywhere legal. WHY: small const subtrees rebuild less and read faster. (dart3-idioms-and-coding-standards,widget-composition,flutter-performance) - Names carry roles.
…Screen/…Notifier/…Repository/…Service/…Failure; Effective-Dart casing verbatim; full words with units in the name; file named after its primary declaration. WHY: a grep or a filename should reveal the layer. (naming-conventions) - RTL and a11y by construction. Use directional (
start/end) geometry only, never hardcoded left/right; every user string comes from an ARB viagen_l10n; label and role every semantic node; never clamp the text scaler or rely on color alone. WHY: correctness properties are cheap to build in and expensive to retrofit. (i18n-rtl-l10n,accessibility-as-code) - Test the shape of the code, not a fixed ratio. Pure core: fast, clock-injected
package:test+ property invariants. Everything else:flutter_test+mocktail,ProviderContainer.test()+overrideWith— fake the repository/services, not theNotifier. One acceptance test anchors the whole app. WHY: tests follow risk; the pure core carries the invariants. (testing-strategy,widget-golden-and-a11y-testing) - Strict lint is the floor; format is not negotiable.
dart formatclean anddart analyze --fatal-infosgreen before every PR, on a version-pinnedvery_good_analysisinclude withstrict-casts/strict-raw-types. WHY: a green analyzer is the cheapest correctness signal you have. (lint-and-style-config,dependency-hygiene)
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.
- 9d ago First seen · 201 lines · 143 tokens per session scan A 84237da88070
flutter-conventions-index is a skill published in the GitHub repository zakariaf/Flutter-Skills (2 stars, last pushed 11d ago), licensed MIT. It adds 143 tokens to every session and 4,182 once invoked, about $0.0007 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-08-31.
Other skills, from other repositories
common-store-changelog
Generate user-facing release notes for the App Store and Google Play from git history (App Store <=4000 chars, Google Play <=500). Use when generating release notes, app store changelog, play store release, or "what's new" text for a mobile app.
android-navigation-3
Install and migrate to Jetpack Navigation 3. Use when implementing Navigation 3 patterns including NavDisplay, NavKey routes, deep links, multiple backstacks, scenes (dialogs, bottom sheets), or migrating from Navigation 2.
flutter-auto-route-navigation
Implement typed routing, nested routes, and auth guards using autoroute in Flutter. Use when the task explicitly uses autoroute or its generated router; defer generic deep-link setup and other routing libraries.
flutter-dependency-injection
Configure service locator setup using injectable and getit in Flutter. Use when wiring dependency injection with getit or injectable.
flutter-getx-state-management
Implement reactive state with GetX controllers, bindings, and observables in Flutter. Use when managing app state with GetxController, Obx, GetBuilder, or dependency lifecycle—not unit tests for existing controllers.
accessibility
Audits or remediates Flutter widgets against WCAG 2.2 conformance levels A, AA, or AAA across iOS, Android, Web, macOS, Windows, and Linux, covering Semantics labels and screen reader output under VoiceOver and TalkBack, touch target sizes, dragging alternatives, focus order and keyboard navigation, color contrast…