/dart-skills-lint-setup
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.
$ npx -y skills add flutter/agent-plugins --skill dart-skills-lint-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/dart-skills-lint-setup
Context preview
The summary Claude sees to decide when to auto-load this skill.
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
dart-skills-lint-setup.SKILL.mdname: dart-skills-lint-setup
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.
metadata:
internal: true
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`](../dart-skills-lint-validation/SKILL.md) skill. For copy-pasteable CI workflow and pre-commit hook recipes, see the [`Recipes` section of the README](../../README.md#recipes).
Steps
1. **Add `dart_skills_lint` as a `dev_dependency`.**
dev_dependencies:
dart_skills_lint: ^0.5.0**Isolate the dependency** in a `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.
2. **Create `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"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. See [`RULES.md`](../../RULES.md) for the full list.
3. **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.
4. **Wire it into CI.** Use the [GitHub Actions recipe](../../README.md#recipes) from the README verbatim, or follow the [pre-commit hook recipe](../../README.md#recipes) below it.
When you're done
The dart-skills-lint-validation skill takes over from here for day-to-day use.
Read more
name: dart-skills-lint-setup 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. metadata: internal: true
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`](../dart-skills-lint-validation/SKILL.md) skill. For copy-pasteable CI workflow and pre-commit hook recipes, see the [`Recipes` section of the README](../../README.md#recipes).
Steps
1. **Add `dart_skills_lint` as a `dev_dependency`.**
dev_dependencies:
dart_skills_lint: ^0.5.0**Isolate the dependency** in a `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.
2. **Create `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"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. See [`RULES.md`](../../RULES.md) for the full list.
3. **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.
4. **Wire it into CI.** Use the [GitHub Actions recipe](../../README.md#recipes) from the README verbatim, or follow the [pre-commit hook recipe](../../README.md#recipes) below it.
When you're done
The dart-skills-lint-validation skill takes over from here for day-to-day use.
Agent plugins for Flutter, maintained by the Flutter team. A collection of plugins designed to extend AI agent capabilities for Flutter development.
Other skills on dart-flutter.
- /dart-add-unit-test
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Open skill - /dart-build-cli-app
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Open skill - /dart-collect-coverage
Collect coverage using the coverage packge and create an LCOV report
Open skill - /dart-fix-runtime-errors
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Open skill - /dart-generate-test-mocks
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Open skill - /dart-migrate-to-checks-package
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Open skill

