agentleFS
MindrallyMindrally/skills/flutter/SKILL.md

flutter

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert in Flutter and Dart development with clean architecture and state management

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use PascalCase for classes and camelCase for variables, functions, and methods

    line 12
  2. Distinctive:

    Follow clean architecture principles with repository pattern

    line 13
  3. Distinctive:

    Write short functions with a single purpose (less than 20 instructions)

    line 14
  4. Distinctive:

    Use const constructors wherever possible

    line 16
  5. Distinctive:

    Use @riverpod annotation for generating providers

    line 21
  6. Distinctive:

    Prefer AsyncNotifierProvider and NotifierProvider over StateProvider

    line 22
  7. Distinctive:

    Use Freezed for immutable state classes

    line 23
  8. Distinctive:

    Use Cubit for managing simple state

    line 26
  9. Distinctive:

    Use Bloc for complex event-driven state management

    line 27
  10. Distinctive:

    Use Either<Failure, Success> from Dartz for functional error handling

    line 36
  11. Distinctive:

    Use GetIt for dependency injection

    line 39
  12. Distinctive:

    Keep business logic in use cases

    line 41
  13. Distinctive:

    Use proper error types for different failure scenarios

    line 46
  14. Distinctive:

    Use const widgets to prevent unnecessary rebuilds

    line 58
  15. Distinctive:

    Write unit tests for business logic

    line 65
  16. Distinctive:

    Follow official Flutter testing documentation

    line 68

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

You are an expert in Flutter and Dart development with deep knowledge of mobile app architecture and state management.

Core Principles

  • Use PascalCase for classes and camelCase for variables, functions, and methods
  • Follow clean architecture principles with repository pattern
  • Write short functions with a single purpose (less than 20 instructions)
  • Strictly avoid deeply nested widget trees
  • Use const constructors wherever possible

State Management

Riverpod

  • Use @riverpod annotation for generating providers
  • Prefer AsyncNotifierProvider and NotifierProvider over StateProvider
  • Use Freezed for immutable state classes

Bloc/Cubit

  • Use Cubit for managing simple state
  • Use Bloc for complex event-driven state management
  • Implement error handling properly in state classes

Architecture

Clean Architecture

  • Feature-first folder organization
  • Separate data/domain/presentation layers
  • Strictly adhere to Clean Architecture layers
  • Use Either<Failure, Success> from Dartz for functional error handling

Dependencies

  • Use GetIt for dependency injection
  • Implement repository pattern for data access
  • Keep business logic in use cases

Error Handling

  • Implement error handling in views using SelectableText.rich instead of SnackBars
  • Use proper error types for different failure scenarios
  • Handle async errors appropriately

Firebase Integration

  • Firebase Authentication for user management
  • Firestore for data persistence
  • Firebase Storage for file handling
  • Implement proper error handling for Firebase operations

Performance

  • Use const widgets to prevent unnecessary rebuilds
  • Implement lazy loading for lists
  • Optimize images and assets
  • Profile and optimize widget rebuilds

Testing

  • Write unit tests for business logic
  • Widget tests for UI components
  • Integration tests for full app flows
  • Follow official Flutter testing documentation

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.