
Skill
dart-skills-lint-setup
configure dart_skills_lint for Dart projects
Description
Use this skill when you need to set up validation for AI agent skills in a Dart project for the first time. Adds the linter as a dev_dependency, creates a configuration file, and generates a baseline for legacy repos.
SKILL.md
Setting up Skill Validation with dart_skills_lint
This skill covers first-time wiring of 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.
Steps
- Add
dart_skills_lintas adev_dependency. Prefer a git dependency (the package isn't on pub.dev yet):dev_dependencies: dart_skills_lint: git: url: https://github.com/flutter/agent-plugins.git path: tool/dart_skills_lint
Isolate the dependency in atool/package when you can, instead of putting it on the rootpubspec.yaml— keeps the linter's deps out of your runtime closure. If you must add it to multiplepubspec.yamlfiles, ensure theref:(commit hash) is identical across all of them so resolution doesn't diverge. - Create
dart_skills_lint.yamlat 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"
Rules enabled by default —check-absolute-paths,valid-yaml-metadata,invalid-skill-name,description-too-long— only need to be listed if you want to change their severity. SeeRULES.mdfor the full list. - Generate a baseline if you're integrating into a repository
with pre-existing skills that have legacy violations you don't
want to fix immediately:
dart run dart_skills_lint:cli --skills-directory=.agents/skills --generate-baseline
This writes the current set of failures into an ignore file so the next run exits clean. New violations introduced after the baseline still surface as errors. - Wire it into CI. Use the GitHub Actions recipe from the README verbatim, or follow the pre-commit hook recipe below it.
When you're done
The dart-skills-lint-validation skill takes over from here for day-to-day use.
More skills from the agent-plugins repository
View all 24 skillsdart-add-unit-test
write unit tests for Dart code
Jul 15DartTestingdart-build-cli-app
build Dart command line applications
Jul 15CLIDartdart-collect-coverage
collect Dart test coverage reports
Jul 15DartReportingTestingdart-fix-runtime-errors
debug and fix Dart runtime errors
Jul 15DartDebuggingdart-generate-test-mocks
generate mock objects for Dart tests
Jul 15DartTestingdart-migrate-to-checks-package
migrate test matchers to checks package
Jul 15DartMigrationTesting
More from Flutter (Google)
View publisherdart-resolve-package-conflicts
resolve Dart package version conflicts
agent-plugins
Jul 15DartDebuggingEngineeringdart-run-static-analysis
run static analysis and apply fixes
agent-plugins
Jul 15Code AnalysisDartDebuggingdart-setup-ffi-assets
package C/C++ assets for Dart
agent-plugins
Jul 15DartDeploymentEngineeringdart-skills-lint-validation
validate agent skills with dart_skills_lint
agent-plugins
Jul 21DartPlugin DevelopmentQAdart-use-ffigen
generate FFI bindings with ffigen
agent-plugins
Jul 15DartEngineering