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 ui-states-and-feedbackgit 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/ui-states-and-feedback)<a href="https://agentmods.dev/skills/zakariaf/flutter-skills/ui-states-and-feedback"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/ui-states-and-feedback/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/ui-states-and-feedback"><img src="https://agentmods.dev/badge/skills/zakariaf/flutter-skills/ui-states-and-feedback.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.00212 | $0.03699 |
| Opus 5 | $0.00106 | $0.01850 |
| Sonnet 5 | $0.00042 | $0.00740 |
| Haiku 4.5 | $0.00021 | $0.00370 |
Grade A, and why
ui-states-and-feedback 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 11d 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 — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI states and feedback
Most of a screen's code is the happy path; most of its defects are not. This skill
governs everything a screen shows when there is no data yet, no data at all, no data
matching the filter, a failure, or a write that just returned — and which surface each
of those is allowed to use. The first-frame/cold-start path belongs to
app-startup-and-bootstrap; the error values belong to error-handling-typed-results.
This skill is only about how they are rendered and announced.
Non-negotiable rules
- One state, resolved in one place. A screen renders exactly one of
loading / empty / error / content, chosen by a single
switchover anAsyncValueor a sealed view state. Never a triple ofisLoading,error,itemsbooleans. WHY: separate flags make impossible states representable — loading and error, empty and loading — and every such combination eventually renders. - The ViewModel decides the state; the View renders it. No
FutureBuilderorStreamBuilderwrapped around a repository call in the middle of a widget tree. WHY: state scattered across the tree cannot be tested without pumping widgets, and rebuilds re-fire the future. Seestate-management-riverpod,widget-composition. - Empty, filtered-empty, and error are three different screens. "You haven't added anything yet" (offer the primary action), "Nothing matches this filter" (offer to clear it), and "We couldn't load this" (offer retry) answer three different user questions. WHY: showing "no items" for a failed load teaches the user their data is gone.
- Never render an exception. No
e.toString(), no stack trace, no failure class name in the UI. Map the typedFailure.codeto a localized message via ARB. WHY: a raw exception is untranslatable, unactionable, and often leaks paths or ids. - Every error state offers a next action. Retry (
ref.invalidate(provider)), go back, or change the input — and retry must preserve scroll position, filters, and entered text. WHY: a dead-end error screen turns a transient failure into an uninstall. - A refresh never blanks the screen. While reloading, keep the previous content and
show a subtle indicator (
AsyncValue.when'sskipLoadingOnRefreshdefault, orvalueOrNull+isRefreshing). WHY: replacing a list with a spinner loses the user's place and reads as data loss. - Loading is a delayed skeleton shaped like the result — not a centered spinner.
Suppress it for roughly the first 150–300 ms so a fast load does not flash, and match
the final layout so nothing jumps when content arrives. WHY: a flash and a reflow are
two separate perceived defects; both are free to avoid. (Every duration in this skill
is a behavioral threshold, not a value to hardcode — the numbers themselves belong to
the duration tokens in
design-system-structure.) - An in-flight action shows progress on its own control, not over the app. Disable the button, show progress in it, keep the rest interactive. A full-screen modal barrier is earned only when continuing would corrupt state. WHY: a blocking barrier over a 200 ms write is the most common self-inflicted "the app froze".
- Pick the surface by the ladder: inline < snackbar < banner < dialog. Take the lowest one that works (table below). A modal is earned only by a decision that must resolve before the user can continue. WHY: every step up the ladder takes control away from the user, and dialogs are the only one that also blocks.
- Information the user must act on never lives only in a snackbar. It auto-dismisses, it can be missed entirely, and a screen reader may never reach it. Use a banner or an inline state for anything that still matters in ten seconds.
- Prefer soft delete + Undo over a confirmation dialog. Confirm only what is
genuinely irreversible, and then name the consequence ("Delete 12 notes permanently")
rather than asking "Are you sure?", with
barrierDismissible: false. WHY: Undo is faster for the 99% who meant it and safer for the 1% who did not. Seeerror-handling-typed-resultsfor the soft-delete write path. showDialog/showModalBottomSheetreturnFuture<T?>—nullmeans dismissed, and it is its own outcome. Switch over a sealed result and handle dismissal explicitly; never?? true. WHY:?? truesilently converts a tap outside the dialog into a confirmed deletion.- Capture
ScaffoldMessenger/Navigatorbefore theawait, guardmountedafter. Then show the snackbar. WHY: theBuildContextmay be gone when the write returns — this is the exactuse_build_context_synchronouslyhole (async-safety). - Announce what only the eye can see. A result that appears (saved, deleted,
retried, filtered) is announced with
liveRegion: trueorSemanticsService.announce, and auto-dismissal is lengthened or removed whenMediaQuery.accessibleNavigationOf(context)is true. WHY: a 4-second snackbar is invisible to a screen-reader user mid-sentence. Announcements are best-effort per platform — never the only channel for something important.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 271 lines · 212 tokens per session scan A 2f5b60f39426
ui-states-and-feedback is a skill published in the GitHub repository zakariaf/Flutter-Skills (2 stars, last pushed 13d ago), licensed MIT. It adds 212 tokens to every session and 3,699 once invoked, about $0.0011 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
animations
Best practices for Flutter animations using the built-in animation framework, covering implicit animations, explicit AnimationController animations, page transitions, and Material 3 motion tokens. Use when creating, modifying, or reviewing animations, transitions, motion, or animated widgets, and also for custom route…
android-compose-migration
Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.
android-compose
Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.
flutter-navigation
Implement navigation patterns with gorouter, deep linking, and named routes in Flutter. Use when building navigation, deep linking, or routing.
android-xml-views
Implement ViewBinding, RecyclerView, and XML layouts correctly on Android. Use when changing XML view binding or RecyclerView behavior, including its item animations and layout managers; defer standalone animation or layout-manager questions unrelated to RecyclerView.
maptiler
Expert coding skill for the full MapTiler platform — Cloud REST APIs, MapTiler SDK JS (built on MapLibre GL JS), native mobile SDKs, on-premise infrastructure, and vector tile schemas. USE WHEN the user wants to add a map to a web or mobile app, show locations or routes, display geographic data, build a store locator…