Writing or updating documentation comments (///) in Dart code.
Checking for broken documentation links, references, or macros.
Preparing a package for publishing to pub.dev.
2. Best Practices
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 reference
warning: undefined macro
Command to run:
dart doc -o $(mktemp -d)
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.
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.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: kevmoo-dash-skills-dart-doc-validation3description: Dart Doc Validation4---56# Dart Doc Validation78## 1. When to use this skill910Use this skill when:11- Writing or updating documentation comments (`///`) in Dart code.12- Checking for broken documentation links, references, or macros.13- Preparing a package for publishing to pub.dev.1415## 2. Best Practices1617### Validating Documentation Locally1819Use the `dart doc` command with a temporary output directory to validate20documentation comments without polluting the local project workspace.2122This command parses all documentation comments and reports warnings such as:23- `warning: unresolved doc reference`24- `warning: undefined macro`2526**Command to run:**27```bash28dart doc -o $(mktemp -d)29```3031This ensures that the generated HTML files are stored in a temporary location32and don't clutter the package directory, while still surfacing all validation33warnings in the terminal output.3435### Fixing Common Warnings3637- **Unresolved doc reference**: Ensure that any identifier wrapped in square38 brackets (`[Identifier]`) correctly points to an existing class, method,39 property, or parameter in the current scope or imported libraries.40- **Undefined macro**: If using `{@macro macro_name}`, ensure that the41 template `{@template macro_name}` is defined in the same file or a file42 that is imported and visible to the documentation generator.4344---45> Converted and distributed by [TomeVault](https://tomevault.io/claim/kevmoo) — claim your Tome and manage your conversions.46<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/kevmoo-dash-skills-dart-doc-validation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Dart Doc Validation It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.