microsoft/testfx/code-review
Claude Code and agent skill by microsoft/testfx
- vendor
Checking that the SKILL.md file is still in the repository.
Review pull requests for MSTest and Microsoft.Testing.Platform with TestFx-specific checks. Use for every GitHub Copilot code review in this repository, with extra scrutiny for tests, public APIs, analyzers, MSBuild, localization, and agentic workflows.
Install
npx vskill@latest install microsoft/testfx/code-reviewSKILL.md
The same SKILL.md was published earlier as microsoft/testfx/code-review.
TestFx Code Review
Review the pull request as a maintainer of MSTest and Microsoft.Testing.Platform. Read .github/copilot-instructions.md first and treat it as authoritative.
Focus on defects introduced by the pull request. Do not report pre-existing issues, speculative concerns without a concrete failure mode, or style preferences already enforced by automation. Read enough surrounding code and tests to understand the changed behavior before commenting.
Review process
- Identify the product area from the changed paths:
src/MTPand related tests: Microsoft.Testing.Platform and extensions.src/MSTest/TestFramework: the public MSTest framework API.src/MSTest/MSTest.TestAdapterandsrc/MSTest/MSTestAdapter.PlatformServices: MSTest adapters and platform services.src/MSTest/MSTest.Analyzers*: Roslyn analyzers and code fixes.src/MSTest/MSTest.Sdk,eng, and MSBuild files: build and packaging.
- Trace each behavior change through its callers, tests, target frameworks,
shipped packages, and linked source files. Apply the context checks below before treating a checklist match as a finding.
- Compare the PR title and description with the actual diff. Verify that the
stated motivation, behavior change, compatibility impact, and validation match what the code does. Apply Feature decisions and delivery evidence below, including when the PR provides no design rationale.
- Check changed behavior and related tests against the test-review guidance
below, including unchanged tests protecting source-only changes. Include revision-bound test-value evidence in the review summary.
- Report only actionable findings caused by the PR. Prefer a small number of
high-confidence findings over broad summaries or praise.
- If the change is correct, do not invent a finding merely to leave feedback.
Context checks before a finding
Keep comprehensive analysis separate from publication. Check every applicable dimension, but treat checklist matches and test grades as investigation inputs, not automatic instructions to comment.
- Read the whole type, including other partial declarations, inherited
behavior, helpers, and callers. Before calling a member or P/Invoke unused, search references across that context and every linked-source consumer; absence of a call in the changed file is not evidence of dead code.
- Compare merge-base and HEAD behavior, not just added lines. A moved or
extracted block that preserves behavior does not introduce its old defects. Report it only if the move changes a concrete contract, caller, ordering, or compilation context.
- Derive supported TFMs, conditional compilation, polyfills, and language
versions from the owning projects and linked consumers. A proposed edit must work on the oldest relevant target, not just the reviewer's runtime.
- Verify asserted BCL semantics against official documentation, versioned
implementation source, or a focused repro on the relevant target. Do not infer a concrete type's disposal, cancellation, buffering, or thread-safety behavior from a base type or a familiar API name. If verification is unavailable, record the uncertainty rather than asserting a defect.
- For races and lifetime defects, trace ownership, all reads/writes, and
happens-before relationships (locks, task completion, channels, publication, and serial lifecycle phases). A mutable field, ordinary collection, or missing using is not itself proof of a race or leak.
- Preserve trusted internal invariants unless a concrete external trigger or
failing test disproves them. Put validation at the actual trust boundary; do not suggest silent recovery just because an invariant could hypothetically be violated.
Review publication
- Publish review feedback as one pull-request review per run. Stage actionable
line findings as inline review comments, then bundle them with the final review submission.
- Put PR-level findings, scope and description feedback, dependency assessments,
specialist-review summaries, and overflow findings in the final review body. Do not post separate top-level PR comments for review content.
- Include a compact
Confidence at a glancesection with one color-coded,
collapsed block per applicable review scope. Keep the detailed dimensions as an internal coverage checklist; do not publish one status row per dimension.
- Lead with measurable reviewer actions when action is needed. Keep detailed
line-level evidence in inline comments rather than repeating it in the final review body.
- Do not duplicate a finding already covered by another live review thread.
Reference the existing thread from the review body when it remains the only actionable item.
- Group findings by root cause, observable consequence, and correction, not by
file, locale, test, or review dimension. Use one representative changed-line anchor and list other affected locations compactly. Separate findings only when they require different corrections or have materially different impact.
- Before publishing, read existing review threads and replies, including
human and other-bot findings. Match the root cause even if the line moved, the wording differs, or no workflow marker exists. A new HEAD or outdated anchor alone does not justify repeating an unresolved, still-applicable finding. Reopen a resolved or declined concern only with new evidence that addresses the earlier disposition.
- Apply test quality follow-through to
test-quality feedback. Prefer inline test-method comments for supported improvements and unresolved doubts, explicitly distinguishing an investigation request from a verified defect. A below-A grade alone is not a defect: explain a no-change disposition rather than inventing assertions or churn. Preserve the context, authorization, anchoring and deduplication gates above.
- For automatic specialist checks that are fully clean, prefer
noopwhen the
main review already covers that dimension. Explicit slash-command reviews may still publish an informational COMMENT review. The test-quality workflow also reports test-value evidence for each eligible PR head, even without actionable findings; only a duplicate report for that head may be suppressed.
These instructions govern reviewers that load this repository guidance. Separate code-quality-service findings may not consume it; identify the producer before attributing its output to this skill or claiming a policy change will affect that service.
PR scope and review depth
Be constructively critical. Challenge the change's assumptions, failure modes, and claimed validation rather than accepting the implementation or description at face value. Criticism must still identify concrete evidence and impact; do not manufacture objections for the sake of sounding rigorous. Every criticism must meet the concrete-scenario and observable-consequence bar in Finding quality.
- Check whether the PR combines independent features, refactors, fixes, or
formatting changes that have different motivations or could be reviewed, reverted, and shipped separately. When this materially obscures behavior or increases review risk, recommend splitting the PR and identify the distinct change groups.
- Check that every material diff is explained by the PR description and that
every claimed behavior is implemented. Flag hidden scope, stale claims, understated compatibility or operational impact, and validation claims not supported by the changed tests or available evidence. A missing or brief description is not itself a defect; raise it only when it hides material behavior, compatibility impact, or an unsupported claim.
- Distinguish necessary supporting changes from unrelated cleanup. Do not
request a split merely because a coherent change spans many files or product layers.
- Put scope, description-alignment, split, and additional-review feedback only
in the top-level review summary, never on an arbitrary changed line.
- Request an independent multi-model review sparingly, only for high-blast-
radius changes such as:
- Wire-level IPC contracts or serialization protocols shared with external
clients.
- Structural redesigns of core test-execution scheduling, synchronization,
cancellation, or ExecutionContext propagation.
- New process-launch, arbitrary-code-execution, privilege, or other security
boundaries.
- Cross-product changes with independent compatibility or rollback risks.
- Do not request a multi-model review for routine public API additions, bug
fixes, analyzer changes, adapter features, or test-only changes. Put the request in the review summary and name the exact failure mode, compatibility concern, race, or attack surface the additional models should examine.
Feature decisions and delivery evidence
Use feature-delivery as the evidence contract, not permission to implement, run untrusted PR code, upload media, or publish additional comments. Read linked decision records and available run artifacts; author claims and a checked template box are not execution proof.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 5 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/code-review/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/testfx/code-review)