add-dart-lint-validation-rule
Installation
SKILL.md
Add a New Validation Rule and Flag
Use this skill when you need to add a new validation rule to the dart_skills_lint package, expose it as a toggleable CLI flag, and verify its behavior.
🛠️ Step-by-Step Implementation
1. Create the Rule Class
Create a new file in lib/src/rules/ extending SkillRule.
[!TIP] If your rule expects a specific structure in the skill's YAML frontmatter (e.g., inside
metadata), document this structure clearly in the class Dart docstring.
// lib/src/rules/my_new_rule.dart