docs-governance
它能做什么
这个智能体可以帮你整理和检查项目的文档。它会把有关文档治理的请求交给合适的工具,还可以执行审计,检查链接和信息是否正确。
适用场景
- ✓当你不知道该用哪个工具来整理文档时。
- ✓当你需要检查项目中重要的链接和文档是否正确时。
- ✓当你想了解每个文档部分由谁负责时。
技能链接
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/docs-governance/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我检查一下项目文档是否整理得当,所有链接是否都能正常打开。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先查看现有文档和项目规则,判断哪个工具最合适。如果你要求检查,它会运行一个只读取文件、不修改文件的程序。
技术内容(原始 SKILL.md)
作者在 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.
常见问题
什么是“文档治理”?
这是指项目如何组织、维护和检查其中的重要信息,比如设计决策,以及每份文档由谁负责。
什么是“审计”?
审计是一种细致的检查,用来确保一切井井有条,比如验证文档中的所有链接是否指向正确的地方,信息是否保持最新。
这个智能体会修改我的文档吗?
不会。它只负责整理和检查。它会读取文档,但不会修改、创建或删除任何文档。
详情
作者的原始描述
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
热度
- GitHub 星标
- 280k
- 排名
- #174
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。