flutter

mindrally/skills · updated Apr 8, 2026

$npx skills add https://github.com/mindrally/skills --skill flutter
0 commentsdiscussion
summary

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

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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.728 reviews
  • Chaitanya Patil· Dec 28, 2024

    Useful defaults in flutter — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Isabella Perez· Dec 20, 2024

    Useful defaults in flutter — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Piyush G· Nov 19, 2024

    flutter has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Aarav Verma· Nov 11, 2024

    flutter has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Shikha Mishra· Oct 10, 2024

    Solid pick for teams standardizing on skills: flutter is focused, and the summary matches what you get after install.

  • Aarav Thomas· Oct 2, 2024

    Solid pick for teams standardizing on skills: flutter is focused, and the summary matches what you get after install.

  • Lucas Dixit· Sep 25, 2024

    flutter reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Rahul Santra· Sep 21, 2024

    Registry listing for flutter matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Diego Huang· Sep 17, 2024

    flutter fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Lucas Martin· Aug 16, 2024

    Registry listing for flutter matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 28

1 / 3