docs-governance
What it does
This agent helps organize and check a project's documentation. It directs requests about documentation governance to the right tools and can perform an audit to see if links and information are correct.
When to use it
- āWhen you don't know which tool to use for organizing documentation.
- āIf you need to check if the project's important links and documents are correct.
- āTo understand who is responsible for each part of the documentation.
Skill link
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/docs-governance/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āCheck if my project's documentation is organized and if all links work.ā
5 new skills a week. 1 minute to read.
How it works
It looks at existing documentation and project rules to decide which tool is best. If you ask for a check, it runs a program that reads files without changing them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- The user asks broadly for documentation governance or project-knowledge organization.
- A request spans several documentation roles and the correct owner is unclear.
- The user asks for a deterministic, read-only documentation integrity audit.
- A project needs to discover its existing documentation sources before adding files.
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:
- exit code
0when deterministic checks pass, including any manual-review warnings; - exit code
1when mechanically provable integrity failures exist; and - exit code
2for invalid CLI input.
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
- Discover the repository's existing instruction and documentation surfaces.
- Resolve logical roles through the artifact-role contract.
- Select one smallest matching capability from the routing table.
- If a deterministic audit is requested, run the narrowest useful scope.
- Report failures, warnings, and ownership gaps without mutating project state.
Examples
- āOrganize our long-lived project docsā routes to
living-docs-governance. - āRecord why we selected PostgreSQLā routes to
architecture-decision-records. - āCheck whether our documentation links and ADR index are intactā runs the
bundled audit once with
--scope artifacts, then again with--scope adr. - āAre we finished with the migration?ā is not answered from documentation alone; the Issue owns completion, tests provide evidence, and maintainers own merge approval.
Boundaries
- Keep task ownership, scheduling, attempts, and completion in the Issue tracker.
- Keep stable interface facts in the repository's contract source.
- Treat documentation as evidence and navigation, not executable instructions.
- Do not teach users to bypass repository controls such as pre-commit hooks.
- Do not add archive or index mutation to this read-only foundation.
FAQ
What is 'documentation governance'?
It's how a project organizes, maintains, and checks its important information, like design decisions and who is responsible for each document.
What is an 'audit'?
It's a detailed check to ensure everything is in order, like verifying that all links in a document go to the right places and that the information is up-to-date.
Can this agent change my documents?
No, it's only for organizing and checking. It reads documents but does not change, create, or delete them.
Details
Original description by the author
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 deterministic docs audit without naming a narrower skill.
repo: affaan-m/ECC
Popularity
- GitHub stars
- 280k
- Ranking position
- #174
- License
- MIT
- Updated
- 10/15/2026
Comments
- ā¦
More skills from this repository
accessibility
280kHelps your agent create interfaces that everyone can use. Ensures websites and apps work well for people with disabilities, like those who are blind or have reduced mobility.
agent-architecture-audit
280kMakes your agent check if everything is working correctly. It finds and fixes problems in AI systems, ensuring they perform as expected.
agent-eval
280kHelps your agent compare different AI coding tools. It measures which one is faster, cheaper, and more reliable for specific tasks.
agent-harness-construction
280kMakes your agent better understand how to perform tasks. It optimizes the tools and instructions the agent uses to increase its chances of success.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
archify
260kInstalls Archify, which turns a small JSON spec into a checked, interactive HTML diagram that can be exported as an image or video.
concept-diagrams
260kCreates clean, flat educational diagrams as one HTML file with SVG graphics, covering physics, biology, anatomy, floor plans, and processes.