Dart tooling
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/dart-tooling
π§ The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill dart-toolingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Dart static analysis, linting, formatting, and code-generation standards. Use when touching analysis_options.yaml, running build_runner, configuring dart format line length, setting up DCM metrics, or adding pre-commit hooks via lefthook β and whenever a CI job fails on analyze or format steps. (triggers: analysis_options.yaml, build.yaml, build_runner, lefthook.yml, dart format, dart_code_metrics)
SKILL.md
2.0 KB, 407 tokens by cl100k_base, as published. Nobody here has run it
Tooling & CI
Priority: P1 (HIGH)
Standards for code quality, formatting, and generation.
Implementation Guidelines
- Linter: Use
analysis_options.yaml. Enforcealways_use_package_importsandrequire_trailing_commas. - Formatting: Use
dart format . --line-length 80. Run on every commit. - DCM: Use
dart_code_metricsfor complexity checks (Max cyclomatic complexity: 15). - Build Runner: Always use
--delete-conflicting-outputswith code generation. - CI Pipeline: All PRs MUST pass
analyze,format, andteststeps. - Imports: Group imports:
dart:,package:, then relative. - Documentation: Use
///for public APIs. Link symbols using[Class]. - Linting Commands:
flutter analyze --fatal-infos --fatal-warningsdart run dart_code_metrics:metrics analyze lib
- Pre-commit: Keep
lefthook.ymlin sync with analyze/format/metrics commands.
Code
# analysis_options.yaml
analyzer:
errors:
todo: ignore
missing_required_param: error
linter:
rules:
- prefer_single_quotes
- unawaited_futures
Anti-Patterns
- β
dart run build_runner buildwithout--delete-conflicting-outputsβ causes stale generated file conflicts that break compilation - β Running
flutter buildbeforeflutter analyzeβ analyze is fast and cheap; always fail fast by running it first - β
// ignore: lint_rulewithout an explanation comment β always annotate why the ignore is justified - β Skipping
dart formatin pre-commit β unformatted code breaks CI; enforce vialefthook.yml
Related Topics
language | testing
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.