kevmoo/dash_skills/dart-doc-validation
Claude Code and agent skill by kevmoo/dash_skills
- community
Checking that the SKILL.md file is still in the repository.
Best practices for validating Dart documentation comments. Covers using `dart doc` to catch unresolved references and macros.
Install
npx vskill@latest install kevmoo/dash_skills/dart-doc-validationSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/dart-doc-validation.
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.
When NOT to use (Abstention Guardrails)
Do NOT apply this skill or refactor doc comments when:
- Illustrative Pseudo-Code & Non-Dart Code Fences: Comments contain
pseudo-code, non-Dart language identifiers (e.g. `yaml, `json, ```bash, ```text), or abstract conceptual fragments intentionally not designed to compile as valid Dart.
- Generated Code: Files generated by tools (e.g.
*.g.dart,*.mocks.dart,
*.freezed.dart) where comments are synthesized.
- External Markdown Hyperlinks: Text in square brackets followed by a link
target (e.g. [External Guide](https://...)), which is standard Markdown hyperlink syntax rather than an unresolved Dart doc reference.
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.
Validating 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 referencewarning: undefined macro
Command to run:
_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.
_(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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dart-doc-validation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kevmoo/dash_skills/dart-doc-validation)