hoangnguyen0403/dart-best-practices
Dart code quality conventions: naming, const/final/var hierarchy, single quotes, trailing commas, collection idioms, tear-offs, and import organization. Use only for Dart style-focused changes or reviews; never activate for configuration-only lint setup, unrelated feature work, or widget tests.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill dart-best-practices
_.const > final > var.--dart-define for secrets. Never hardcode API keys.=> for single-expression functions/getters..map, .where, .fold, .any over manual loops when clarity improves.<String>[], <String, User>{}) to avoid dynamic.if/for and spread operators for composable lists/maps.await futures unless intentionally fire-and-forget.import 'models/user.dart'; // Good
import 'package:app/models/user.dart'; // Avoid local absolute
final or explicit type; var only for locally-obvious short scopes.list.forEach(doSomething) over anonymous form.Take hoangnguyen0403/dart-best-practices from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.