Dart Best Practices
Concise guidance for idiomatic Dart covering multi-line strings and line length, with explicit abstention rules.
- CCM score
- 57 of 100
- skills.sh installs
- 852
- GitHub stars
- 149
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers code style for Dart, focusing on multi-line string literals and an 80-character line length limit
- Includes a "when NOT to use" list: public API breaking changes, micro-optimizations, generated files, and explicit public type annotations
- Enforces readable wrapping via the
lines_longer_than_80_charsanalyzer lint and regex searches for+-based string concatenation - Designed for Dart developers writing or reviewing code, with a pointer to
dart-modern-featuresfor newer language features
Install
$ npx -y skills add kevmoo/dash_skills --skill dart-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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.
When NOT to use (Abstention Guardrails)
Do NOT apply this skill or refactor code when:
- Public API Breaking Changes: Refactoring would alter public API contracts, return types, or parameter signatures in published packages without a coordinated major SemVer bump.
- Dogmatic Micro-Optimizations: Rewriting clear, readable code for negligible theoretical gains (e.g. replacing clear string concatenation in a simple one-line log message with multiline quotes).
- Domain-Specific or Code-Generated Files: Generated files (
*.g.dart,*.freezed.dart, protobufs) or files where line lengths and string layouts are managed by code generators. - Explicit Type Annotations in Public Interfaces: Replacing explicit type
annotations with
varorfinalwhere explicit types document the public API surface or disambiguate complex generics.
2. Best Practices
Multi-line Strings
Details
- Repository
- github.com/kevmoo/dash_skills
- Category
- Code Review & Quality
- First seen
- May 16, 2026
More from kevmoo/dash_skills
All 6Similar to Dart Best Practices
More Code Review & Qualitycode-simplifierpproenca/dot-skills1.6K installsConcise guide that simplifies recently modified code while preserving exact behavior across 47 rules.
python-code-stylewshobson/agents17.7K installsModern Python style setup covering ruff linting, strict mypy typing, PEP 8 naming, and Google-style docstrings.
golang-code-stylesamber/cc-skills-golang47.3K installsGo code style conventions for clarity: line breaking, variable declarations, control flow, and when comments help.
code-quality-principlesathola/claude-night-market183 installsReference guide for applying KISS, YAGNI, and SOLID to refactoring and code review with language-specific examples.
dart-modern-featureskevmoo/dash_skills372 installsPractical guidelines for applying Dart 3.0 through 3.10 features like records, extension types, and class modifiers.
clean-codepproenca/dot-skills876 installsClean Code handbook rules for naming, functions, errors, and tests, with modern corrections applied.