check-docs
Check documentation for broken links and formatting issues
- License 许可
- MIT
- 所属仓库
- zudolab/zudo-doc
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- check-docs
- description
- Check documentation for broken links and formatting issues
03 SKILL.md 正文
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 build - Run the link checker with
pnpm check:linksto verify all internal links in the built output - Scan all
.mdxand.mdfiles in the configureddocsDir - Check 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:links
Example Usage
/check-docs
This 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 links - Broken links (source) — Internal
[text](./path)links that point to non-existent files - Missing title — MDX files without a
titlein frontmatter - Empty files — Files with no content after frontmatter
- Duplicate sidebar_position — Multiple files in the same category with the same position value
04 同仓库更多 Skills
zudo-doc-writing
Doc-writing and navigation-structure guide for this zudo-doc project. Consult BEFORE creating pages, adding categories, designing header navigation, or writing/editing mdx content under src/content/. Covers: reading the AUTHORING.md editorial policy and its four placement questions, when to run a structure review, plan-the-nav-tree-first workflow, tree vs note-tray categories, the recommended 3-level hierarchy (header → sidebar → nested), filesystem navigation as the default, linked versus heading-only category rows, category index pages, sidebar_position discipline, frontmatter schema, no-h1 rule, relative .mdx links, and admonition syntax. Triggered by 'write docs', 'add a page', 'create a page', 'add category', 'structure navigation', 'nav design', 'zudo-doc-writing'.
zudo-doc-version-bump
Bump package version, update changelog and versioned docs snapshot (if those features are enabled), commit, tag, and create a GitHub release. Use when: (1) User says 'version bump', 'bump version', 'release', or 'zudo-doc-version-bump', (2) User wants to create a new release of this project.
zudo-doc-translate
Translate zudo-doc documentation between the locales configured in this project, with Japanese conventions applied only to the `ja` locale.
zudo-doc-design-system
Project-specific CSS and component rules for zudo-doc. Must be consulted before writing or editing CSS, zudo-wind utilities, color tokens, or component markup in this project. Covers: component-first strategy, design token system, three-tier color architecture, and palette index convention. Triggered by 'design system', 'zudo-doc-design-system', 'zudo-doc-css-wisdom' (old name).
localized-shell
Fixture skill for localized generated resource routes.
zudo-doc-writing-rules
Doc-writing rules for zudo-doc content (mdx files under src/content/docs/ and src/content/docs-ja/). Consult before writing or editing doc content. Covers: no h1 in content, sidebar_position is mandatory, kebab-case file names, bilingual rule, linking conventions, and admonition syntax. Triggered by 'writing rules', 'zudo-doc-writing-rules', 'doc rule', 'mdx rule', 'write a doc', 'create a page'.