check-docs
Check documentation for broken links and formatting issues
Check Docs
Scan documentation files for common issues and report problems found.
When to Use
Before publishing or merging documentation changes
As part of a review workflow to catch broken links
When reorganizing docs structure to verify no links broke
How It Works
Build the site with
pnpm buildRun the link checker with
pnpm check:linksto verify all internal links in the built outputScan all
.mdxand.mdfiles in the configureddocsDirCheck for broken internal links (references to pages that don't exist)
Check for missing frontmatter fields (
titleis required)Report findings as a summary
The recommended command to run all checks:
pnpm build && pnpm check:linksExample Usage
/check-docsThis skill runs pnpm build && pnpm check:links to build the site and verify all links.
Checks Performed
Broken links (build output) —
pnpm check:linksscans the built HTML for broken internal linksBroken links (source) — Internal
[text](./path)links that point to non-existent filesMissing title — MDX files without a
titlein frontmatterEmpty files — Files with no content after frontmatter
Duplicate sidebar_position — Multiple files in the same category with the same position value