Maintaining high content quality across a large, rapidly growing knowledge base requires continuous, automated auditing. The Wiki Audit Skill is an agentic automation workflow that scans the entire wiki corpus to detect broken hyperlinks, validate frontmatter metadata compliance, identify orphaned pages, and verify RDF Knowledge Graph consistency.
This guide details the operational mechanics of the wiki audit workflow, automated repair heuristics, and integration with CI/CD quality gates.
+-----------------------------------------------------------------------------------------+
| WIKI AUDIT QUALITY CHECKS |
+-----------------------------------------------------------------------------------------+
| Audit Check | Target Quality Standard | Automated Remedy |
+------------------------+-----------------------------------+----------------------------+
| Broken Link Scan | 0 non-existent page references | Auto-alias or stub creation|
| Orphaned Node Check | Every page has ≥ 1 incoming link | Add to parent Hub index |
| Metadata Length | Summary: 50 - 160 characters | LLM summary generation |
| Currency Dollar Signs | All currency signs escaped (\$50) | Regex auto-escape escape |
| Cluster Assignment | Every page assigned canonical tag | Taxonomical classifier |
+-----------------------------------------------------------------------------------------+
Audit Execution Flow:
[ Trigger: Daily Scheduled Audit / Post-Batch Hook ]
|
v
+-------------------------------------------------------+
| 1. Corpus Traversal |
| - Fetches all page slugs via `/api/pages` |
| - Extracts outbound links `PageName` |
+-------------------------------------------------------+
|
v
+-------------------------------------------------------+
| 2. Graph & Link Analysis |
| - Computes directed graph adjacency matrix |
| - Flags dead-ends (broken links) and isolated orphans |
+-------------------------------------------------------+
|
v
+-------------------------------------------------------+
| 3. Metadata & KaTeX Linter |
| - Validates YAML frontmatter fields against schema |
| - Tests KaTeX mathematical formula rendering |
+-------------------------------------------------------+
|
v
[ Emits Diagnostic Report & Auto-Fix PR / MCP Mutations ]
Using the verify_pages MCP tool, agents verify entire batches of pages in a single call, receiving structured reports detailing broken links, missing metadata, and orphaned nodes before completing their turn.