Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kevmoo avatar

Dart Best Practices

  • 762 installs
  • 139 repo stars
  • Updated July 11, 2026
  • kevmoo/dash_skills

dart-best-practices is an Apache-2.0 Claude Code skill from kevmoo/dash_skills that delivers idiomatic Dart guidance on code style, Effective Dart, and language features for developers writing or reviewing Dart and Flutt

About

dart-best-practices is a skill from kevmoo/dash_skills licensed Apache-2.0 covering general Dart development best practices. Key features include code style guidelines, Effective Dart idioms, and language feature recommendations. The readme advises using multi-line strings with triple quotes instead of concatenating with plus and newline escapes for large SQL, HTML, or PEM blocks to satisfy readability rules. Developers reach for dart-best-practices when writing new Dart code, reviewing pull requests, or looking for idiomatic language usage across Flutter and server Dart projects. The skill applies during implementation and review rather than deployment or infrastructure setup.

  • Covers code style, effective Dart, and language features
  • Recommends multi-line strings (''') over concatenation with + and \n
  • Enforces 80-character line length target with documented exceptions
  • Provides regex patterns to discover string-concatenation candidates
  • Helps eliminate lines_longer_than_80_chars lint errors

Dart Best Practices by the numbers

  • 762 all-time installs (skills.sh)
  • +12 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #183 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kevmoo/dash_skills --skill dart-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs762
repo stars139
Security audit3 / 3 scanners passed
Last updatedJuly 11, 2026
Repositorykevmoo/dash_skills

What are idiomatic Dart best practices for code review?

Receive consistent, idiomatic Dart guidance while writing or reviewing code.

Who is it for?

Dart and Flutter developers who want consistent Effective Dart style guidance during implementation or pull request review.

Skip if: Teams working exclusively in TypeScript, Swift, or Kotlin without Dart codebases or style questions.

When should I use this skill?

A developer writes or reviews Dart code and needs idiomatic style, Effective Dart, or language-feature recommendations.

What you get

Review feedback and code changes aligned with Effective Dart, style guidelines, and idiomatic language-feature usage.

  • Style-aligned Dart code
  • Review feedback against Effective Dart

By the numbers

  • Lists three key features: code style guidelines, Effective Dart idioms, and language feature recommendations
  • Licensed under Apache-2.0

Files

SKILL.mdMarkdownGitHub ↗

Dart Best Practices

1. When to use this skill

Use this skill when:

  • Writing or reviewing Dart code.
  • Looking for guidance on idiomatic Dart usage.

2. Best Practices

Multi-line Strings

Prefer using multi-line strings (''') over concatenating strings with + and \n, especially for large blocks of text like SQL queries, HTML, or PEM-encoded keys. This improves readability and avoids lines_longer_than_80_chars lint errors by allowing natural line breaks.

Avoid:

final pem = '-----BEGIN RSA PRIVATE KEY-----\n' +
    base64Encode(fullBytes) +
    '\n-----END RSA PRIVATE KEY-----';

Prefer:

final pem = '''
-----BEGIN RSA PRIVATE KEY-----
${base64Encode(fullBytes)}
-----END RSA PRIVATE KEY-----''';

Line Length

Avoid lines longer than 80 characters, even in Markdown files and comments. This ensures code is readable in split-screen views and on smaller screens without horizontal scrolling.

Prefer: Target 80 characters for wrapping text. Exceptions are allowed for long URLs or identifiers that cannot be broken.

Discovery

Multi-line Strings

To find candidates for multi-line strings, search for string concatenation with + involving newlines:

  • Regex: ['"]\s*\+\s*['"]
  • Regex: \+\s*['"].*\\n

Line Length

  • Rely on the lines_longer_than_80_chars lint from the analyzer.

Related Skills

  • [dart-modern-features]: For idiomatic

usage of modern Dart features like Pattern Matching (useful for deep JSON extraction), Records, and Switch Expressions.

[dart-modern-features]: https://github.com/kevmoo/dash_skills/blob/main/skills/dart-modern-features/SKILL.md

Related skills

FAQ

When should developers use dart-best-practices?

dart-best-practices applies when writing or reviewing Dart code and seeking idiomatic usage guidance. The skill covers code style, Effective Dart idioms, and language feature recommendations for Flutter and server Dart.

What string style does dart-best-practices recommend?

dart-best-practices recommends multi-line strings using triple quotes instead of concatenating with plus and newline escapes. The pattern improves readability for large SQL queries, HTML blocks, and PEM-encoded keys.

Is Dart Best Practices safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Code Review & Qualitybackendtestingdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.