skills/audit-docs/SKILL.md
Audit documentation governance in read-only mode and produce a unified report with prioritized actions and explicit skill routing.
npx skillsauth add nesnilnehc/ai-cortex audit-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
用只读方式整合文档治理现状,输出统一审计报告与行动路线图,不执行结构改造或规范落盘。
首要目标:产出可直接执行的治理审计报告(问题、优先级、路由),而不是直接改仓库。
成功标准(必须全部满足):
docs/calibration/audit-docs.md验收测试:团队是否能仅凭报告决定“下一步调用哪些技能”,且无需担心被隐式改仓库?
本技能负责:
本技能不负责:
define-docs-norms)tidy-repo)交接点:报告完成后,交由用户选择是否执行创建/整理类技能。
按 specs/artifact-contract.md §8 Runtime Norms Resolution Protocol 的 §8.2 / §8.3 / §8.5 实现:读项目规范若声明了 audit-docs artifact_type 的 path_pattern,则使用项目值;否则 fall through 到技能默认(docs/calibration/audit-docs.md)。本技能为固定路径治理产出(orchestrator 角色),只用 path_pattern 覆盖机制;所依赖的子技能各自执行其 Stage 0。
quick:仅 assess-docs(核心评估)full:assess-docs + assess-docs-links + assess-docs-ssotcode-review:assess-docs + assess-docs-code-alignmentdocs/ARTIFACT_NORMS.md,仅记录风险并路由 discover-docs-norms/define-docs-normsdocs/calibration/audit-docs.mdquick|full|code-reviewcode-diff(用于 code-review)docs/calibration/audit-docs.mddocs/calibration/doc-assessment.mddocs/calibration/doc-link-health.mddocs/calibration/ssot-integrity-audit.mddocs/calibration/code-doc-alignment.mdtidy-repo --apply 或等价改写操作define-docs-norms 落盘不要做这些(其他技能负责):
discover-docs-normsdefine-docs-normstidy-repoassess-docs + assess-docs-links + assess-docs-ssotaudit-docs.md + 路由建议assess-docs + assess-docs-code-alignment本技能为 read-only 审计聚合器,产出统一报告:
| 元素 | 格式 | 必填字段 | 路径模式 |
| :--- | :--- | :--- | :--- |
| 报告主体 | Markdown | front-matter;章节:执行摘要 / 子审计聚合(assess-docs / assess-docs-links / assess-docs-ssot / assess-docs-code-alignment)/ 优先动作 / 技能路由 | docs/calibration/audit-docs.md |
| 优先动作 | 表格 | rank / issue / target_artifact / recommended_skill / rationale | 「优先动作」节 |
| 技能路由 | 列表项 | skill_id / invocation_hint / scope / expected_output_artifact | 「技能路由」节 |
| 机器可读块 | YAML fenced yaml audit_summary: | counts、top_actions[] 每项含 rank/skill/artifact | 报告末尾 |
development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.