effective-dart

Enforces Effective Dart conventions for naming, types, imports, documentation, and testing in Dart and Flutter code.

1|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/sohampawar1866/zeromile-go --skill effective-dart-sohampawar1866
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effective-dart
Source: https://github.com/sohampawar1866/zeromile-go/tree/main/.agents/skills/effective-dart
Command: npx skills add https://github.com/sohampawar1866/zeromile-go --skill effective-dart-sohampawar1866

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, idiomatic Dart code is hard when teams interpret style guidelines differently. This Skill codifies the official Effective Dart guidelines into actionable rules so code reviews, refactoring, and new code all follow the same standard. ## Core Features & Use Cases - Style Enforcement: Applies naming conventions (UpperCamelCase, lowerCamelCase, lowercase_with_underscores), type annotation rules, and class modifier usage (final, sealed, interface). - Documentation Standards: Generates /// doc comments with single-sentence summaries, third-person verbs, and [identifier] references for public APIs. - Testing Patterns: Provides unit test templates with group/test and widget test templates using testWidgets and WidgetTester. - Use Case: When reviewing a Flutter pull request, use this Skill to verify naming, check that public members have doc comments, run dart format and dart analyze, and confirm zero issues before merging. ## Quick Start Review my Dart file for Effective Dart compliance and fix any naming, type annotation, or documentation issues.

Frequently Asked Questions about effective-dart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write idiomatic Dart code following Effective Dart?

Follow the official Effective Dart guidelines: use UpperCamelCase for classes, lowerCamelCase for variables and functions, annotate public API types, prefer final over var, and format with dart format. This Skill codifies those rules for writing and reviewing code.

How to review Dart code for style compliance?

Check naming conventions, type annotations on public APIs, class modifiers like final and sealed, and doc comments on public members. Then run dart format --set-exit-if-changed and dart analyze to confirm zero issues.

Does Effective Dart apply to Flutter widget code?

Yes, the same naming, typing, and documentation rules apply to Flutter code. The Skill also covers widget testing patterns using testWidgets and WidgetTester for verifying UI behavior like loading indicators.

When should I use sealed classes in Dart?

Use sealed classes when you need exhaustive pattern matching over a fixed set of subtypes, such as modeling Result types with Success and Failure variants. This lets the compiler verify all cases are handled in switch expressions.

What are the limitations of automated Dart style checks?

dart format and dart analyze catch formatting and static issues but cannot judge API design quality, naming clarity, or whether documentation explains why code exists. Human or AI-guided review is still needed for semantic guideline compliance.