Agent skill
Dart Tooling & CI
Standards for analysis, linting, formatting, and automation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tooling-hoangnguyen0403-agent-skills-standar
Metadata
Additional technical details for this skill
- labels
-
tooling linting automation
- triggers
-
{ "files": [ "analysis_options.yaml", "pubspec.yaml", "build.yaml" ], "keywords": [ "analysis_options", "lints", "format", "build_runner", "cider", "husky" ] }
SKILL.md
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
Related Topics
language | testing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?