对整个文档语料逐页对照源码审计,定位过时表述并给出精确修复建议。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "docs-corpus-audit" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/docs-corpus-audit/SKILL.md 2. 保存为 ~/.claude/skills/docs-corpus-audit/SKILL.md 3. 装好后重载技能,告诉我可以用了
请对整个 microsoft/apm 文档库做一次全量 regrounding 审计,逐页对照当前源码,找出过时描述、失效链接、与 TOC 重构不一致的页面,并按页面输出可人工审核的精确修复建议。不要自动提交或合并。
一份覆盖全库的审计结果,按页面列出问题、证据与可直接采用的修复建议。
我们怀疑文档到处都漂移了。请不要做 PR 级 review,而是对整个文档语料做整库审计:逐页核对代码实现与文档说明,标记错误示例、失准参数说明和不再存在的功能描述,并生成最小改动方案。
按问题类型和页面归类的漂移清单,以及面向维护者的最小修订方案。
我们刚重构了文档目录。请对整个文档库执行一次全量审计,检查所有页面与导航结构、交叉引用和链接目标是否仍然有效,同时对照当前源码验证关键说明是否仍准确,输出需要修复的页面及具体改法。
一份包含死链、导航不一致和内容失准问题的整库修复清单。
The docs corpus drifts silently between releases. docs-sync catches
drift introduced by individual PRs at PR-open time. This skill catches
the accumulated drift that slips past per-PR review -- stale flag
names, dead nav links from past IA reshuffles, deprecation banners
that outlived their version targets, factual claims whose source-side
truth has moved.
The pattern is A1 PANEL + WAVE EXECUTION + S7 DETERMINISTIC TOOL BRIDGE + A8 ALIGNMENT LOOP + A9 SUPERVISED EXECUTION. The corpus is split into disjoint page scopes; one verifier subagent owns each scope; agents extract factual claims, S7-verify against source, apply surgical fixes inline. The orchestrator then runs an alignment-loop pass to re-verify that applied edits actually ground out true.
This skill is ADVISORY but ACTIONABLE: agents apply edits inline on a working branch. The orchestrator is the sole writer to git -- stages, commits, pushes. Maintainer reviews the resulting PR.
These two skills share substrate. Be explicit:
| Shared resource | Owner | Both use |
|---|---|---|
.apm/docs-index.yml (corpus map) | docs-sync | yes |
| doc-writer persona | shared | yes (per-page edits) |
| python-architect persona | shared | yes (S7 verification) |
| editorial-owner persona | shared | optional (voice pass at scale) |
| cdo persona | shared | yes (final synthesis) |
assets/panelist-return-schema.json | docs-sync (mirrored) | yes |
Trigger boundary (avoid DISPATCH COLLISION):
docs-sync triggers on a PR event ("PR opened/synchronized",
source-diff-driven).docs-corpus-audit triggers on a maintainer ask for a
WHOLE-CORPUS pass ("audit the corpus", "reground", "pre-release
sweep") -- no PR required, no diff required, the whole corpus
is the input.If a maintainer asks "review this PR's doc impact", route to
docs-sync. If they ask "audit all our docs" or "the docs feel
stale everywhere", route here.
uv run apm <verb> --help for CLI,
grep -n src/apm_cli/ for symbols, python -c "import ..." for
module shape, file-existence checks for nav links. Never assert
from LLM recall.git commit, git push, or gh pr <write>. Orchestrator
commits per wave; pushes once per session.Reuse docs-sync's personas. Do NOT invent a one-off "grounding- verifier" role; that's R3 EXTRACT in reverse.
| Role | Persona | Always active? |
|---|---|---|
| Per-scope verifier+editor | python-architect (S7) and doc-writer (edits), bundled into one subagent prompt per scope | Yes -- one per page scope, parallel fan-out |
…
优化 APM 代码库中的 CLI 输出、日志提示与诊断信息体验
快速判断代码变更对文档的影响级别,决定是否需要同步更新文档