flutter/definition-of-done
Mandatory checks to run before completing any task that touches md files or dart code in this repository.
npx skills add https://github.com/flutter/agent-plugins --skill definition-of-done
Use this skill to ensure that all work meets the repository standards before declaring a task complete or requesting review.
Before stating that a task is complete, you MUST execute and pass the following checks:
dart format . to format files, or dart format --output=none --set-exit-if-changed . to check without modifying. Ensure all files are formatted correctly.dart analyze --fatal-infos and ensure there are zero issues (including info-level issues).dart run cognitive_complexity --fail-threshold 48 lib test and ensure there are zero issues. This checks for cognitive complexity.dart test and ensure all tests pass successfully.dart run dart_skills_lint -d .agents/skills to ensure they are valid.CHANGELOG.md.CHANGELOG.md untouched and output [x] Changelog: (N/A) <reason>.You MUST include a text list of all mandatory verification steps in your final response to the user. Use the exact following format:
[x] <Identifier>: <Explanation> if the step was completed.[ ] <Identifier>: <Skipped explanation> if the step was skipped or not applicable.CRITICAL: Do not just copy the full step description text. You MUST use the exact bolded Identifier from the Mandatory Verification Steps list above, followed by a colon and your short explanation.
Examples:
[x] Format: dart format success.[x] Analysis: Static clean (0 issues, dart analyze --fatal-infos).[ ] Skills: Skipped because dart_skills_lint is not installed.[x] Changelog: (N/A) Not necessary since we're updating internal eval fixtures.[x] Temporal: no added words.Take flutter/definition-of-done from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.