code-review
Skill9.4k starsChanged 40 days agoMITView on GitHub
Review code changes in dotnet/machinelearning for correctness, compatibility, performance, and consistency with ML.NET conventions. Use when reviewing PRs or code changes.
194 other projects use a version of this, 5 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- canonical/mirtheir own version, first seen Nov 30, 2026
- canonical/multipasstheir own version, first seen Nov 29, 2026
- Forget-C/Jellyfishtheir own version, first seen Nov 29, 2026
- ceph/cephtheir own version, first seen Nov 29, 2026
- dotnet/aspnetcoretheir own version, first seen Nov 29, 2026
- codewithmukesh/dotnet-agent-kittheir own version, first seen Nov 29, 2026
Who's talking about dotnet/machinelearning
- Jon Wood“A Look at the New ML.NET API”YouTube · Oct 4, 2018 · 8.2k views
- Microsoft Developer“TWC9: VS Code Updates, Microsoft Surface Go, Azure Static Websites Preview, Java News, and more”YouTube · Jul 13, 2018 · 2.6k views
- Jon Wood“What's New in ML.NET 2.0”YouTube · Jan 15, 2023 · 2k views
- Jon Wood“What's New in ML.NET 1.6”YouTube · Jul 16, 2021 · 1k views
- Jon Wood“Using the new Expression Transform in ML.NET”YouTube · Jan 13, 2020 · 846 views
The biggest 5 of 77 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 77
Talked about on GitHub, Stack Overflow, YouTube and Hacker News (77 times).
On GitHub · 40
- Aug 2, 2018Proposal: allow 'href' attributes (particularly in <see> and <seealso> elements) — dotnet/csharplang36 reactions · 7 comments
- Aug 2, 2018Proposal: do not require <description> in <list> without <term> — dotnet/csharplang11 reactions
- Apr 24, 2019Arrow enabled implementation and comparison with pySpark — dotnet/spark6 reactions · 6 comments
- May 25, 2018Support native DLLs in generate-load-scripts — fsprojects/Paket4 reactions · 9 comments
- Mar 18, 2019Need infrastructure to run tests in varying hardware intrinsic modes — dotnet/runtime3 reactions · 16 comments
35 more on GitHub
- Nov 12, 2018System.ComponentModel.Composition doesn't work on UWP — dotnet/runtime3 reactions · 15 comments
- Jul 2, 2022Community Article: How to use ml.net in an ABP based application — abpframework/abp2 reactions · 2 comments
- Sep 24, 2020Add Ranking AutoML Sample — dotnet/machinelearning-samples2 reactions · 4 comments
- Jun 15, 2019C# API — mlflow/mlflow2 reactions · 9 comments
- May 3, 2019[AutoML] Generated model file should target netstandard2.0 — dotnet/machinelearning-modelbuilder2 reactions · 2 comments
- Nov 11, 2018Should JIT recognize and hoist NumberFormatInfo.CurrentInfo calls when parsing numbers? — dotnet/runtime2 reactions · 4 comments
- Jul 19, 2018Not everything documented in the code appears in the docs website — dotnet/docs2 reactions · 2 comments
- Nov 20, 2025Support VS 2026 in build.cmd — dotnet/TorchSharp1 reaction
- Oct 30, 2024Update C# tokenizer libraries — openai/openai-cookbook1 reaction · 3 comments
- Feb 7, 2019spam detection sample ported to F# — dotnet/machinelearning-samples1 reaction · 1 comment
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.TensorFlow — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.ImageAnalytics — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML from 1.6.0 to 6.0.0 — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.TimeSeries — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML from 1.6.0 to 6.0.0 — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.TensorFlow — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.SampleUtils — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.FastTree — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML and Microsoft.ML.Recommender — ltongtesting/week4lab0 reactions
- Nov 11, 2026Bump Microsoft.ML from 1.6.0 to 6.0.0 — ltongtesting/week4lab0 reactions
- Oct 7, 2026Bump Microsoft.ML and Microsoft.ML.TimeSeries — ltongtesting/week4lab0 reactions
- Oct 7, 2026Bump Microsoft.ML from 1.6.0 to 5.0.0 — ltongtesting/week4lab0 reactions
- Oct 7, 2026Bump Microsoft.ML and Microsoft.ML.FastTree — ltongtesting/week4lab0 reactions
- Oct 7, 2026Bump Microsoft.ML and Microsoft.ML.Recommender — ltongtesting/week4lab0 reactions
- Oct 7, 2026Bump Microsoft.ML from 1.6.0 to 5.0.0 — ltongtesting/week4lab0 reactions
- Sep 11, 2026Bump Microsoft.ML from 3.0.1 to 5.0.0 — dotnet/spark0 reactions · 2 comments
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.FastTree — Aarthivishakha/stry-m0 reactions
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.TensorFlow — Aarthivishakha/stry-m0 reactions
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.ImageAnalytics — Aarthivishakha/stry-m0 reactions
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.SampleUtils — Aarthivishakha/stry-m0 reactions
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.TimeSeries — Aarthivishakha/stry-m0 reactions
- Jul 21, 2026Bump Microsoft.ML and Microsoft.ML.Recommender — Aarthivishakha/stry-m0 reactions
- Jun 2, 2026Bump Microsoft.ML from 1.7.1 to 5.0.0 — adixt/Step0Regression0 reactions
- Dec 8, 2025Bump Microsoft.ML and Microsoft.ML.TensorFlow — NatYou345/TailwindTraders-Backend0 reactions
- Dec 8, 2025Bump Microsoft.ML and Microsoft.ML.ImageAnalytics — NatYou345/TailwindTraders-Backend0 reactions
On Stack Overflow · 21
- Oct 26, 2009machine learning libraries in C#63 votes
- Dec 22, 2022Pandas Dataframe or similar in C#.NET4 votes
- Oct 19, 2020Using ML.net with an ONNX model and GPU4 votes · 2 answers
- Nov 18, 2018ML.NET TrainTestSplit random seed4 votes
- Jun 18, 2018Am I using TextLoader wrong when running the ML.Net Iris demo in F#?4 votes · 1 answer
16 more on Stack Overflow
- Jun 11, 2018ml.net train model input from string instead of a file4 votes
- May 25, 2018How to predict integer values using ML.NET?4 votes
- Jan 20, 2023SchemaDefinition.Create throws exception in Microsoft.ML.ImageAnalytics version 2.03 votes
- Aug 9, 2021Ml.Net Imageclassification incremental learning3 votes
- Nov 21, 2019ML.Net sentimental analysis prediction of comments not working in ASP.NET MVC web application3 votes
- Jan 27, 2022DataFrame for large datasets in C#2 votes
- Nov 21, 2020Problem: Export python tensorflow model and load it in ML.Net2 votes
- Jul 9, 2020Has anyone successfully gotten Microsoft.ML output on Visual Studio for Mac?2 votes
- Feb 3, 2019Why is the ReadFromEnumerable method not working? ML.NET2 votes · 1 answer
- Jun 11, 2018Microsoft ml.net Concatenate 2 columns as a label2 votes
- Jun 6, 2022ML.NET OLSTrainer on Macos with an arm M1 processor error with libomp1 vote
- Nov 20, 2021Equivalent of `shift` from pandas1 vote · 2 answers
- Jan 9, 2020ML.NET 1.4.0 Prediction Engine throws PlatformNotSupportedException due to System.Drawing in x64 UWP1 vote · 2 answers
- Mar 18, 2019Can I add rules to ML.NET?1 vote
- Jan 28, 2019Train a model without labeling the features in ML.NET1 vote
- Dec 28, 2018Convert Console app to UWP app error ML.NET1 vote
On YouTube · 11
- Oct 4, 2018A Look at the New ML.NET API — Jon Wood8.2k views · 24 comments
- Jul 13, 2018TWC9: VS Code Updates, Microsoft Surface Go, Azure Static Websites Preview, Java News, and more — Microsoft Developer2.6k views · 7 comments
- Jan 15, 2023What's New in ML.NET 2.0 — Jon Wood2k views · 3 comments
- Jul 16, 2021What's New in ML.NET 1.6 — Jon Wood1k views · 4 comments
- Jan 13, 2020Using the new Expression Transform in ML.NET — Jon Wood846 views
6 more on YouTube
- Dec 28, 2020What's New in ML.NET Version 1.5.4 — Jon Wood748 views · 7 comments
- Aug 11, 2020What's new in ML.NET 1.5.1 — Jon Wood545 views · 2 comments
- Jan 26, 2025Phi-4 Challanges AI Giants — Maximum Code524 views
- Mar 31, 2021What’s New in ML.NET 1.5.5 — Jon Wood445 views · 2 comments
- Jan 29, 2020Machine Learning für .NET (ML.NET) Entwickler - Vortrag mit Damir Dobric — GFU Cyrus AG427 views
- Mar 20, 2022ML.NET4-Predict prices using regression with ML.NET(中文說明) — RD看世界221 views
On Hacker News · 5
- Dec 20, 2018Machine Learning for .NET202 points · 47 comments
- May 7, 2018Machine Learning for .NET143 points · 20 comments
- Aug 12, 2019ML.NET 1.3.13 points
- Aug 30, 2021Plan for Deep Learning in .NET2 points
- Jul 6, 2018ML.NET 0.3 Released2 points
Used with
Projects with it also use close-spec, design-with-images 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.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
PydanticSkilladd-new-model
Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry. Also use when Anthropic, OpenAI or Google deprecates or retires a model, to update the deprecation tables.
Also in 10 projects that use this
Microsoft AzureSkillazsdk-common-apiview-feedback-resolution
Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.
Also in 6 projects that use this
Microsoft AzureSkillazsdk-common-generate-sdk-locally
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
Also in 6 projects that use this
ww-w-aiSkillbkend-auth
bkend.ai authentication guide. Signup, login, JWT tokens, sessions, role-based access control, and password management with bkend.ai BaaS. Triggers: bkend auth, bkend login, bkend signup, JWT, session, RBAC, password, bkend 인증, 로그인, 회원가입, bkend認証, ログイン, 新規登録, bkend认证, 登录, 注册, autenticacion bkend, authentification bkend, bkend-Auth Do NOT use for: data operations (use $bkend-data), file storage (use $bkend-storage).
Also in 4 projects that use this
- +3 more from dzhng
- +3 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- dotnet/roslyn★ 21k20% same
- dotnet/runtime★ 18k27% same
- dotnet/efcore★ 15k15% same
- App-vNext/Polly★ 14k23% same
- domaindrivendev/Swashbuckle.AspNetCore★ 5.5k21% same
Wrote their own version · 189
- mattpocock/skills★ 335ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- ggml-org/llama.cpp★ 137ksame name
- supabase/supabase★ 116ksame name
- storybookjs/storybook★ 92ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 64ksame name
179 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- pull-requestSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 16 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Very specific: line 31
Consumers and callers: If the change modifies an API, a shared type, or a virtual/interface member, find how consumers use it (including …
- Distinctive: line 32
Sibling types and related code: If the change fixes a bug in one trainer, transform, loader, or platform-specific path, check whether …
- Distinctive: line 33
Key utilities: Read shared helpers the diff calls into to understand their contracts.
- Very specific: line 34
Git history: Check recent commits to the changed files (git log --oneline -20 -- <file>).
- Very specific: line 46
Write down your independent assessment, using the criteria in pr-assessment.md, before proceeding.
- Distinctive: line 58
Validation and errors: Follow the owning library's validation and exception conventions.
- Very specific: line 66
Bound related-issue searches: Search the same component or area with a narrow query and a small limit (for example, gh issue list -R …
- Distinctive: line 67
Update your assessment: only when the new context genuinely changes it (for example, a linked issue proves the bug is real).
- Distinctive: line 82
Avoid false positives: Before flagging an issue:
- Distinctive: line 83
Verify it applies given the full context, not just the diff.
- Distinctive: line 85
If unsure, investigate further or raise it as an explicit low-confidence question.
- Distinctive: line 86
If a pattern seems odd but is consistent with the repository, assume it is intentional.
- Distinctive: line 87
Never assert that something "does not exist" or "is deprecated" from training data alone.
- Distinctive: line 99
Never pick models labeled "mini", "fast", or "cheap" for code review.
- Distinctive: line 100
Do not select the same model that is already running the primary review (your own model).
- Distinctive: line 101
If multiple standard-tier models exist in the same family, pick the one with the highest version number.
- Distinctive: line 110
Use this structure when presenting the final review, whether as a PR comment or as output to the user.
- Distinctive: line 141
Detailed Findings: use emoji-prefixed headers: ✅ verified correct, ⚠️ warning, ❌ error, 💡 suggestion.
- Distinctive: line 144
Keep the review concise. Every claim should be backed by evidence from the code.
“Common” is measured: kept by at least 6 in 10 of the 186 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
ML.NET Code Review
Review code changes against the conventions and contracts ML.NET maintainers enforce.
Reviewer mindset: Be polite but skeptical. Your job is to help maintainers review faster, which includes finding problems the author missed and questioning whether the PR is worth taking at all. Treat the PR description and linked issues as claims to verify, not facts to accept. Back every concern with evidence. When you cannot confirm a concern, raise it as an explicit low-confidence question.
When to Use This Skill
Use this skill when:
- Reviewing a PR or code change in dotnet/machinelearning
- Checking your own changes before submitting a PR
- Asked to review, critique, or provide feedback on code changes
Review Process
Step 0: Load Relevant Instructions
Load .github/skills/code-review/pr-assessment.md (the criteria for assessing the whole change) and .github/copilot-instructions.md (repository conventions) if they are not already in context. If the two conflict, copilot-instructions.md wins.
Step 1: Gather Code Context (No PR Narrative Yet)
Collect relevant code context first. Do NOT read the PR description, linked issues, or existing review comments yet. Form your own view of what the code does, why it might be needed, and whether the approach is sound before seeing the author's framing.
- Diff and file list: Fetch the full diff and list of changed files without requesting the PR body or other narrative (for example,
gh pr diff <number> --name-onlyfollowed by the full diff). - Full source files: For every changed file, read well beyond the diff hunks. Diff-only review is the main cause of false positives and missed issues. Read the whole file when it is a reasonable size. Otherwise read the enclosing types, their callers, and the types involved.
- Consumers and callers: If the change modifies an API, a shared type, or a virtual/interface member, find how consumers use it (including
[BestFriend]callers in other assemblies). - Sibling types and related code: If the change fixes a bug in one trainer, transform, loader, or platform-specific path, check whether siblings have the same issue.
- Key utilities: Read shared helpers the diff calls into to understand their contracts.
- Git history: Check recent commits to the changed files (
git log --oneline -20 -- <file>). Look for reverts, prior attempts, or conflicting recent work. For a merged PR, identify the merge commit and inspect the pre-PR version withgit show <merge-sha>^:<path>; do not mistake the PR's own commit for prior history. - Detect public API changes: Check whether the change adds, changes, or removes externally accessible APIs in packages built from this repository, or changes the intended public contract (such as supported inputs, exceptions, or compatibility) without changing signatures. Assess the API that consumers receive, not just declarations in
src/: include source-generated APIs (including generators or inputs undertools-local/), packed assemblies, and other package outputs. For generated APIs, inspect generated source or package/API validation output as appropriate. Changes confined to tools, tests, and samples are not public API unless they alter a shipped package. If an API change is detected, you MUST run the API approval check in Step 4.
Step 2: Form an Independent Assessment
Based only on the code context gathered above, answer:
- What does this change actually do? What was the old behavior and what is the new behavior?
- Why might this change be needed? Infer the motivation from the code.
- Is this the right approach? Would a simpler alternative fit the codebase better? Could existing functionality achieve the goal?
- What problems do you see? Bugs, edge cases, missing validation, compatibility breaks, thread-safety issues, performance regressions, API design problems, and test gaps.
Write down your independent assessment, using the criteria in pr-assessment.md, before proceeding.
Step 3: ML.NET-Specific Checks
Apply the checks that match the diff:
- Model persistence: If the persisted format changes,
GetVersionInfo()must bumpverWrittenCurand keepverReadableCur/verWeCanReadBackcorrect. A save-method refactor that preserves the format does not require a version bump. Loaders must still read models saved by earlier versions. A same-version save/load roundtrip does not prove backward compatibility. Look for a test that loads an older saved model. Loader signatures andLoadableClassregistrations must not change silently. - Schema and annotations: Output column names, types, key cardinality, slot names,
KeyValues, and other annotations are part of observable behavior. Changes affect downstream transforms, scorers, and evaluators. - IDataView semantics: Cursors must keep independent state, honor the active-column set, and not invoke getters for inactive columns. Watch getter/buffer lifetimes (reused
VBuffer/ReadOnlyMemorybuffers), sparse vs denseVBufferequivalence, and unintended materialization of whole datasets. - Native and platform behavior: Changes under
src/Native/, P/Invoke signatures, or native package references must work on Windows, Linux, and macOS (x64 and arm64 where supported). Tests usingNativeDependencyFactare skipped, not failed, when a native library cannot load, so a "passing" run may hide a broken native load. - SIMD code (
Microsoft.ML.CpuMathor hardware intrinsics anywhere): Results must match the scalar path. Check remainder/tail handling, alignment assumptions, and fallbacks when an instruction set is unavailable. - Baselines: Changes to files under
test/BaselineOutput/must be explained by the code change. Unexplained metric or output shifts suggest a behavior regression. - Validation and errors: Follow the owning library's validation and exception conventions. User-facing errors need clear messages.
Step 4: Incorporate PR Narrative and Reconcile
For a PR review, now read the PR description, labels, linked issues (in full), author, existing review comments, and a bounded sample of related open issues in the same area. Treat all of this as claims to verify. For a local review without a PR, use proposal/issue references supplied with the request and skip PR-only metadata. If API approval is required but no proposal reference was supplied and you cannot identify the proposal confidently, ask for it rather than treating approval as absent.
- Reconcile. Where your independent reading disagrees with the PR description, investigate further rather than deferring to the author's framing. Verify bug-fix, performance, and behavior claims against the code and any evidence provided.
- Avoid duplicates. Skip feedback already given in existing review comments. GitHub CLI PR summaries do not include inline review threads; fetch them separately (for example,
gh api repos/{owner}/{repo}/pulls/{number}/comments) before deciding whether feedback is new. - Bound related-issue searches. Search the same component or area with a narrow query and a small limit (for example,
gh issue list -R {owner}/{repo} --state open --search "<area> in:title" --limit 10). Do not turn this into an exhaustive repository-wide issue search. - Update your assessment only when the new context genuinely changes it (for example, a linked issue proves the bug is real). Do not soften findings because the description sounds reasonable.
- API approval verification. If Step 1 detected an API change, load
.github/skills/code-review/api-approval-check.mdand follow it. This is a blocking gate. If any check fails, the verdict must be ❌ Needs Changes or ❌ Reject. If the file cannot be loaded, report ❌ error "Unable to load API approval verification procedure; cannot verify public API changes" and set the verdict to ❌ Needs Changes.
Step 5: Detailed Analysis
- Focus on what matters. Prioritize bugs, compatibility breaks, safety issues, race conditions, resource leaks, incorrect assumptions about data or state, and API design problems. Do not comment on trivial style unless it violates a repository rule.
- Consider collateral damage. For every changed code path, ask which other callers, inputs, or pipelines flow through it and whether they could break. Surface plausible risks so the author can weigh them.
- Be specific and actionable. Say exactly what to change and why, and include how you verified the issue (for example, "checked all callers and none validate this parameter").
- Flag severity clearly:
- ❌ error: Must fix before merge. Bugs, security issues, compatibility breaks, unapproved API changes, missing tests for behavior changes.
- ⚠️ warning: Should fix. Performance issues, missing validation, inconsistency with established patterns.
- 💡 suggestion: Consider changing. Readability or optional improvements.
- Don't pile on. Flag a repeated issue once and list all affected files.
- Respect existing style. The current file's style takes precedence over general guidelines.
- Don't flag what CI catches. Skip issues a compiler, analyzer, formatter, or CI build would catch.
- Avoid false positives. Before flagging an issue:
- Verify it applies given the full context, not just the diff. Confirm it isn't already handled by a caller, callee, or wrapper.
- Skip theoretical concerns with negligible real-world probability.
- If unsure, investigate further or raise it as an explicit low-confidence question.
- If a pattern seems odd but is consistent with the repository, assume it is intentional.
- Never assert that something "does not exist" or "is deprecated" from training data alone.
- Ensure code suggestions are valid. Suggested code must compile, be complete, and match the surrounding indentation and style.
- Label in-scope vs. follow-up. Be explicit when a suggestion is a follow-up rather than a blocker.
Multi-Model Review
When the environment supports launching sub-agents with different models (for example, the task tool with a model parameter), run the review in parallel across multiple model families to get diverse perspectives. Different models catch different classes of issues. If the environment does not support this, proceed with a single-model review. Each sub-agent re-reads the diff and the surrounding files, so this multiplies the cost of the review by the number of models. It is worth it for a substantial or risky change, not for a one-line fix.
How to execute (when supported):
- Inspect the available model list and select models from 2-3 distinct model families, up to 3 sub-agent models total. If fewer than 2 eligible families are available, use what is available. Model selection rules:
- Pick only from models explicitly listed as available in the environment. Do not guess or assume model names.
- From each selected family, pick the model with the highest capability tier (prefer "premium" or "standard" over "fast/cheap").
- Never pick models labeled "mini", "fast", or "cheap" for code review.
- Do not select the same model that is already running the primary review (your own model).
- If multiple standard-tier models exist in the same family, pick the one with the highest version number. Prefer "-codex" variants over general-purpose for code review tasks.
- Launch a sub-agent for each selected model in parallel, giving each the same review prompt: the PR diff, the review rules from this skill, and instructions to produce findings in the severity format defined above.
- Wait for all agents to complete, then synthesize: deduplicate findings that appear across models, elevate issues flagged by multiple models (higher confidence), and include unique findings from individual models that meet the confidence bar. Timeout handling: If a sub-agent has not completed after 10 minutes and you have results from other agents, proceed with the results you have. Note in the output which models contributed.
- Present a single unified review, noting when an issue was flagged by multiple models. After posting the review, immediately exit. Do not wait for remaining sub-agents or retry a successful post.
Review Output Format
Use this structure when presenting the final review, whether as a PR comment or as output to the user. GitHub's built-in Copilot code review controls its own comment format, so this format applies when you produce the review text yourself.
📝 AI-generated content disclosure: When posting review content to GitHub under a user's credentials (not a dedicated bot or Copilot app account such as
github-actions[bot]orcopilot), you MUST include a concise, visible note (for example a> [!NOTE]alert) at the bottom indicating the content was AI/Copilot-generated. Skip this only if the user explicitly asks you to omit it.
Structure
## Code Review
**Motivation**: <1-2 sentences on whether the PR is justified and the problem is real>
**Approach**: <1-2 sentences on whether the change takes the right approach>
**Summary**: <✅ LGTM / ⚠️ Needs Human Review / ⚠️ Needs Changes / ❌ Reject>. <2-3 sentence summary of the verdict and key points. If "Needs Human Review," state which findings you are uncertain about and what a human reviewer should focus on.>
---
### Detailed Findings
#### ✅/⚠️/❌/💡 <Category Name> — <Brief description>
<Explanation with specifics. Reference code, line numbers, call paths, etc.>
(Repeat for each finding category. Group related findings under a single heading.)
<!-- AI disclosure note goes below this line when required. -->Guidelines
- Begin the review body with
## Code Review, followed by the**Motivation**:,**Approach**:, and**Summary**:fields in that order. - Detailed Findings use emoji-prefixed headers: ✅ verified correct, ⚠️ warning, ❌ error, 💡 suggestion.
- Include cross-cutting analysis when relevant (sibling types, callers, other platforms).
- Assess test quality as its own finding when the PR includes tests.
- Keep the review concise. Every claim should be backed by evidence from the code.
Verdict Consistency Rules
- The verdict must reflect your most severe finding. Any ⚠️ finding rules out LGTM. Use LGTM only when all findings are ✅ or 💡 and you are confident the change is correct and complete.
- When uncertain, escalate to human review. A false LGTM is far worse than an unnecessary escalation.
- Separate code correctness from approach completeness. Correct code that treats a symptom, masks an error, or fixes one instance but not its siblings is not LGTM.
- Classify each ⚠️ and ❌ finding as merge-blocking or advisory. If any finding would make you uncomfortable merging as-is, the verdict is Needs Changes. If you are unsure, it is Needs Human Review.
- Devil's advocate check. Re-read your ⚠️ findings before finalizing. If any reflects an unresolved concern about approach, scope, or risk, the verdict must reflect it.
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.

