dart-best-practices

Agent Skills for Dart and Flutter ecosytem

Installation
CLI
npx skills add https://github.com/kevmoo/dash_skills --skill dart-best-practices

Installez cette compétence avec la CLI et commencez à utiliser le flux de travail SKILL.md dans votre espace de travail.

Dernière mise à jour le 5/9/2026

Personal skills created by kevmoo for Dart and Flutter.

For official skills, see:

These skills follow the
Agent Skills standard, enabling agents to perform
complex specialized tasks with high reliability.

  • Dart Best Practices — General best practices for Dart development. Covers code style, effective Dart, and language features.
    npx skills add kevmoo/dash_skills --skill dart-best-practices
    
  • Dart Doc Validation — Best practices for validating Dart documentation comments. Covers using dart doc to catch unresolved references and macros.
    npx skills add kevmoo/dash_skills --skill dart-doc-validation
    
  • Dart Long Lines — Guidelines for handling long lines in Dart code to adhere to the 80-column rule. The lines_longer_than_80_chars lint.
    npx skills add kevmoo/dash_skills --skill dart-long-lines
    
  • Dart Matcher Best Practices — Best practices for using expect and package:matcher. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.
    npx skills add kevmoo/dash_skills --skill dart-matcher-best-practices
    
  • Dart Modern Features — Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Pattern Matching, Switch Expressions, Extension Types, Class Modifiers, Wildcards, Null-Aware Elements, and Dot Shorthands.
    npx skills add kevmoo/dash_skills --skill dart-modern-features
    
  • Dart Multi-line Strings — Guidelines and best practices for refactoring consecutive prints, single-line string concatenations, and complex output blocks into triple-quoted multi-line string literals (''' or """) in Dart.
    npx skills add kevmoo/dash_skills --skill dart-multiline-strings
    
  • Dart Package Maintenance — Guidelines for maintaining external Dart packages, covering versioning, publishing workflows, and pull request management. Use when updating Dart packages, preparing for a release, or managing collaborative changes in a repository.
    npx skills add kevmoo/dash_skills --skill dart-package-maintenance
    
  • Dart Test Fundamentals — Core concepts and best practices for package:test. Covers test, group, lifecycle methods (setUp, tearDown), and configuration (dart_test.yaml).
    npx skills add kevmoo/dash_skills --skill dart-test-fundamentals
    

🚀 Usage

To use these skills with an agent (like AntiGravity
or Gemini CLI):

  1. Ingest: The agent reads the .agent/skills directory.
  2. Activate: Each skill contains a SKILL.md defining when and how it should be used.
  3. Execute: The agent follows the structured workflows and patterns defined in the skill files.

🛠️ Contributing

  1. Create a new directory in .agent/skills/.
  2. Add a SKILL.md with the required frontmatter.
  3. Include any necessary scripts or resources.

Learn more at agentskills.io