Dart rules

From softspark/ai-toolkit · View interactive version

Dart rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Dart/Flutter coding rules: style, patterns, security, testing. Triggers: .dart, pubspec.yaml, Flutter, Riverpod, Bloc, widget, StatelessWidget, StatefulWidget.

How to use this skill

Skill file

Dart/Flutter Rules

These rules come from app/rules/dart/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Dart/Flutter. Apply them when writing or

reviewing Dart/Flutter code.

Dart Coding Style

Naming

Null Safety

Classes

Functions

Collections

Async

Imports

Formatting

Dart Frameworks

Flutter

Navigation

Networking

JSON Serialization

Local Storage

Dependency Injection

Platform Channels

Testing Frameworks

Build and CI

Dart Patterns

Error Handling

State Management (Flutter)

Riverpod

BLoC Pattern

Repository Pattern

Freezed (Code Generation)

Async Patterns

Anti-Patterns

Dart Security

Input Validation

Network Security

Data Storage

Authentication

Platform Channel Security

Obfuscation and Hardening

WebView Security

Dependency Security

Dart Testing

Framework

File Naming

Structure

Assertions

Mocking (Mockito)

Widget Testing (Flutter)

Golden Tests

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.