Qa doc governance

From c9r-io/orchestrator · View interactive version

Qa doc governance is an AI agent skill from the GitHub repository c9r-io/orchestrator. 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/chan

How to use this skill

Skill file

QA Doc Governance

Run a repeatable governance loop for QA documentation quality, consistency, and discoverability.

Workflow

  1. Baseline audit.
  2. Classify findings by severity and scope.
  3. Apply targeted remediation.
  4. Sync index and governance artifacts.
  5. Validate and publish audit result.

Step 1: Baseline Audit

  1. Run scripts/qa-doc-lint.sh.
  2. Run ./.claude/skills/qa-doc-governance/scripts/run-audit.sh for expanded metrics.
  3. If needed, read references/policy-checklist.md for rule definitions.

Step 2: Classify Findings

Use this priority order:

  1. P0: Broken navigability or unusable test flow.

: Examples: missing checklist, impossible auth/session steps, README index drift.

  1. P1: Governance drift.

: Examples: too many scenarios in one file, missing UI entry visibility in UI-facing docs.

  1. P2: Style consistency improvements.

: Examples: naming alignment, wording normalization.

Step 3: Remediate

Apply these rules in order:

  1. Fix executable correctness first.

: Replace non-executable auth/session checks with explicit methods (incognito/private window, clear session cookie, explicit sign-out).

  1. 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.

  1. Enforce visibility-first UI flows.

: UI scenarios start from visible entry points (sidebar, tab, button, quick links), not direct URL.

  1. Enforce scenario cap.

: Keep each file <=5 numbered scenarios. Split long files into base/advanced or topic-specific docs.

  1. Keep checklists mandatory.

: Every QA doc includes ## Checklist / ## Regression Checklist (or localized equivalent).

Step 4: Sync Governance Artifacts

  1. Update docs/qa/README.md so index matches current docs.
  2. If this repo uses docs/qa/_manifest.yaml, regenerate it with scenario counts and governance flags.
  3. If QA behavior changes affect security/UIUX expectations, add alignment notes to:

: docs/security/README.md, docs/uiux/README.md.

  1. 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

  1. Re-run scripts/qa-doc-lint.sh until pass.
  2. Include governance summary with:

: fixed issues, remaining warnings, and changed files.

  1. 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:

  1. weekly: full docs/qa lint + drift scan + README sync.
  2. pre-release: full governance loop after major refactor or route/auth changes.
  3. post-incident: verify related QA/security/uiux docs and add regression notes.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.