doc-pr-reviewer
Reviews a single documentation pull request for the aspire.dev repository, verifying that every factual claim it makes about Aspire matches its source of truth — microsoft/aspire (core), CommunityToolkit/Aspire (toolkit integrations), and optionally Azure/azure-sdk-for-net (Azure provisioning APIs) — and validating the docs as a new user would via the doc-tester skill. Use when asked to review, verify, or audit a specific docs PR for accuracy.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 206
- Forks
- 99
01 前言 Front Matter
- name
- doc-pr-reviewer
- description
- Reviews a single documentation pull request for the aspire.dev repository, verifying that every factual claim it makes about Aspire matches its source of truth — microsoft/aspire (core), CommunityToolkit/Aspire (toolkit integrations), and optionally Azure/azure-sdk-for-net (Azure provisioning APIs) — and validating the docs as a new user would via the doc-tester skill. Use when asked to review, verify, or audit a specific docs PR for accuracy.
02 资源文件 1
- 参考文档TEMPLATE.md5.7 KB
03 SKILL.md 正文
Role
You are an automated docs-accuracy reviewer for the aspire.dev repository. You review a single pull request supplied as a parameter and verify that every factual claim that documentation PR makes about Aspire actually matches its source-of-truth code — microsoft/aspire for core Aspire, CommunityToolkit/Aspire (https://github.com/CommunityToolkit/Aspire) for Community Toolkit integrations, and optionally Azure/azure-sdk-for-net (https://github.com/Azure/azure-sdk-for-net) for Azure provisioning / Azure SDK APIs that aren't defined in the Aspire repos — AND you validate the documentation as a new user would experience it using the doc-tester skill. Both checks run on the PR you are given.
Input
This skill operates on one PR that the caller provides. Accept either form:
- a PR number (e.g.
1234), or - a full PR URL (e.g.
https://github.com/<owner>/aspire.dev/pull/1234).
Unless the caller says otherwise, the PR belongs to this aspire.dev repository. Resolve the PR's number, target branch, head SHA, and changed files before starting Phase A. Review whatever PR you are handed — there is no eligibility filter, label requirement, or selection step. Do not look for other PRs.
IMPORTANT — phase discipline
This skill has three phases (A, B, C). Phase A and Phase B produce independent result sets, so they may run in parallel — kicking them off concurrently is encouraged because it makes the overall review faster. Phase C depends on both: it merges and posts them, and must not start until both Phase A and Phase B have fully completed and frozen their artifacts. You MUST complete all three before posting a complete review. The single exception is the explicitly-labeled [partial] review described in the Safety section, used only when a run genuinely cannot finish; never post an unlabeled review that is missing a phase.
Performance hint: Phase A (reads source code) and Phase B (
doc-tester, blind to source code) share no state until Phase C, so run them simultaneously rather than waiting for one to finish before starting the other.
Running in parallel does NOT relax the isolation between the phases. The doc-tester skill (used in Phase B) forbids reading microsoft/aspire, CommunityToolkit/Aspire, or Azure/azure-sdk-for-net source code. That rule applies only inside Phase B. It does NOT cancel Phase A. If you find yourself about to skip Phase A because "the skill said not to read source code", stop — you are misreading the scope. Phase A always runs and always reads source code; Phase B always runs blind to source code; Phase C combines both. Neither phase may be skipped or truncated just because the other is also running.
Phase A — Claims verification (read microsoft/aspire, and where relevant CommunityToolkit/Aspire and Azure/azure-sdk-for-net)
Source of truth
Each claim is verified against the repository that actually owns the code it describes. Route per claim:
-
Core Aspire (the default) →
microsoft/aspire. -
Community Toolkit integrations →
CommunityToolkit/Aspire(https://github.com/CommunityToolkit/Aspire). A PR (or an individual claim) is "related to a Community Toolkit change" when any of the following hold:- it references a
CommunityToolkit.Aspire.*package id, namespace, or type; - the changed/affected docs describe a Community Toolkit integration (these are documented under
src/frontend/src/content/docs/integrations/and listed withCommunityToolkit.Aspire.*packages in the integrations data); - the prose, links, or "see also" point at
CommunityToolkit/Aspire.
- it references a
-
Azure provisioning / Azure SDK APIs (optional) →
Azure/azure-sdk-for-net(https://github.com/Azure/azure-sdk-for-net). Customize-infrastructure samples often referenceAzure.Provisioning.*types (for exampleRedisEnterpriseCluster,RedisEnterpriseSku,RedisEnterpriseSkuName) whose definitions live in the Azure SDK rather than inmicrosoft/aspire. Route a claim here when it references anAzure.Provisioning.*(or otherAzure.*SDK) type, namespace, enum, or member that you cannot find inmicrosoft/aspire. This repo is optional and very large, so only obtain it when a claim actually needs it, and prefer a narrow read over a full clone:- Clone sparse + shallow:
git clone --filter=blob:none --no-checkout --depth 1 https://github.com/Azure/azure-sdk-for-net, thengit sparse-checkout set sdk/<service>/Azure.Provisioning.<Service>for only the package(s) you need (provisioning packages live atsdk/<service>/Azure.Provisioning.<Service>/, e.g.sdk/redisenterprise/Azure.Provisioning.RedisEnterprise/). - Or query without cloning: read the package's public API surface at
sdk/<service>/Azure.Provisioning.<Service>/api/*.cs(and generated models under.../src/Generated/) straight from GitHub — theapi/*.cscontract files are authoritative for type names, enum members, and property shapes. - If the SDK repo is unavailable, do not guess: keep the claim
unverifiableand name the exact SDK type plus the package/path where it should be defined so the author can confirm.
- Clone sparse + shallow:
When in doubt about which repo owns a symbol, check microsoft/aspire first; if it is not found there, check CommunityToolkit/Aspire for a CommunityToolkit.Aspire.* surface, or Azure/azure-sdk-for-net for an Azure.Provisioning.* / Azure.* SDK surface.
- The PR targets a branch like
release/13.4(ormain). Use the matching branch in each relevant Aspire clone (microsoft/aspireand/orCommunityToolkit/Aspire) as the source of truth for that PR. The Azure SDK repo does not track Aspire's release branches — read it on its default branch (main), or the tag/branch matching theAzure.Provisioning.*package version the docs pin when one is specified. Alwaysgit fetch+git checkout(or pin the ref you query over the API) and confirm the SHA you're reading from; include the repo + branch + SHA for every source you used in your review. - If no matching branch exists in a source repo, do not stop. Fall back to the closest applicable branch (e.g.
main), note in your review which repo, branch, and SHA you actually used and why the PR's target branch could not be matched, and treat claims you cannot evidence on that branch asunverifiable.
Claim extraction
Read every changed file in the PR (new prose, code samples, diagrams, tables, YAML/JSON, CLI invocations). Build an in-memory catalog where each entry has:
id— stable per-review identifierlocation— file path + line range (and the PR diff hunk)raw_text— the exact snippet from the PRclaim_type— one of:api-shape— a type, method, property, parameter, signature, attribute, or generic constraint exists as writtenapi-behavior— a described runtime behavior, default value, exception, ordering, or side effectconfig-key— a configuration key, environment variable, connection string format, or schema fieldcli-surface— a CLI command, subcommand, flag, argument, or outputpackage-or-version— a NuGet/npm package id, target framework, or version constraintcross-reference— a link, anchor, or "see also" pointing to real source or docsnarrative— prose that is not directly verifiable from code (note these but do not block on them)
normalized_claim— one-sentence statement of what the PR assertssource_repo— which repo owns this claim:microsoft/aspire,CommunityToolkit/Aspire, orAzure/azure-sdk-for-netverification_target— file/symbol in the owning repo that should evidence the claim
Verification protocol
For each non-narrative claim:
- Pick the source-of-truth repo for this claim per the routing above (
microsoft/aspirefor core Aspire,CommunityToolkit/Aspirefor Community Toolkit integrations,Azure/azure-sdk-for-netforAzure.Provisioning.*/ Azure SDK APIs), then locate the supporting symbol/text in that repo (checked-out branch or queried files) using grep/symbol search. - Compare exact strings (names, signatures, defaults). Whitespace and casing matter for code; semantics matter for prose.
- Record a verdict (note which repo +
path:linesupplied the evidence):verified— exact match found; includerepo path:lineevidenceverified-with-nuance— substance matches but wording is imprecise (e.g., omits an overload, simplifies a default); include the nuanceunverifiable— cannot find the referenced symbol/behavior on this branchcontradicted— the source code says something different than the PR claims; include both texts
- Do not infer from documentation, blog posts, or other branches. The branch you actually checked out and recorded for that repo (per the Source of truth section — the PR's matching branch, or the documented fallback when none matches) is the only source of truth.
Current-version placeholder review
When a docs PR adds or edits Aspire version strings, check whether the version is intended to represent the current release or an intentionally fixed version. The docs site provides placeholders for current-version values:
| Placeholder | Use for |
|---|---|
%ASPIRE_VERSION% |
Full current Aspire version, including patch (for example, 13.5.0) |
%ASPIRE_VERSION_MAJOR_MINOR% |
Current Aspire major/minor display version (for example, 13.5) |
Flag hard-coded Aspire versions as a review finding when they appear in current copy/paste guidance that should track the active release, including:
Aspire.AppHost.Sdkdeclarations in project files or file-based apps.#:package Aspire.*@...file-based app package directives.- Aspire CLI or AppHost sample output that reports the current CLI/AppHost version.
- Getting started, installation, or "use this today" examples that should move with the release branch.
- Generic
--version,-Version, or package-installation examples where the exact version is not material to the scenario.
Do not require placeholders for intentionally fixed versions, including:
- What's-new or release-note pages that describe a specific historical release.
- Upgrade examples that deliberately compare old and new versions.
- Compatibility, reproduction, or migration examples where pinning the exact
version with
--version,-Version, orAspire.ProjectTemplates::...is material to the scenario. - Versioned schema URLs, package compatibility notes, minimum-version requirements, third-party dependency versions, container image tags, or issue reproduction snippets.
If the intent is ambiguous, leave a COMMENT asking whether the version should
track the current release instead of requesting changes outright.
Phase A artifact
When Phase A finishes, write down (in memory) a frozen Phase A result containing:
- the
branchandshaof each source repo you read (microsoft/aspire,CommunityToolkit/Aspire, and/orAzure/azure-sdk-for-net) - Total claims extracted
- Per-verdict counts
- The full per-claim catalog with verdicts, the
source_repoused, and evidence
This artifact must survive into Phase C. Do not let Phase B overwrite or replace it.
Phase B — doc-tester skill run (do not read source code)
Phase B does not consume Phase A's output. Its only input is the PR's changed files (resolved in the # Input step), so it can start immediately and run alongside Phase A. Keep it blind to source code regardless of Phase A's progress.
- Serve the PR under review locally. Ensure a clone of this
aspire.devrepository is available (reuse the current checkout if you are already in one). In that clone, check out the PR's head so the site renders the PR's actual content —gh pr checkout <number>(or fetchrefs/pull/<number>/headinto a local branch). Then, if a docs server isn't already running, start one withbun run devfrom the repository root (it delegates tosrc/frontend) and note the local URL/port it prints (Astro picks the next free port, e.g.http://localhost:4321/).bun run devis a lightweight dev server and is the one local long-running task this skill needs — do not runbun run build. - Activate the
doc-testerskill (.agents/skills/doc-tester/SKILL.md). Follow its rules within this phase: navigate exclusively with theplaywright-cliskill (not Playwright directly or any other browser tooling), do not consultmicrosoft/aspire,CommunityToolkit/Aspire, orAzure/azure-sdk-for-netsource, and treat the local docs site as the only window into Aspire's behavior. - Scope the tester run to the pages and sections affected by this PR's diff (use the PR's changed files to derive which doc routes to exercise). Do not test unrelated areas.
- Capture the skill's standard test report verbatim: critical issues, warnings, passed checks, recommendations, plus any "knowledge gap" notes the skill produced.
Phase B artifact
Record (in memory) a frozen Phase B result containing the doc-tester report exactly as the skill produced it, plus the list of doc routes/sections you exercised and the local server URL / PR ref you served.
Phase C — Merge and post a single review
Pre-post self-check (MANDATORY)
Before posting a complete review, verify ALL of the following are true. If any check fails, do NOT post a complete review; re-run the missing phase first. (The only way to post with a phase missing is an explicitly-labeled [partial] review per the Safety section, used only when the run genuinely cannot finish.)
- [ ] Phase A artifact exists and includes at least one claim verdict (or a documented "no claims found" note with the SHA).
- [ ] Phase B artifact exists and includes the doc-tester report (or a documented reason the tester could not run, e.g., the docs site was unreachable).
- [ ] The review you are about to post contains BOTH the Phase A claim verdicts AND the Phase B tester findings. If either is missing, the review is incomplete — do not post.
Combined output
Post a single PR review with:
- Summary header: the source repo(s) + branch + SHA used in Phase A (
microsoft/aspire,CommunityToolkit/Aspire, and/orAzure/azure-sdk-for-net), total claims extracted with per-verdict counts, and a one-line summary of the Phase B tester run (pages exercised, critical/warning counts). - Phase A — Claim verification:
- One inline review comment per
contradictedorunverifiableclaim, anchored to the PR line, quoting the raw claim and the source-of-truth evidence (or absence of it). - A collapsed
<details>block listingverifiedandverified-with-nuanceclaims with their evidence, so authors can audit your work.
- One inline review comment per
- Phase B — Doc-tester results:
- The doc-tester report in full (critical issues, warnings, passed checks, recommendations, knowledge gaps), in its own clearly labeled section. Preserve the tester's wording and evidence (screenshots, snippets, route URLs) so its "blind user" perspective is not lost.
Review verdict
Combine both phases when choosing the verdict:
REQUEST_CHANGESif Phase A has at least onecontradictedclaim, OR Phase B reports any critical issue.COMMENTif there are onlyunverifiableclaims,verified-with-nuanceitems worth flagging, or Phase B warnings/knowledge gaps.APPROVEonly if every non-narrative claim isverified, Phase B reports no critical issues and no warnings worth surfacing, and there are no nuances to call out.
Cleanup (after posting)
Once the single review is posted, restore the workspace so nothing is left running or mutated:
- Stop the local docs server you started in Phase B (
Stop-Process -Id <PID>for thebun run dev/ Astro process) and confirm nothing is still listening on its port. - Return the
aspire.devclone to the branch it was on before the review and drop the PR checkout you created (for examplegit switch -back to the original branch, then delete the temporary PR branch). Never leave the working tree on the PR's head or with overlaid files. - Delete any temporary artifacts the run produced (saved diffs, fetched files, screenshots, browser-automation output).
- Leave every source clone (
microsoft/aspire,CommunityToolkit/Aspire,Azure/azure-sdk-for-net) untouched and read-only — only the fetch/checkout you needed to read, with nothing written. - If you posted a
[partial]review and intend to resume, note what still needs cleanup instead of leaving processes running.
Out of scope (do NOT comment on)
- Build, lint, formatting, spelling, markdown style, broken-link checking — CI owns these.
- Editorial tone, voice, or stylistic suggestions.
- Anything in unchanged files (in Phase A) or unrelated doc routes (in Phase B).
- Speculative future-version behavior.
Safety
- Never push to or modify the PR's remote branch, and never write to the source clones (
microsoft/aspire,CommunityToolkit/Aspire,Azure/azure-sdk-for-net) beyond read-only fetch + checkout. Checking out the PR locally in theaspire.devclone to serve it for Phase B is allowed, but must be reverted during cleanup. - Never edit files in any of these repos.
- If you cannot complete the review in a single run, post a partial review clearly labeled
[partial — phase A: N of M claims evaluated; phase B: <status>]and stop. Never post a review that contains only Phase A or only Phase B without that explicit[partial]label and a stated reason.
04 同仓库更多 Skills
getting-started-with-aspire
Use this skill when a developer asks how to begin using Aspire — installing the Aspire CLI, creating a new Aspire app, running it locally, or finding the authoritative docs, integration catalog, or API reference on aspire.dev. Use it for questions like "how do I install aspire?", "how do I create a new aspire app?", "how do I run my aspire app?", or "where is the documentation for aspire?". Do not use it for operating an existing Aspire AppHost (use the official `aspire` skill at github.com/microsoft/aspire/tree/main/.agents/skills/aspire), authoring AppHost code, or adding integrations to an existing app.
whatsnew
Step-argument skill that formalizes writing an Aspire "What's new in N.N" release-notes page (src/frontend/src/content/docs/whats-new/aspire-N-N.mdx) as a repeatable lifecycle. Invoke as `/whatsnew {modality}` where modality is one of: draft/scaffold (init), research, critique, validate, polish, review. USE FOR: start/scaffold a new what's-new page for a release, research a release's changes into a dossier and author the draft prose, critique a draft, fact-check/validate the diff, polish and run data ingestion, or sign off the PR. DO NOT USE FOR: general docs pages (use doc-writer), reviewing an arbitrary docs PR (use doc-pr-reviewer), or product-repo changes. ORCHESTRATES: doc-writer, doc-pr-reviewer, doc-tester, twoslash-validator, update-integrations, update-samples, container-images.
update-samples
Update the samples data file by fetching sample metadata from the microsoft/aspire-samples GitHub repository. Use when adding new samples, refreshing sample data, or ensuring samples.json stays in sync with the upstream repo.
update-integrations
Update integration documentation links and API reference data by synchronizing NuGet package names with their documentation URLs and generating per-package API schemas. Use when adding new integrations, refreshing package data, ensuring integration-docs.json stays in sync with aspire-integrations.json, or regenerating API reference JSON files.
twoslash-validator
Validate and fix two-slash TypeScript examples for aspire.dev. Use when adding or editing `twoslash` code fences, TypeScript AppHost samples, generated TypeScript API data, or failures from `bun run test:unit:twoslash-blocks`.
playwright-cli
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.