Documentation Structure Audit
Scope
Document structure only: heading hierarchy, section ordering, presence of required sections (introduction, prerequisites, steps, reference), file naming, metadata blocks, navigation, and cross-references.
Inputs
- Documentation file(s) under review.
- Documentation directory structure.
- Diataxis classification output (from the
documentation-diataxis skill, when run as part of the orchestrated review).
Actions
File Naming:
Verify files use lowercase with dashes and the correct extension for their syntax (for example, connect-vscode.rst for reST, connect-vscode.md for MyST).
Metadata:
Ensure every page has required metadata near the top when the repository's docs conventions require it: .. meta:: after the anchor label for reST, or the MyST equivalent (front matter or meta directive) for Markdown sources.
Directory Placement:
Confirm the file is located in the directory matching its intended Diataxis category (for example, tutorials in tutorial/, how-to guides in how-to/).
Navigation:
Ensure new pages are added to the toctree.
Cross-References:
- Prefer native internal cross-reference roles (
:ref:, :doc:, {ref}, {doc}, {numref}) over plain relative page links.
- Flag unresolved or brittle cross-references, not valid uses of
:doc:/{doc}.
- Suggest adding links to improve documentation discoverability.
- Verify cross-references resolve correctly.
Verification:
Confirm the structural audit completed:
- File naming checked for all files
- Metadata presence verified
- Directory placement validated (using Diataxis classification if available)
- Navigation structure checked (toctree entries)
- Cross-references validated
State the completion status:
✓ Structure audit complete: [N] violations found
- OR
✓ Structure audit complete: No violations found
Constraints
- Do not modify files during the audit; this is a read-only review.
- Do not invent metadata requirements; check against repository's documented conventions.
- Focus on structural issues only; do not flag style preferences.
- When Diataxis classification is available (from orchestrated review), use it to validate directory placement. Otherwise, infer from directory name.
Output
A list of structural or metadata violations covering file naming, metadata, directory placement, navigation, and cross-reference issues.
1---2name: documentation-structure3description: Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references. Use when checking documentation organization or validating toctree structure.4---56# Documentation Structure Audit78## Scope910Document structure only: heading hierarchy, section ordering, presence of required sections (introduction, prerequisites, steps, reference), file naming, metadata blocks, navigation, and cross-references.1112## Inputs1314- Documentation file(s) under review.15- Documentation directory structure.16- Diataxis classification output (from the `documentation-diataxis` skill, when run as part of the orchestrated review).1718## Actions19201. **File Naming**:2122 Verify files use lowercase with dashes and the correct extension for their syntax (for example, `connect-vscode.rst` for reST, `connect-vscode.md` for MyST).23242. **Metadata**:2526 Ensure every page has required metadata near the top when the repository's docs conventions require it: `.. meta::` after the anchor label for reST, or the MyST equivalent (front matter or `meta` directive) for Markdown sources.27283. **Directory Placement**:2930 Confirm the file is located in the directory matching its intended Diataxis category (for example, tutorials in `tutorial/`, how-to guides in `how-to/`).31324. **Navigation**:3334 Ensure new pages are added to the `toctree`.35365. **Cross-References**:3738 - Prefer native internal cross-reference roles (`:ref:`, `:doc:`, `{ref}`, `{doc}`, `{numref}`) over plain relative page links.39 - Flag unresolved or brittle cross-references, not valid uses of `:doc:`/`{doc}`.40 - Suggest adding links to improve documentation discoverability.41 - Verify cross-references resolve correctly.42436. **Verification**:4445 Confirm the structural audit completed:4647 - File naming checked for all files48 - Metadata presence verified49 - Directory placement validated (using Diataxis classification if available)50 - Navigation structure checked (toctree entries)51 - Cross-references validated5253 State the completion status:54 - `✓ Structure audit complete: [N] violations found`55 - OR `✓ Structure audit complete: No violations found`5657## Constraints5859- Do not modify files during the audit; this is a read-only review.60- Do not invent metadata requirements; check against repository's documented conventions.61- Focus on structural issues only; do not flag style preferences.62- When Diataxis classification is available (from orchestrated review), use it to validate directory placement. Otherwise, infer from directory name.6364## Output6566A list of structural or metadata violations covering file naming, metadata, directory placement, navigation, and cross-reference issues.