Docs governance

From tw31122007/BCHS-Unblocked-Games · View interactive version

Docs governance is an AI agent skill from the GitHub repository tw31122007/BCHS-Unblocked-Games. Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references. Use when a user asks for documentation governance, project-knowledge organization, documentation integrity, or a determi

How to use this skill

Skill file

Documentation Governance Router

Use this optional router to select the smallest existing ECC capability for a

documentation-governance request. The router does not create a parallel project

management system and does not make documentation authoritative over code,

tests, Issues, or maintainer decisions.

When to Activate

Do not activate for a narrowly named skill or for ordinary documentation edits

whose destination is already clear.

Role Contract

Read the artifact-role contract before

interpreting .governance/docs-map.json or default filenames. Logical roles own

facts; filenames are fallbacks. Reuse a repository's established sources of

truth and never create a second document merely to satisfy a default role.

Intent Routing

| User intent | Route to |

|---|---|

| Adopt or maintain a constitution, map, status, and history spine | living-docs-governance |

| Record a hard-to-reverse architecture decision | architecture-decision-records |

| Preserve an executable regression for an important defect | ai-regression-testing (install separately in standalone Pi core) |

| Define a verifiable goal and feedback loop | loop-design-check (install separately in standalone Pi core) |

| Check mapped roles, local links, ADR indexes, TEST-IDs, or possible orphan docs | Run the bundled read-only audit |

If no row fits, explain the ownership ambiguity instead of combining several

workflows speculatively.

Read-Only Audit

Run the audit only when the user asks for an audit or when it is an agreed

verification step. Resolve the selected skill directory first, then invoke:

python3 <docs-governance-skill>/scripts/audit-docs.py --root <repository> --scope full

Available scopes are spine, context, adr, artifacts, and full.

The audit reads repository files and Git history but does not create, rewrite,

archive, stage, or commit anything. It reports:

Treat warnings as review prompts, not failures. Semantic accuracy, business

meaning, task completion, and release approval remain human or workflow-owner

decisions.

When to Use

Use this router when the request is broad enough that choosing the right

governance capability is part of the work. For a direct ADR or regression

request, invoke that specialized skill without routing through this one.

How It Works

  1. Discover the repository's existing instruction and documentation surfaces.
  2. Resolve logical roles through the artifact-role contract.
  3. Select one smallest matching capability from the routing table.
  4. If a deterministic audit is requested, run the narrowest useful scope.
  5. Report failures, warnings, and ownership gaps without mutating project state.

Examples

bundled audit once with --scope artifacts, then again with --scope adr.

alone; the Issue owns completion, tests provide evidence, and maintainers own

merge approval.

Boundaries

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.