| name | qa-doc-governance |
| description | Govern and periodically remediate QA documentation quality across docs/qa, docs/security, and docs/uiux. Use when users ask to audit QA docs, run recurring documentation checks, fix doc drift after refactors, enforce scenario limits/checklists/UI entry visibility, or synchronize README/manifest/changelog consistency. |
QA Doc Governance
Run a repeatable governance loop for QA documentation quality, consistency, and discoverability.
Workflow
- Baseline audit.
- Classify findings by severity and scope.
- Apply targeted remediation.
- Sync index and governance artifacts.
- Validate and publish audit result.
Step 1: Baseline Audit
- Run
scripts/qa-doc-lint.sh.
- Run
./.claude/skills/qa-doc-governance/scripts/run-audit.sh for expanded metrics.
- If needed, read
references/policy-checklist.md for rule definitions.
Step 2: Classify Findings
Use this priority order:
P0: Broken navigability or unusable test flow.
: Examples: missing checklist, impossible auth/session steps, README index drift.
P1: Governance drift.
: Examples: too many scenarios in one file, missing UI entry visibility in UI-facing docs.
P2: Style consistency improvements.
: Examples: naming alignment, wording normalization.
Step 3: Remediate
Apply these rules in order:
- Fix executable correctness first.
: Replace non-executable auth/session checks with explicit methods (incognito/private window, clear session cookie, explicit sign-out).
- Enforce mock-fixture-only for orchestrator workflows.
: QA docs must reference
fixtures/manifests/bundles/* mock fixtures (echo agents), never docs/workflow/* (real AI agents). Every doc must include explicit apply -f fixtures/... in preconditions. Standalone scenario stubs must inline precondition commands or cross-reference parent doc. Severity: P0.
- Enforce visibility-first UI flows.
: UI scenarios start from visible entry points (sidebar, tab, button, quick links), not direct URL.
- Enforce scenario cap.
: Keep each file
<=5 numbered scenarios. Split long files into base/advanced or topic-specific docs.
- Keep checklists mandatory.
: Every QA doc includes
## Checklist / ## Regression Checklist (or localized equivalent).
Step 4: Sync Governance Artifacts
- Update
docs/qa/README.md so index matches current docs.
- If this repo uses
docs/qa/_manifest.yaml, regenerate it with scenario counts and governance flags.
- If QA behavior changes affect security/UIUX expectations, add alignment notes to:
:
docs/security/README.md, docs/uiux/README.md.
- Check
CHANGELOG.md consistency.
: Entries under [Unreleased] have not shipped, so a stale one will publish as a false statement. Verify no unreleased entry describes a mechanism the repo has since removed or replaced, that removals appear under ### Removed, and that user-visible incompatibilities are recorded with the exact diagnostic users will hit. Released sections are historical and stay as written.
Step 5: Validate and Report
- Re-run
scripts/qa-doc-lint.sh until pass.
- Include governance summary with:
: fixed issues, remaining warnings, and changed files.
- If warnings remain intentionally, record them as explicit backlog items with file paths.
Periodic Execution Template
Use this skill for weekly or release-bound governance runs:
weekly: full docs/qa lint + drift scan + README sync.
pre-release: full governance loop after major refactor or route/auth changes.
post-incident: verify related QA/security/uiux docs and add regression notes.
Resources
- Governance checklist:
references/policy-checklist.md
- Audit script:
scripts/run-audit.sh