Uh oh!
There was an error while loading. Please reload this page.
Add dart_skills_lint to devtools and configure it to run in the cli and in tests - #9770
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
reidbaker
commented
Apr 16, 2026
I think this is ready for a second pass. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| build_runner: ^2.5.4 | ||
| flutter_lints: ^5.0.0 | ||
| # Update to published version tracked in https://github.com/flutter/devtools/issues/9771 | ||
| dart_skills_lint: |
There was a problem hiding this comment.
why do we need the dep here and in tool/pubspec.yaml?
Co-authored-by: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com>
Co-authored-by: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com>
| dev_dependencies: | ||
| build_runner: ^2.5.4 | ||
| flutter_lints: ^5.0.0 | ||
There was a problem hiding this comment.
FWIW the reason dart_skills_lint was added here was for ease of cli usage. The comment to share yaml configs is what lead me to move it all to the tools package.
| @@ -0,0 +1,10 @@ | |||
| { | |||
| "skills": { | |||
| "adding-release-notes": [ | |||
There was a problem hiding this comment.
This is still required because the example for image does not resolve.
| dev_dependencies: | ||
| build_runner: ^2.5.4 | ||
| flutter_lints: ^5.0.0 | ||
| dev_dependencies: | ||
| build_runner: ^2.5.4 | ||
| flutter_lints: ^5.0.0 | ||
There was a problem hiding this comment.
FWIW the reason dart_skills_lint was added here was for ease of cli usage. The comment to share yaml configs is what lead me to move it all to the tools package.
Uh oh!
There was an error while loading. Please reload this page.
…nd in tests (flutter#9770) * add dart skills lint test and yaml config with instructions for how to use * Add ignore file for valid links that are triggering false positives * resolve readme to correct location * Copyright added to new files and issue linked in pubspec * Add link to yaml configuration feature * presubmit feedback * Update tool/test/validate_skills_test.dart Co-authored-by: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com> * Update pubspec.yaml Co-authored-by: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com> * Fix one relative path issues, update version of dart_skills_lint * remove the root dependency on dart_skills_lint * Change todo format * Remove double trailing line --------- Co-authored-by: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com>
Add linting to skills repo and fix one skill that used _ instead of kebab case as is defined in the spec https://agentskills.io/specification#name-field. This is similar to the prs to add linting to flutter skills in flutter/flutter#185033 and dev/tool flutter/devtools#9770 AI Assisted pr: antigravity, dragonally Prompt: """ use the skill in /Users/reidbaker/Documents/flutter-skills/tool/dart_skills_lint/skills/dart-skills-lint-validation/SKILL.md to add a test to [dash_site](directory;file:///Users/reidbaker/Documents/dart-lang-site-www/tool/dash_site)/test that validates the skills in @Directory:agents/skills """ --- - [ ] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] This PR doesn't contain automatically generated corrections or text (Grammarly, LLMs, and similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`. - Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/packages/excerpter) indicated by `<?code-excerpt` need to be updated in their source `.dart` file as well. </details>
Pre-launch Checklist
General checklist
///).Issues checklist
contributions-welcomeorgood-first-issuelabel.contributions-welcomeorgood-first-issuelabel. I understand this means my PR might take longer to be reviewed. But I asked kenzie first.Tests checklist
AI-tooling checklist
Feature-change checklist
release-notes-not-requiredlabel or left a comment requesting the label be added.packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md.This does not need release notes because it adds tests and instructions for contributors only.