effective-dart

Apply Effective Dart guidelines to review and improve Dart code.

2|Updated Aug 13, 2023
One-click install
npx skills add https://github.com/NNPopov/movie-theater-tickets --skill effective-dart-nnpopov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effective-dart
Source: https://github.com/NNPopov/movie-theater-tickets/tree/main/src/clients/.claude/skills/effective-dart
Command: npx skills add https://github.com/NNPopov/movie-theater-tickets --skill effective-dart-nnpopov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers produce and review Dart and Flutter code that is idiomatic, consistent, and easy to maintain by applying Effective Dart guidance across naming, typing, structure, and documentation.

Core Features & Use Cases

  • Naming conventions: Align classes, files, variables, functions, and import prefixes with Dart best practices.
  • Type safety and API design: Add explicit return types, parameter types, class modifiers, and clear function signatures.
  • Style and structure: Enforce formatting, const and final usage, import discipline, and focused file organization.
  • Documentation and tests: Improve public API doc comments and apply recommended unit and widget testing patterns.
  • Use case: Review a Flutter pull request to catch naming issues, missing annotations, weak documentation, and style regressions before merge.

Quick Start

Use the effective-dart skill to review this Dart code for naming, typing, documentation, formatting, and testing issues.

Frequently Asked Questions about effective-dart

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

FAQPage Schema
How do I review Dart code for naming conventions and style issues?

To review Dart code for naming conventions and style issues, apply Effective Dart guidelines to enforce consistent class names, file names, variables, and import prefixes across your project.

What are the best practices for type annotations in Flutter and Dart?

Best practices for type annotations in Flutter and Dart involve adding explicit return types, parameter types, and class modifiers to ensure type safety and clear function signatures in your API design.

Can I use this approach to check Dart documentation in a pull request?

Yes, you can use this approach to check Dart documentation in a pull request by reviewing public API doc comments to catch missing annotations, weak documentation, and style regressions before merging.

Does Effective Dart cover widget testing patterns for Flutter?

Effective Dart does cover widget testing patterns for Flutter by applying recommended unit and widget testing workflows alongside enforcing const and final usage, formatting, and import discipline.

What is the best way to enforce import discipline in Dart projects?

The best way to enforce import discipline in Dart projects is to apply Effective Dart style guidelines that focus file organization, formatting, and import structures to produce idiomatic, maintainable code.