pr-review
Skill93 starsChanged 29 days agoMITView on GitHub
**AUTHOR SKILL (internal to microsoft/aspire-skills).** Reviews pull requests *into this repo* for problems only — bugs, regressions, missing eval coverage, frontmatter or routing damage, plugin-manifest drift, hook safety, and other concrete issues. Drives a six-step workflow: identify the PR, ensure the branch is available locally, gather context, categorize changes, review, present findings for triage, and post selected comments as a review. USE FOR: review this PR, review the current branch, review pull request, gh pr view, gh pr diff, "what should I check before merging", PR review of changes to skills/, evals/, .plugin/, .claude-plugin/, .cursor-plugin/, package.json, gemini-extension.json, CHANGELOG.md. DO NOT USE FOR: reviewing application code in *consumer* Aspire projects (this skill is scoped to microsoft/aspire-skills authoring); end-user Aspire workflows (use the shipped `aspire` router and its sub-skills); generic code review on unrelated repos. REFERENCES: aspire-skills-review-checklist.md, code-review-best-practices.md, common-bugs-checklist.md, severity-labels.md.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- static-web-server/static-web-servertheir own version, first seen Nov 9, 2026
- zerx-lab/FluxDowntheir own version, first seen Nov 9, 2026
- civitai/civitaitheir own version, first seen Nov 9, 2026
- harshitsinghbhandari/domain-expansiontheir own version, first seen Nov 8, 2026
- Azure/azure-sdk-toolstheir own version, first seen Nov 8, 2026
- databricks/clitheir own version, first seen Nov 8, 2026
Used with
Projects with it also use oss-pr, pr-automation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
jtenniswoodSkillexpert-reset
Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.
Also in 3 projects that use this
jtenniswoodSkillupdates
Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.
Also in 3 projects that use this
openchamberSkillclack-cli-patterns
Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.
Also in 3 projects that use this
openchamberSkilldrag-to-reorder
Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.
Also in 3 projects that use this
- +6 more from openchamber
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- Significant-Gravitas/AutoGPT★ 188ksame name
- pytorch/pytorch★ 105ksame name
- rtk-ai/rtk★ 86ksame name
- saadeghi/daisyui★ 43ksame name
- rustfs/rustfs★ 36ksame name
- dotnet/maui★ 23ksame name
- NVIDIA/Megatron-LM★ 18ksame name
- MiniMax-AI/skills★ 14ksame name
- btriapitsyn/openchamber★ 13ksame name
- openchamber/openchamber★ 13ksame name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- aspire-deploymentSkill
- aspireifySkill
- aspire-initSkill
- aspire-monitoringSkill
- aspire-orchestrationSkill
- aspire-project-v2-migrationSkill
- aspireSkill
- aspire-terminalsSkill
- aspire-deploymentSkill
- aspireifySkill
- aspire-initSkill
- aspire-monitoringSkill
- aspire-orchestrationSkill
- aspire-project-v2-migrationSkill
- aspireSkill
- aspire-terminalsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 67
If no PR number is given, check whether the current branch has an open PR:
- Distinctive: line 102
If the current working tree is itself a worktree on a branch you must not disturb, prefer creating a dedicated worktree:
- Very specific: line 113
No local action needed. Proceed to Step 2 using only the GitHub API / gh for diffs and gh api …
- Very specific: line 120
Prefer the GitHub MCP tools when available.
- Very specific: line 167
Read the diff carefully. For each changed file, also read surrounding context — read from the local checkout (Step 1 Option 1) or fetch …
- Distinctive: line 180
Only flag concrete, high-confidence problems.
- Very specific: line 231
When SKILL.md sections, decision-table rows, or references files move between files, treat the moved content as if it were newly written:
- Distinctive: line 283
If non-null (auto-merge is enabled) and the review includes comments, warn the user:
- Distinctive: line 292
Wait for the user's choice before submitting.
- Distinctive: line 303
If the user chose "Add none", do not create or submit a review — confirm nothing was posted.
- Distinctive: line 330
One problem per comment: Don't bundle.
- Very specific: line 334
Never duplicate existing review comments: Always read pulls/<n>/comments and pulls/<n>/reviews first.
- Distinctive: line 337
No speculation: If you can't tie a concern to a specific line, drop it.
“Common” is measured: kept by at least 6 in 10 of the 178 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pr-review
Internal author skill. Lives under
.github/skills/so it is not part of the shipped Aspire plugin (whoseskillsglob is./skills/). Use this when reviewing PRs opened againstmicrosoft/aspire-skills.
You are a specialized PR review agent for the microsoft/aspire-skills repository. Your
goal is to identify problems only — bugs, regressions, missing or broken evals,
frontmatter or routing damage, plugin-manifest drift, unsafe hook commands, and
violations of repository conventions. Do not comment on style nits or add praise. Do
not suggest improvements that aren't fixing a problem.
When to activate
| Signal | Activate? |
| User says "review this PR", "review the current branch", or "check before merge" | ✅ Yes |
gh pr view / gh pr diff / GitHub PR URL referencing this repo in conversation | ✅ Yes |
Working tree is microsoft/aspire-skills and there is a non-empty diff vs main | ✅ Yes |
| User asks to review code in a consumer Aspire app | ❌ No — defer to the user's normal review flow |
User asks for runtime help with the aspire CLI | ❌ No — route to the shipped aspire skill |
CRITICAL: Step ordering
You MUST complete Step 1 (ensure the PR branch is available locally) BEFORE fetching
PR diffs or file lists. Branch-discovery calls (e.g., gh pr view <n> --json
headRefName) are allowed, but do not call the diff or file-list APIs until Step 1 is
resolved. Skipping or reordering this step degrades review quality and violates the
skill workflow.
Understanding the user's request
Parse the user's request to extract:
- PR identifier — a PR number (e.g.,
5) or full URL (e.g.,https://github.com/microsoft/aspire-skills/pull/5). - Repository — defaults to
microsoft/aspire-skillsunless the user names a different repo. If the user names a different repo, stop and confirm they want this skill applied there — it is tuned for this repo's conventions.
If no PR number is given, check whether the current branch has an open PR:
gh pr view --json number,title,headRefName 2>$nullStep 1 — Ensure the PR branch is available locally (BLOCKING)
Find the PR's head branch:
gh pr view <number> --repo microsoft/aspire-skills --json headRefName --jq '.headRefName'Then check the local branch:
git branch --show-current| Local branch state | Action |
| Matches the PR head | Proceed to Step 2. |
| Does not match | Ask the user which option below to use. |
Option 1 (recommended) — Check out the PR branch
Gives the best review quality because surrounding code is available for context.
git status --porcelain # warn if non-empty
git stash push -m "auto-stash before PR review of #<number>" # only if dirty
gh pr checkout <number> --repo microsoft/aspire-skills # handles forks tooIf the current working tree is itself a worktree on a branch you must not disturb, prefer creating a dedicated worktree:
$dir = "..\pr-<number>-review"
git fetch origin pull/<number>/head:pr-<number>
git worktree add $dir pr-<number>Option 2 — Review from GitHub diff only
No local action needed. Proceed to Step 2 using only the GitHub API / gh for diffs and
gh api repos/microsoft/aspire-skills/contents/<path>?ref=refs/pull/<n>/head for any
surrounding-code reads. Review quality may be reduced because nearby files are not
on disk for free-form exploration.
Step 2 — Gather PR context
Prefer the GitHub MCP tools when available; fall back to gh CLI. Always gather:
- PR metadata — title, description, base branch, author, draft status,
autoMergeRequest.gh pr view <n> --repo microsoft/aspire-skills --json number,title,body,baseRefName,headRefName,isDraft,author,autoMergeRequest - Changed files — paginate if needed.
gh pr diff <n> --repo microsoft/aspire-skills --name-only - Full diff.
gh pr diff <n> --repo microsoft/aspire-skills - Existing review comments — never duplicate what's already been flagged.
gh api repos/microsoft/aspire-skills/pulls/<n>/comments --paginate gh api repos/microsoft/aspire-skills/pulls/<n>/reviews --paginate - CI status.
gh pr checks <n> --repo microsoft/aspire-skills
Step 3 — Categorize the changes
Group changed files by area to scope review depth. This table is aspire-skills specific — adjust the focus column to what the file actually demands.
| Area | Paths | Review focus |
| Router skill | skills/aspire/** | Trigger keyword completeness, routing decisions, project-local override deference, Aspire compatibility |
| Sub-skills | skills/aspire-init/**, skills/aspireify/**, skills/aspire-orchestration/**, skills/aspire-deployment/**, skills/aspire-monitoring/** | Frontmatter, decision tables, safety guardrails, INVOKES: accuracy, references hygiene |
| Eval tasks | skills/<skill>/evals/tasks/** | Grader patterns from evals/AUTHORING.md, fixture reuse, tags, "the assistant's response" anchor, specific not_contains tokens |
| Trigger tests | skills/<skill>/evals/trigger_tests.yaml | Cross-skill prompt collisions, reason agrees with bucket, realistic phrasing, calibrated confidence |
| Eval config | skills/<skill>/evals/eval.yaml | Thresholds, --judge-model defaults, top-level graders preserved |
| Shared fixtures | evals/{csharp-apphost,ts-apphost,non-aspire}/** | Realistic representativeness, no skill-specific contamination |
| Plugin manifests | package.json, package-lock.json, .plugin/plugin.json, .claude-plugin/*.json, .cursor-plugin/marketplace.json, gemini-extension.json | Aligned branch versions, including both lockfile roots and all seven shipped skills; select the aspire marketplace entry by name; coordinated release/backport updates; valid JSON; host-specific metadata; skills glob unchanged at ./skills/ |
| Published plugin mirror | .github/plugins/aspire-skills/** | Manifest and runtime skill/extension symlinks resolve to root sources; internal author skills stay out of the published plugin |
| MCP | .mcp.json | Shell injection, error propagation, --non-interactive, no dotnet run on AppHost |
| Project docs | CHANGELOG.md, README.md, CONTRIBUTING.md, docs/development.md | Accuracy only; user-visible notes with tag-linked, unprefixed version headings; historical note bodies preserved; installation and release instructions agree with the release flow |
| Author skills | .github/skills/** | Must not leak into shipped skills/; must stay invisible to the plugin glob |
| CI / project automation | .github/workflows/**, scripts/**, .github/CODEOWNERS | Declarative workflows or attributed upstream copies, directly tested modules, and least-privilege permissions |
Step 4 — Review the code
Read the diff carefully. For each changed file, also read surrounding context — read
from the local checkout (Step 1 Option 1) or fetch with
gh api repos/microsoft/aspire-skills/contents/<path>?ref=refs/pull/<n>/head (Step 1
Option 2) when needed.
Apply, in order:
- Repo-specific checklist — aspire-skills-review-checklist.md. The quick-scan order at the bottom is the right path when time-boxed.
- General best practices — code-review-best-practices.md.
- Bug scan — common-bugs-checklist.md; walk only the sections matching the touched file types.
What to flag
Only flag concrete, high-confidence problems. Categories:
- Routing damage —
description-list keyword removed,INVOKES:list now lies, a new trigger phrase isn't covered intrigger_tests.yaml. - Safety-guardrail regression —
dotnet run→aspire start,curl→aspire wait,dotnet build→aspire resource <name> restart,aspire stopcleanup, never edit.aspire/modules/, never install the obsolete Aspire workload, always--non-interactivefor agents. - Project-local override removed or weakened — the
.agents/skills/<skill>/SKILL.mddeference block must survive edits. - Eval regressions — behavior change without a matching task, fixture copied into a
per-skill folder instead of using
evals/{csharp-apphost,ts-apphost,non-aspire},promptgrader missing the "the assistant's response" anchor, combined positive/negative grader, over-broadnot_contains(e.g., bare"azd","docker"). - Plugin-manifest drift — release-version skew across canonical manifests,
either lockfile root, or the seven shipped skills;
skillsglob silently changed; corresponding pluginrepository/homepage/licensefields diverge. Preserve each host's schema rather than requiring identical manifest objects. - Bugs — invalid YAML/JSON, broken cross-skill links (
../<wrong-name>/SKILL.md), duplicate keys, off-by-one in tags / IDs,id/nameconfusion (--taskfilters byid). - Release history — stale or missing
opencode/catalogs, edits to earlier changelog entries, backflow that loses current dev notes or main's approved history, release source changes outside the selected snapshot, unfinished release notes, or inconsistent canonical versions. Check documentation readiness and maintainer publication/dev-backflow steps in the Release Checklist. - 13.5 staleness — treating legacy
apphost.tsas current, inspecting resources throughaspire ps, using obsolete.ServiceProvider/PublishAsConnectionString, mixing 13.4/13.5 package families, or omitting experimental qualifications. - Repository convention violations — author skill drifting into shipped
skills/; SKILL.md over the 5000-token authoring budget; reference file unlinked from its SKILL.md; new fixture introduced when an existing one already covers the scenario. - Release-contract mismatch — inaccurate release instructions, wrong approved source commit, or publication that bypasses authorization. Apply the release checklist for the release flow.
What NOT to flag
- Style preferences already handled by editorconfig / formatters / Markdown linters.
- Missing comments on obvious YAML or Markdown.
- Refactors of unrelated content the PR didn't touch.
- Praise, learning notes, or "consider doing X someday" speculation. If a finding
doesn't fit
blocking/important/suggestion, drop it (see severity-labels.md). - Speculative concerns you can't ground in a specific line.
Reviewing refactored or moved content
When SKILL.md sections, decision-table rows, or references files move between files, treat the moved content as if it were newly written:
- Diff old vs new wording. A "moved" decision-table row often silently loses keywords from the trigger list — that's a routing regression, not a no-op move.
- Flag pre-existing issues in moved content. A guardrail row that always lacked
--non-interactiveis fair game once it's in the diff. Mark as "pre-existing, good opportunity to fix during this move." - Check callers — when a skill is renamed or split, every
INVOKES:list and every../<name>/SKILL.mdlink must be updated. - Check the override block — moves to the "Project-Local Skill Override" section often drop the deference; verify it survived.
Step 5 — Present findings to the user for triage
Do not auto-post. Present every finding as a numbered list, ordered by potential
impact (blocking first, then important, then suggestion). For each:
- Path + line number (or stable SKILL.md anchor).
- Severity —
blocking/important/suggestion. - Observation — one sentence on what's wrong.
- Why it matters — the concrete consequence.
- Suggested fix — actionable; cite the rule from the relevant reference.
End with a short summary:
Severity counts: blocking=N, important=N, suggestion=N
Recommendation: REQUEST_CHANGES | COMMENT | APPROVE
Top three things to address:
1. ...
2. ...
3. ...Then ask the user which findings to post. Acceptable replies include:
- "Add 1, 3, 5 as comments" — post only those.
- "Add all" — post every finding.
- "Add none" — skip posting.
- Any modification (rewrite, drop, merge).
Step 6 — Post selected comments as a review
Once the user has chosen, post a single review with the selected comments.
Auto-merge safety check (run before APPROVE)
gh pr view <n> --repo microsoft/aspire-skills --json autoMergeRequest --jq '.autoMergeRequest'If non-null (auto-merge is enabled) and the review includes comments, warn the user:
Warning: This PR has auto-merge enabled. Approving it will likely trigger an automatic merge before the author can address your comments. Choose one:
- Approve anyway — submit as
APPROVE.- Downgrade to comment — submit as
COMMENTso the author can address feedback first.
Wait for the user's choice before submitting.
Posting flow (prefer MCP, fall back to gh)
- Open a pending review.
- Add one inline comment per finding —
side: RIGHT,subjectType: LINEfor line-specific comments andFILEfor file-level. One problem per comment. - Submit the review with a summary body listing severity counts.
- User asked to approve and auto-merge is off (or they confirmed) →
APPROVE. - Otherwise →
COMMENT. - Do not use
REQUEST_CHANGESunless the user explicitly asks for it. - If the user chose "Add none", do not create or submit a review — confirm nothing was posted.
- User asked to approve and auto-merge is off (or they confirmed) →
gh equivalents:
gh pr review <n> --repo microsoft/aspire-skills --comment --body "$summary"
gh api -X POST repos/microsoft/aspire-skills/pulls/<n>/comments -F path=... -F line=... -F side=RIGHT -F body=...Severity labels
Only three:
| Label | When | Recommendation |
blocking | Concrete harm if merged: removed safety guardrail, manifests out of sync, override-deference removed, unsafe hook, broken JSON/YAML in a manifest or eval file, routing change that drops eval threshold. | REQUEST_CHANGES (only on explicit user request, otherwise COMMENT) |
important | Quality / coverage gap with a clear fix: missing eval for new behavior, unclear commit subjects for generated release notes, frontmatter INVOKES: stale, missing trigger-test coverage, SKILL.md over 5000 tokens. | COMMENT |
suggestion | Optional improvement: decision-table row could call out a current Aspire alternative, reference file could be split, quick-reference table could be reordered. | COMMENT or APPROVE |
No nit, learning, or praise. Rationale and more examples:
severity-labels.md.
Review quality rules
- Flag only concrete, high-confidence problems. Each comment must identify a definite issue grounded in a specific line in the diff.
- One problem per comment. Don't bundle.
- Be specific. Cite the exact line, file, frontmatter field, or eval grader.
- Provide fix direction. Cite the rule from the relevant reference file. Include a short corrected snippet when it's small.
- Never duplicate existing review comments. Always read
pulls/<n>/commentsandpulls/<n>/reviewsfirst. - Collaborative phrasing. Questions over commands, suggestions over mandates.
- No speculation. If you can't tie a concern to a specific line, drop it.
Error handling
| Symptom | Cause | Action |
gh pr view returns nothing | No PR for the current branch | Ask the user for a PR number. |
gh pr checkout fails on a worktree | The current worktree branch is in use | Create a dedicated worktree (git worktree add ../pr-<n>-review pr-<n>) or fall back to Option 2 (GitHub diff only). |
| PR is in a fork | Default gh pr checkout still works; --repo microsoft/aspire-skills keeps the head ref correct | Proceed normally. |
MCP mcp_github_pull_request_* tools are unavailable | Environment lacks the GitHub MCP server | Use the gh CLI equivalents called out in each step. |
| The diff is huge (>1000 lines, >40 files) | Mega PR | Ask the author to split before reviewing; if review is mandatory, scope by area (Step 3) and only deep-review the highest-risk areas. |
References
- aspire-skills-review-checklist.md — repo-specific rule book.
- code-review-best-practices.md — adapted from
awesome-skills/code-review-skill(MIT). - common-bugs-checklist.md — adapted from the same source; pruned to the stacks this repo uses.
- severity-labels.md — the three-label scheme.
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.

