Skip to content

Documentation Consistency

Pre-PR documentation consistency gate that scans code changes, cross-references docs, and creates a GitHub issue with inconsistencies.

Prerequisites

  • gh CLI authenticated with repo access

Overview

The doc-audit pipeline catches documentation drift before it reaches main. It compares code changes against docs, CLI help text, and README content, then opens a GitHub issue listing every mismatch.

Running

bash
# Scan branch diff against main
wave run doc-audit

# Full scan of all documentation
wave run doc-audit "full"

# Scan against a specific ref
wave run doc-audit "v0.2.0"

Expected Output

With -o text:

[10:00:01] → scan-changes (navigator)
[10:00:01]   scan-changes: Executing agent
[10:01:12] ✓ scan-changes completed (71.0s, 4.2k tokens)
[10:01:13] → analyze-consistency (reviewer)
[10:03:45] ✓ analyze-consistency completed (152.0s, 6.1k tokens)
[10:03:46] → create-issue (github-analyst)
[10:04:22] ✓ create-issue completed (36.0s, 1.4k tokens)

  ✓ Pipeline 'doc-audit' completed successfully (4m 21s)

Steps

StepPersonaDescription
scan-changesnavigatorCategorize changed files, snapshot documentation state
analyze-consistencyreviewerCross-reference code against docs, rate severity
create-issuegithub-analystCreate GitHub issue with task list of inconsistencies

Artifacts

ArtifactPathDescription
scan-results.wave/output/scan-results.jsonChanged files by category, doc snapshots
consistency-report.wave/output/consistency-report.jsonInconsistencies with severity ratings
issue-result.wave/output/issue-result.jsonCreated issue number, URL, or skip status

Released under the MIT License.