effective-dart

Enforce Effective Dart guidelines across Dart and Flutter codebases.

Updated Jun 30, 2025
One-click install
npx skills add https://github.com/hnvcam/teno_mindmap --skill effective-dart-hnvcam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effective-dart
Source: https://github.com/hnvcam/teno_mindmap/tree/main/.qwen/skills/effective-dart
Command: npx skills add https://github.com/hnvcam/teno_mindmap --skill effective-dart-hnvcam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write high-quality, idiomatic Dart and Flutter code by enforcing Effective Dart guidelines, improving code readability, maintainability, and consistency.

Core Features & Use Cases

  • Naming Conventions: Ensures consistent and descriptive naming for classes, variables, functions, and files.
  • Type Safety: Promotes the correct use of types, annotations, and generics for robust code.
  • Code Style: Guides formatting, brace usage, and the use of final and const for cleaner code.
  • Import & File Structure: Recommends best practices for organizing code and managing dependencies.
  • Documentation: Emphasizes clear and concise documentation for public and private APIs.
  • Testing: Encourages writing unit and widget tests for comprehensive coverage.
  • Widget Best Practices: Advises on creating reusable widgets and keeping build methods simple.
  • State Management: Recommends choosing appropriate state management solutions and keeping state local.
  • Performance: Offers tips for optimizing code, such as using const constructors and avoiding expensive operations in build methods.
  • Use Case: When writing a new Flutter widget, use this Skill to ensure all naming, typing, and structural conventions are followed according to Effective Dart guidelines.

Quick Start

Review the provided Dart code snippet to ensure it adheres to Effective Dart naming conventions.

Frequently Asked Questions about effective-dart

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

FAQPage Schema
How do I enforce Effective Dart guidelines for naming conventions and code style?

To enforce Effective Dart guidelines, apply established best practices for naming classes, variables, and files, while using final and const for cleaner, more readable code.

What is the best way to structure Dart imports and files for maintainability?

The best way to structure Dart imports and files is by following recommended best practices for organizing code and managing dependencies, which improves overall code maintainability and consistency.

How do I improve Flutter widget design and state management according to best practices?

Improve Flutter widget design by creating reusable widgets, keeping build methods simple, choosing appropriate state management solutions, and maintaining local state for robust performance.

Can I use this to check if my Dart code follows proper type safety and documentation standards?

Yes, you can verify type safety by ensuring correct usage of types, annotations, and generics, while emphasizing clear and concise documentation for both public and private APIs.

When should I optimize Flutter performance and write tests for my Dart codebase?

Optimize Flutter performance by using const constructors and avoiding expensive operations in build methods, and write unit and widget tests to ensure comprehensive coverage and robust code.