docs-corpus-audit
Skill3.9k starsChanged 3 months agoMITView on GitHub
Use this skill to run a holistic regrounding pass on the entire microsoft/apm documentation corpus against current source code, page-by-page, and emit surgical fixes for stale claims. Activate when the maintainer wants a WHOLE-CORPUS audit (not per-PR review) -- typical triggers include "audit the docs", "reground the corpus", "check every page against code", "pre-release docs sweep", "the docs have drifted everywhere", or "we just reshaped the TOC, find dead links". Wave-batched and S7-verified; scales to the full ~112-page corpus in ~10 minutes wall-time. This is a SIBLING to docs-sync, not a replacement: docs-sync is per-PR (triggered by a diff); this skill is per-corpus (triggered by a maintainer ask). They share agent personas, schemas, and the docs index, but their triggers MUST NOT collide. Does NOT auto-merge, does NOT push without maintainer review, and does NOT replace per-PR drift detection.
- Commits and pushes
Trending
Quiet since October.about the whole repository
Who's talking about microsoft/apm
- dependabot/dependabot-core“Support https://github.com/microsoft/apm - agent package manager”GitHub · Mar 3, 2026 · 22 reactions
- renovatebot/renovate“feat(manager): add apm manager for Agent Package Manager”GitHub · Jul 6, 2026 · 8 reactions
- A Hacker News story“Agent Package Manager”Hacker News · Mar 18, 2026 · 7 points
- @qdrddr.bsky.social“#VibeCode Easy: declare and share #skills, prompts, instructions, and tools for your git project with …”Bluesky · Mar 5, 2026 · 3 likes
- @ironyuppie.com“What are people using to manage agent skills across harnesses and machines? APM looks promising but not …”Bluesky · Sep 11, 2026 · 2 likes
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub, Hacker News and Bluesky (41 times).
On GitHub · 32
- Mar 3, 2026Support https://github.com/microsoft/apm - agent package manager — dependabot/dependabot-core22 reactions · 5 comments
- Jul 6, 2026feat(manager): add apm manager for Agent Package Manager — renovatebot/renovate8 reactions · 25 comments
- Jun 22, 2026[Feature] Add Agent Package Manager distribution mechanism — pbakaus/impeccable2 reactions · 3 comments
- Jun 5, 2026[FEATURE] Native support for Claude Code Plugin Format — LobsterTrap/lola2 reactions · 3 comments
- May 4, 2026Support scanning all agent context-building blocks, not just SKILL.md — snyk/agent-scan2 reactions · 3 comments
27 more on GitHub
- Apr 7, 2026feat: add asdf-apm plugin for Microsoft Agent Package Manager — asdf-vm/asdf-plugins2 reactions
- Apr 3, 2026chore(deps): update dependency microsoft/apm to v0.8.10 — MH0386/aur2 reactions · 4 comments
- Oct 1, 2026build(deps): bump apm-cli from 0.20.0 to 0.32.0 in /.apm-cli-pin — elastic/oblt-aw1 reaction · 3 comments
- Jul 28, 2026Add a feature for installing APM from https://github.com/microsoft/apm/releases — postfinance/devcontainer-features1 reaction
- May 29, 2026Expression-harvesting pass hoists ${{ ... }} tokens from inside bash # comments into step env, breaking workflow load (regression since v0.76) — github/gh-aw1 reaction
- Apr 28, 2026shared/apm.md: align docs with canonical microsoft/apm source; deprecate vendored copy — github/gh-aw1 reaction
- Apr 27, 2026Feature request: first-class label-name filter on `pull_request_target.types: [labeled]` (avoid red "skip via exit 1" idiom) — github/gh-aw1 reaction · 1 comment
- Apr 22, 2026Add support Microsoft APM — droosma/vibe-codeGraph1 reaction
- Apr 19, 2026APM integration — a few alignment notes from the APM side — bradygaster/squad1 reaction · 1 comment
- Mar 31, 2026feat(init): bridge to APM during init for cross-team distribution — microsoft/agentrc1 reaction · 2 comments
- Mar 28, 2026[ca] CLI Version Update: MCP Gateway v0.2.7, APM v0.8.6 — github/gh-aw1 reaction
- Mar 24, 2026[ca] CLI Version Updates: MCP Gateway v0.2.4, APM v0.8.5 — github/gh-aw1 reaction
- Mar 23, 2026[ca] Update APM (Agent Package Manager) to v0.8.4 — github/gh-aw1 reaction
- Mar 22, 2026[ca] CLI Version Update: MCP Gateway v0.1.20→v0.1.22, APM v0.8.2→v0.8.3 — github/gh-aw1 reaction
- Mar 18, 2026[ca] CLI Version Updates: MCP Gateway v0.1.17, APM v0.8.1, Claude Code 2.1.78, Copilot CLI 1.0.7 — github/gh-aw1 reaction
- Oct 3, 2026Reproduce: clone URL and SSH entries are looked up wrongly — MPV/renovate-apm-demo10 reactions
- Oct 3, 2026Reproduce: object-form entries are dropped — MPV/renovate-apm-demo10 reactions
- Oct 3, 2026chore(deps): bump apm-cli from 0.31.0 to 0.32.0 — juangcarmona/agent-toolkit0 reactions
- Sep 28, 2026chore(apm): refresh baseline — thetechgy/agent-engineering-baseline0 reactions
- Sep 25, 2026APM install target `copilot` no longer ships VS Code MCP configs — ministryofjustice/ai-toolkit0 reactions
- Sep 4, 2026Consider APM for this repo — con/skills0 reactions · 1 comment
- Sep 4, 2026[GHSA-q5pp-gvjg-h7v4] Correct PyPI package name from `apm` to `apm-cli` — github/advisory-database0 reactions
- Jul 22, 2026Your Task title Evaluate AI SDLC / SpecKit Tooling — eclipse-score/score0 reactions · 1 comment
- Jun 24, 2026try https://github.com/microsoft/apm — sushichan044/dotfiles0 reactions
- Jun 14, 2026Consider delegating the packaging layer to microsoft/apm — apache/magpie0 reactions · 3 comments
- May 28, 2026APM support into HVE Core — microsoft/hve-core0 reactions · 2 comments
- Mar 24, 2026feat: implement APM unpack in JavaScript, replace microsoft/apm-action restore step in agent job — github/gh-aw0 reactions · 19 comments
On Hacker News · 5
- Mar 18, 2026Agent Package Manager7 points
- Jun 24, 2026Microsoft Agent Package Manager2 points
- Mar 4, 2026APM – Agent Package Manager (Microsoft)2 points
- Mar 31, 2026Show HN: A tool to solve the Agent Supply Chain pandora box1 point
- Mar 20, 2026Show HN: Agent Package Manager (APM) for Agent Configuration1 point
On Bluesky · 4
- Mar 5, 2026#VibeCode Easy: declare and share #skills, prompts, instructions, and tools for your git project with APM.yaml across the team. By… — @qdrddr.bsky.social3 likes and reposts · 1 reply
- Sep 11, 2026What are people using to manage agent skills across harnesses and machines? APM looks promising but not very popular (in the grand scheme)… — @ironyuppie.com2 likes and reposts · 1 reply
- Jul 22, 2026gh skills コマンドとどっちが良いかな。 おそらく apm に移行するかな。 🔗 microsoft/apm: Agent Package Manager github.com/microsoft/apm — @teruhirokomaki.bsky.social1 likes and repost
- Apr 16, 2026AIエージェントのプロンプトやスキルを管理できるパッケージマネージャーらしい 開発環境を統一したいチームでかなり便利そう yug1224 starred microsoft/apm https://github.com/microsoft/apm — @yug1224.com1 likes and repost
In this repository98 other files it gives its agents.
- templates/hello-world/AGENTS.mdAGENTS.md
- tests/integration/fixtures/target_resolution/s01_claude_md_only/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s06_dry_run/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s07_compile_all_single/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s15_claude_rules_exists/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s16b_provenance_cwd/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- packages/apm-contributor-dashboard/.github/copilot-instructions.mdCopilot instructions
- packages/autopilot/autopilot-maintainer-canvas/.github/copilot-instructions.mdCopilot instructions
- tests/integration/fixtures/target_resolution/s02b_copilot_instructions/.github/copilot-instructions.mdCopilot instructions
- tests/integration/fixtures/target_resolution/s05_apm_yml_multi/.github/copilot-instructions.mdCopilot instructions
- apm-spec-guardianSkill
- apm-strategySkill
- authSkill
- autopilot-commentSkill
- autopilot-issue-delivery-schedulerSkill
- autopilot-issue-delivery-workerSkill
- autopilot-issue-triage-schedulerSkill
- autopilot-issue-triage-workerSkill
- autopilot-pr-merge-workerSkill
- autopilot-pr-review-schedulerSkill
- autopilot-pr-review-workerSkill
- autopilot-pr-triage-schedulerSkill
- autopilot-pr-triage-workerSkill
- cli-logging-uxSkill
- cut-releaseSkill
- devx-uxSkill
- docs-corpus-auditSkill
- docs-grounding-verifierSkill
- docs-impact-architectSkill
- docs-impact-classifierSkill
- docs-impact-localizerSkill
- docs-syncSkill
- oss-growthSkill
- pr-description-skillSkill
- python-architectureSkill
- supply-chain-securitySkill
- apm-spec-guardianSkill
- apm-strategySkill
- authSkill
- cli-logging-uxSkill
- cut-releaseSkill
- devx-uxSkill
- docs-grounding-verifierSkill
- docs-impact-architectSkill
- docs-impact-classifierSkill
- docs-impact-localizerSkill
- docs-syncSkill
- oss-growthSkill
- python-architectureSkill
- supply-chain-securitySkill
- apm-usageSkill
- autopilot-commentSkill
- autopilot-issue-delivery-schedulerSkill
- autopilot-issue-delivery-workerSkill
- autopilot-issue-triage-schedulerSkill
- autopilot-issue-triage-workerSkill
- autopilot-pr-merge-workerSkill
- autopilot-pr-review-schedulerSkill
- autopilot-pr-review-workerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
If a maintainer asks "review this PR's doc impact", route to docs-sync.
- Very specific: line 76
S7 verification is mandatory: Every factual claim is verified against deterministic source: uv run apm <verb> --help for CLI, grep -n …
- Distinctive: line 87
Alignment loop (A8): After waves return, orchestrator re-greps the corpus for the patterns the agents claimed to fix.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
docs-corpus-audit -- whole-corpus regrounding pass
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.
Sibling contract with docs-sync
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-synctriggers on a PR event ("PR opened/synchronized", source-diff-driven).docs-corpus-audittriggers 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.
Architecture invariants
- Wave-batched, not flat. Pages are partitioned into 6-8 disjoint scopes; each scope is one verifier subagent. Cost scales with wave size, not corpus size. A wave of 6 agents on ~10 pages each is the canonical shape.
- Disjoint page ownership. Each subagent has EDIT AUTHORITY on its scope only. No two agents touch the same file -- guarantees no merge conflicts during fan-in.
- S7 verification is mandatory. Every factual claim is verified
against deterministic source:
uv run apm <verb> --helpfor 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. - Surgical edits only. 1-3 line patches per drift, preserving voice. Restructuring is deferred to the orchestrator post-pass, never auto-applied by per-scope agents.
- Single-writer interlock for git. Subagents NEVER run
git commit,git push, orgh pr <write>. Orchestrator commits per wave; pushes once per session. - Alignment loop (A8). After waves return, orchestrator re-greps the corpus for the patterns the agents claimed to fix. Any residue triggers a targeted re-dispatch (max 2 redrafts) or is escalated to maintainer.
Roster (composition, not invention)
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 |
| Cross-corpus post-pass | orchestrator (deterministic greps via scripts/scan-cross-corpus-drift.sh) | Yes -- once after waves return |
| Alignment-loop checker | orchestrator (deterministic re-grep + targeted re-dispatch) | Yes -- once after post-pass |
| Voice pass (optional) | editorial-owner | Only when >20 edits to keep tone coherent |
| Final synthesis | cdo | Once, for the PR summary comment |
The per-scope subagent prompt that composes python-architect +
doc-writer is in assets/subagent-prompt-template.md -- the
orchestrator substitutes scope + working dir + branch and dispatches
via the task tool.
Process
1. PROBE (A9 SUPERVISED EXECUTION)
- Check working tree: docs/src/content/docs/ exists?
- Check working tree: packages/apm-guide/.apm/skills/apm-usage/
exists? (Rule-4 backfill target. If missing, the audit cannot
close Rule 4; ask maintainer before continuing.)
- Check `.apm/docs-index.yml` reachable.
- Verify on a working branch (not main).
2. RISK-TRIAGE (orchestrator, ~1 LLM call)
- Read .apm/docs-index.yml only (NOT the corpus body).
- Bucket pages by drift risk: HIGH (CLI ref, schemas, consumer
flows), MEDIUM (producer, enterprise policy), LOW (concepts,
contributing, troubleshooting, integrations).
- Decide wave order: HIGH first, MEDIUM next, LOW last.
3. WAVE-PLANNER (orchestrator, deterministic)
- Partition pages into 6-8 disjoint scopes per wave.
- Each agent gets ~9 pages, mixed surface types.
4. WAVE EXECUTION (parallel, one subagent per scope)
- Orchestrator dispatches one task per scope using the prompt
template in assets/subagent-prompt-template.md.
- Subagents read pages, extract claims, S7-verify, apply
surgical edits, return JSON per the docs-sync panelist
schema (mirrored at assets/panelist-return-schema.json).
- Validate every return against the schema; reject malformed
JSON.
5. CROSS-CORPUS POST-PASS (orchestrator, deterministic)
- Run scripts/scan-cross-corpus-drift.sh to grep for patterns
a per-scope agent cannot see (IA-reshuffle dead links, stale
deprecation version targets, phantom flag references).
- Patch residue inline.
6. ALIGNMENT LOOP (orchestrator, deterministic)
- Re-run scripts/scan-cross-corpus-drift.sh.
- Re-grep for claims the agents marked DRIFTED-FIXED.
- If residue: targeted re-dispatch to the owning agent
(bounded: max 2 redrafts per wave).
7. COMMIT + PUSH (orchestrator, single writer)
- One commit per wave; structured message naming closed items.
- Push to working branch.
8. PR + SUMMARY COMMENT (orchestrator)
- If no PR exists: open one with the [pr-description-skill]
(../pr-description-skill/SKILL.md).
- Post per-wave summary comment: pages audited, drift caught,
fixes applied, items deferred, alignment-loop residue.Bundled assets
assets/subagent-prompt-template.md-- the per-scope prompt the orchestrator substitutes and dispatches. Composes python-architect (S7) + doc-writer (surgical edit). Loaded once per scope.assets/panelist-return-schema.json-- subagent return schema, mirrored from docs-sync. Loaded once at wave start; validated against every return.scripts/scan-cross-corpus-drift.sh-- deterministic grep sweep for cross-corpus patterns (IA dead links, stale deprecation targets, phantom flags). Non-interactive; emits structured matches on stdout, diagnostics on stderr. Run--helpfor pattern list. Update this script after each major IA reshuffle.
Cost model
| Wave size | Pages | Subagents | LLM dispatches | Wall time |
| Small | ~30 | 4 | ~5 | ~3 min |
| Medium (default) | ~55 | 6 | ~7 | ~5 min |
| Large | ~110 (full corpus) | 12 (two medium waves) | ~14 | ~10 min |
Compared to docs-sync (15-call flat ceiling), this skill scales as O(waves), not O(claims), because per-agent work fits in one context window. S7 verification dominates wall-time, not LLM cost.
Boundary (what this skill does NOT do)
- Per-PR doc-impact review -- use
docs-sync. - Single-page typo or copy edit -- direct edit is faster.
- Writing docs for a brand-new feature -- use
docs-impact-architectanddoc-writerdirectly. - Auto-merging or pushing without maintainer review.
- Reviewing code quality, security, or test coverage (out of scope).
Evals
See evals/:
evals/content-evals.json-- 3 corpus snapshots with seeded drift (stale CLI flag, dead nav link, expired deprecation target); expected behavior is that the skill catches all three and applies surgical fixes that ground out true on re-verification.evals/trigger-evals.json-- 10 should-trigger + 10 should-NOT- trigger queries, 60/40 train/val. The val split is the ship gate (>=0.5 should-trigger AND <0.5 should-not-trigger).evals/README.md-- how to run.
Provenance
This skill was extracted from a real session that audited the microsoft/apm corpus across 3 waves (PR #1511, 2026-05-27): 112/112 pages audited, 49 surgical fixes, ~25 LLM dispatches, ~30 min wall-time. The session design artifact (genesis hand-off packet) lives in session state, not in this bundle (maintainer- scope, not runtime-loaded).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

