
Dart Doc Validation
- 242 installs
- 139 repo stars
- Updated July 11, 2026
- kevmoo/dash_skills
Validate Dart API docs and doc comments during Flutter or Dart package development so public symbols, examples, and references stay accurate before release.
About
dart-doc-validation helps Dart and Flutter teams keep package documentation trustworthy by validating doc comments, generated API references, and cross-links against the live codebase before publish.
- Dart doc comment checks
- API reference validation
- Flutter package docs
- CI-friendly doc gates
- Broken link detection
Dart Doc Validation by the numbers
- 242 all-time installs (skills.sh)
- +10 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #482 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kevmoo/dash_skills --skill dart-doc-validationAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 242 |
|---|---|
| repo stars | ★ 139 |
| Last updated | July 11, 2026 |
| Repository | kevmoo/dash_skills ↗ |
What it does
Validate Dart API docs and doc comments during Flutter or Dart package development so public symbols, examples, and references stay accurate before release.
Files
Dart Doc Validation
1. When to use this skill
Use this skill when:
- Writing or updating documentation comments (
///) in Dart code. - Checking for broken documentation links, references, or macros.
- Preparing a package for publishing to pub.dev.
Discovery
To find documentation issues:
Missing Lint
Verify if the comment_references lint is enabled:
- Target:
analysis_options.yaml - Search Query:
comment_references
Automated Validation
Run the documentation generator to surface warnings:
- Command:
dart doc -o $(mktemp -d) - Keywords to look for:
warning:,unresolved doc reference,
undefined macro
2. Best Practices
Enable the doc validation lint
In your analysis_options.yaml, enable the comment_references lint.
linter:
rules:
- comment_referencesValidating Documentation Locally
Use the dart doc command with a temporary output directory to validate documentation comments without polluting the local project workspace.
This command parses all documentation comments and reports warnings such as:
-
warning: unresolved doc reference -
warning: undefined macro
Command to run:
dart doc -o $(mktemp -d)This will work on Mac and Linux.
This ensures that the generated HTML files are stored in a temporary location and don't clutter the package directory, while still surfacing all validation warnings in the terminal output.
Browsing the docs:
Our docs use features designed to be run on a web server. If you want to browse the generated docs locally, install the dhttpd package.
pub global activate dhttpd
TMP_DIR=$(mktemp -d) && dart doc -o "$TMP_DIR" && dhttpd --path "$TMP_DIR"(Or use another HTTP server, such as `python3 -m http.server`.)
Fixing Common Warnings
- Unresolved doc reference: Ensure that any identifier wrapped in square
brackets ([Identifier]) correctly points to an existing class, method, property, or parameter in the current scope or imported libraries.
- Undefined macro: If using
{@macro macro_name}, ensure that the
template {@template macro_name} is defined in the same file or a file that is imported and visible to the documentation generator.