|-
dart_skills_lint into a
repository. For ongoing use — running the linter, interpreting
output, and writing custom rules — see the
dart-skills-lint-validation
skill. For copy-pasteable CI workflow and pre-commit hook recipes,
see the Recipes section of the README.dart_skills_lint as a dev_dependency. Prefer a git
dependency (the package isn't on pub.dev yet):dev_dependencies:
dart_skills_lint:
git:
url: https://github.com/flutter/skills.git
path: tool/dart_skills_lint
tool/ package when you can,
instead of putting it on the root pubspec.yaml — keeps the
linter's deps out of your runtime closure. If you must add it
to multiple pubspec.yaml files, ensure the ref: (commit
hash) is identical across all of them so resolution doesn't
diverge.dart_skills_lint.yaml at the repository root so both
the CLI and any embedded test invocation share the same config:dart_skills_lint:
rules:
check-relative-paths: error
check-trailing-whitespace: error
directories:
- path: ".agents/skills"
check-absolute-paths,
valid-yaml-metadata, invalid-skill-name,
description-too-long — only need to be listed if you want to
change their severity. See RULES.md for the
full list.dart run dart_skills_lint:cli --skills-directory=.agents/skills --generate-baseline