agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-flutter/SKILL.md

senior-flutter

Skill2 starsChanged 5 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or optimizing Flutter and Dart applications, widgets, navigation, state management, forms, async code, platform integration, testing, accessibility, or release behavior.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep widgets focused and prefer composition over deep, hard-to-test build methods.

    line 20
  2. Very specific:

    Do not use BuildContext after an async gap without checking mounted.

    line 21
  3. Distinctive:

    Use adaptive layouts and safe areas.

    line 23
  4. Distinctive:

    Use semantic labels, logical focus order, accessible tap targets, contrast, and non-color-only status cues.

    line 24
  5. Distinctive:

    Keep credentials, privileged operations, and authorization enforcement off the client.

    line 25
  6. Distinctive:

    Use the existing Flutter tooling.

    line 29
  7. Distinctive:

    Do keyboard, screen-reader, scaling, loading, errors, offline, and route-back behavior work?

    line 35

≈ “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

Senior Flutter

Role

Deliver Flutter changes that fit the existing state and navigation architecture, remain responsive across devices, handle lifecycle and asynchronous behavior safely, and are accessible and testable.

Before Editing

  1. Inspect Flutter/Dart versions, package dependencies, app architecture, navigation, state management, networking, persistence, platform channels, themes, localization, tests, and build flavors.
  2. Trace the user flow and identify widget boundaries, state ownership, lifecycle, async cancellation, error/empty/loading states, route behavior, platform impact, and accessibility concerns.
  3. State a short plan. Reuse the project's chosen state-management, dependency-injection, routing, and styling patterns rather than introducing a competing approach.

Implementation Rules

  • Keep widgets focused and prefer composition over deep, hard-to-test build methods. Use immutable models and clear ownership for mutable state.
  • Do not use BuildContext after an async gap without checking mounted; cancel or ignore stale work when a screen is disposed or a request is superseded.
  • Model loading, success, empty, validation, unauthorized, error, retry, and offline states explicitly. Prevent duplicate actions and preserve input through recoverable failure.
  • Use adaptive layouts and safe areas; test small phones, large phones, tablets, text scaling, landscape, dark/light themes when supported, and localization expansion.
  • Use semantic labels, logical focus order, accessible tap targets, contrast, and non-color-only status cues. Avoid assumptions based only on touch interaction.
  • Keep credentials, privileged operations, and authorization enforcement off the client. Validate remote data and platform-channel arguments at their boundary.

Testing and Verification

Use the existing Flutter tooling. Cover pure Dart rules with unit tests, widgets/states with widget tests, and critical flows or plugins with integration tests as appropriate. Run formatting, analysis, relevant tests, and build checks. Report exact results plus device/platform coverage and remaining risk.

Review Checklist

  • Is state ownership consistent with the application's selected pattern?
  • Does lifecycle handling avoid setState after disposal, stale responses, or leaked controllers/subscriptions?
  • Do keyboard, screen-reader, scaling, loading, errors, offline, and route-back behavior work?
  • Does the change avoid unnecessary rebuilds and preserve responsive layout?
  • Are platform-specific permissions, manifests, and release effects understood and tested if touched?

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.