Check a target repo's wiki for broken internal links, placeholder leakage, stale anchors, and schema-version mismatches. Read-only. Supports in-repo and external modes. Invoke with /wiki-verify [target-path].
Read-only audit of a generated wiki. Checks for things CI would catch if cc-wiki had a proper CI — internal link validity, placeholder leakage, schema version compatibility, and consistency between wiki/.coverage.json and what's actually in $WIKI_DIR/reference/modules/.
wiki-verify never modifies files. If it finds problems it prints them and exits non-zero.
Argument: $ARGUMENTS — empty for in-repo mode, or a path to a target repo for external mode.
wiki/.coverage.json has "version": 1 and ONBOARDING.md has cc_wiki_schema: 1. Newer versions are refused so an old cc-wiki doesn't silently corrupt a newer wiki.{{PROJECT_NAME}}, {{ONBOARDING_WHAT}}, {{FILE_LIST_WITH_LINKS}}, or similar double-curly tokens remain in generated output. Ansible {{ var }} is legitimate when it's inside a fenced code block from the target repo's own code — the checker tolerates those.[label](path/to/file.md) link in a wiki page resolves to an actual file under $WIKI_DIR/. Also checks #anchor references against the target file's markdown headings.reference/modules/<name>.md#<anchor> referenced in wiki/.coverage.json exists as a file under $WIKI_DIR/reference/modules/. And every module page has at least one coverage entry.<!-- cc-wiki:append-above --> marker is intact, so wiki-sync won't rewrite existing entries.reference/testing.md, reference/changes.md, reference/pitfalls.md, and the onboarding counterparts are all present.set -euo pipefail
source .claude/skills/wiki-shared/lib/paths.sh