agentleFS
evolplusevolplus/talos/skills/flutter-implementation/SKILL.md

flutter-implementation

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Flutter implementation guidance for FE Dev. Use after fe-framework-coding-standard selects Flutter, when building or reviewing widgets, pages, state, navigation, theming, accessibility, selectors, and ordinary Dart/widget tests without changing native platform channels.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this after fe-framework-coding-standard selects Flutter for the task surface.

    line 14
  2. Distinctive:

    Use Dart and state safely:

    line 38
  3. Distinctive:

    keep null safety and strong types.

    line 39
  4. Very specific:

    avoid dynamic except at explicit untyped boundaries.

    line 41
  5. Very specific:

    use constraints, LayoutBuilder, adaptive widgets, and scroll behavior.

    line 44
  6. Distinctive:

    keep fixed dimensions limited to controls whose format requires them.

    line 46
  7. Distinctive:

    Add accessibility and instrumentation:

    line 47
  8. Very specific:

    add Key values and Semantics(identifier: ...) only from docs/instrumentation-contract.md.

    line 48
  9. Distinctive:

    use semantic labels, hints, roles, and focus order when visible UI is insufficient.

    line 49
  10. Distinctive:

    keep minimum touch targets at least 48 x 48 logical pixels unless the project standard is stricter.

    line 50
  11. Distinctive:

    update widget tests for rendering, validation, and state transitions.

    line 52
  12. Very specific:

    update unit tests for blocs/notifiers/repositories when logic changes.

    line 53
  13. Very specific:

    update Patrol/Maestro integration tests only when the task changes a critical flow, following ui-test-execution.

    line 54
  14. Very specific:

    run dart format, flutter analyze, relevant unit/widget tests, and platform build checks when touched files require it.

    line 55
  15. Distinctive:

    Do not introduce a second state architecture, router, UI kit, or test framework without an approved ADR.

    line 59
  16. Distinctive:

    Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.

    line 60
  17. Very specific:

    Do not put business rules, network calls, or long-lived subscriptions directly inside build().

    line 61
  18. Distinctive:

    Do not create controllers, streams, or animation controllers without disposal.

    line 62
  19. Distinctive:

    Do not close the task while any required manifest row is missing from source or tests.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flutter Implementation

When to use

Use this after fe-framework-coding-standard selects Flutter for the task surface. This is the default Flutter implementation skill for widgets, pages, state, theming, navigation, accessibility, instrumentation, and normal unit/widget test work.

For platform channels, permissions, flavors, deep links, app lifecycle, native files, or secure storage, also load flutter-platform-integration. For rebuild, list, image, animation, startup, memory, or jank work, also load flutter-performance.

Inputs and outputs

  • Inputs: task file, SRS Frontend-Framework: and §3.4.5 source layout, §3.4.6 frontend env keys, design handoff, Design Element Manifest, visual spec, instrumentation contract, API contracts, current Flutter source tree.
  • Outputs: Flutter code that fits the existing app architecture, implements every manifest row, uses declared runtime config, exposes stable keys/semantics, preserves accessibility, and updates relevant unit/widget tests.

Procedure

  1. Identify the app architecture:
    • feature/module layout under lib/;
    • state approach: Bloc/Cubit, Riverpod, Provider, ValueNotifier, setState, or project wrapper;
    • navigation: Navigator, GoRouter, AutoRoute, or project wrapper;
    • theming: ThemeData, extensions, generated tokens, shared widgets.
  2. Keep boundaries clean:
    • pages/screens own navigation, async state, permissions, and orchestration;
    • widgets render manifest sections and emit typed callbacks;
    • repositories/services stay outside widgets when the project has a data layer.
  3. Implement from the Design Element Manifest:
    • render every field, label, placeholder, action, state copy, list/card item, and dialog/snackbar row;
    • preserve Figma order unless product behavior requires a documented deviation;
    • include initial, loading, data, empty, validation error, recoverable error, denied permission, disabled, and refreshing states where applicable.
  4. Use Dart and state safely:
    • keep null safety and strong types;
    • convert external data into typed models quickly;
    • avoid dynamic except at explicit untyped boundaries;
    • dispose controllers, focus nodes, animation controllers, streams, and subscriptions.
  5. Build adaptive mobile UI:
    • use constraints, LayoutBuilder, adaptive widgets, and scroll behavior;
    • respect safe areas, keyboard insets, text scaling, platform navigation, and orientation;
    • keep fixed dimensions limited to controls whose format requires them.
  6. Add accessibility and instrumentation:
    • add Key values and Semantics(identifier: ...) only from docs/instrumentation-contract.md;
    • use semantic labels, hints, roles, and focus order when visible UI is insufficient;
    • keep minimum touch targets at least 48 x 48 logical pixels unless the project standard is stricter.
  7. Test and verify:
    • update widget tests for rendering, validation, and state transitions;
    • update unit tests for blocs/notifiers/repositories when logic changes;
    • update Patrol/Maestro integration tests only when the task changes a critical flow, following ui-test-execution;
    • run dart format, flutter analyze, relevant unit/widget tests, and platform build checks when touched files require it.

Hard rules

  • Do not introduce a second state architecture, router, UI kit, or test framework without an approved ADR.
  • Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.
  • Do not put business rules, network calls, or long-lived subscriptions directly inside build().
  • Do not create controllers, streams, or animation controllers without disposal.
  • Do not close the task while any required manifest row is missing from source or tests.

References

  • ../fe-framework-coding-standard/SKILL.md - framework router and universal FE rules.
  • ../flutter-performance/SKILL.md - Flutter rebuild, list, image, animation, and startup performance.
  • ../flutter-platform-integration/SKILL.md - platform channels, permissions, flavors, storage, and native files.
  • ../ui-test-execution/SKILL.md - Patrol/Maestro selector, fixture, determinism, and reporting rules.

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.