code-review
Skill178 starsChanged 3 months agoMITView on GitHub
Review guidance for pull requests in this repository. Use when reviewing a pull request, to keep comments on evidence you can see rather than on predicted build outcomes, remembered API signatures, or assumed conventions.
188 other projects use a version of this.
Adopted by
Most recently taken up by
- github/spec-kittheir own version, first seen Nov 23, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use starter, media-processing 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.
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 5 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 4 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 32 projects that use this
AWSSkillresolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
Also in 48 projects that use this
- +1 more from mrgoonie
- +2 more from aws
Other versions188 projects use a version of this.
Word for word · 1
- microsoft/ox-tools★ 19100% same
Edited · 0
None found.
Wrote their own version · 187
- mattpocock/skills★ 335ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- github/awesome-copilot★ 40ksame name
- langchain-ai/deepagents★ 30ksame name
- microsoft/vcpkg★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/onnxruntime★ 22ksame name
177 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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crates/bytesbuf/AGENTS.mdAGENTS.md
- crates/fetch/AGENTS.mdAGENTS.md
- crates/seatbelt/AGENTS.mdAGENTS.md
- crates/seatbelt/examples/AGENTS.mdAGENTS.md
- cargo-anvil-adoptionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 16 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Every rule below exists because a review comment was filed, argued, and withdrawn.
- Distinctive: line 25
When you do file one, name the evidence: the file and line you read, the config key you checked, the sibling cases you compared against.
- Distinctive: line 30
Every pull request is validated by CI.
- Distinctive: line 51
If you believe there is a real logic, correctness, security, or design problem, describe *that* without predicting a compiler, linter, or …
- Distinctive: line 60
Read the definition, or the vendored header, or the crate's docs.
- Distinctive: line 61
If you cannot, say what you observed and ask, rather than asserting.
- Distinctive: line 79
Do not write "this repo prefers X" or "the convention here is Y" from a single observed file.
- Very specific: line 82
Check the machine-enforced source first — clippy.toml, rustfmt.toml, lint tables, AGENTS.md, .editorconfig.
- Distinctive: line 88
Never contradict a finding you made earlier in the same review.
- Distinctive: line 90
If a convention is real but only partly applied, say so and scope the request — filing it on five of twenty sites leaves the codebase less …
- Distinctive: line 102
If the surrounding entries are consistent and the new one matches them, the new one is correct.
- Distinctive: line 107
Before asking for a different design — extra defensive layers, different gating, decoupled delivery — state the specific input or sequence …
- Distinctive: line 118
Prefer asking a question over prescribing a redesign.
- Distinctive: line 122
Do not file the same finding twice on the same file, or on both a template and the file generated from it.
- Distinctive: line 125
Do not split one root cause across several threads.
- Distinctive: line 126
Do not re-file a finding that was already answered in this review.
- Distinctive: line 148
If a finding does not fit one of these, and you cannot point at the evidence for it, leave it out.
“Common” is measured: kept by at least 6 in 10 of the 173 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
<!-- GENERATED BY cargo-anvil. DO NOT EDIT DIRECTLY. -->Code review
This skill applies when reviewing pull requests. It does not apply to the coding
agent when it writes code — see AGENTS.md for that.
Every rule below exists because a review comment was filed, argued, and withdrawn. The cost of a wrong comment is not zero: the author has to reproduce your claim, disprove it, and write the rebuttal.
The evidence rule
Comment only on what you can see in the diff, in a file you have read, or in this repository's own configuration. Anything else — what an API's signature is, what a constant's value is, what compiles, what the local convention is — is a guess. If you cannot point at the evidence, do not file the comment.
When you do file one, name the evidence: the file and line you read, the config key you checked, the sibling cases you compared against.
1. Never predict build, lint, or test outcomes
Every pull request is validated by CI. Do not claim code "won't compile", "fails to build", "has a type error", "is missing an import", "won't link", or "will throw at runtime" — CI is the source of truth, and you are not running it.
This is the single largest source of withdrawn comments. Real examples, all wrong:
- "
size_ofis not in the prelude" — it is, in edition 2024, and this workspace's Clippy rejects the explicit import as redundant. - "
Futureis not in scope" — also in the 2024 prelude. - "
Duration::from_minsdoes not exist" — it exists on the pinned toolchain, and a Clippy lint here requires it overfrom_secs(15 * 60). - "
LocalKeyhas noset, usewith(|cell| …)" —LocalKey<Cell<T>>hasset/get. - "
array::from_fntakes two generic parameters" — it takes three (T,N, and the closure). - "
self.0.1is not valid tuple access" — rustc splits a float literal in field position back into.0and.1. - "splatting a
List[string]will throw" — PowerShell splatting enumerates generic lists.
If you believe there is a real logic, correctness, security, or design problem, describe that without predicting a compiler, linter, or test result.
2. Do not assert an API from memory
Signatures, generic arity, trait bounds, and constant values are the things you are most confident and most often wrong about. Before writing "X does not exist", "X takes N arguments", or "X equals V":
- Read the definition, or the vendored header, or the crate's docs.
- If you cannot, say what you observed and ask, rather than asserting.
One withdrawn comment built an entire boundary-condition bug report on
WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH being u32::MAX. It is 0.
3. Check the edition and toolchain before "not in scope"
A missing use is not evidence of a missing import. Read Cargo.toml for
edition and rust-toolchain.toml for the pinned version first. The 2024
prelude added Future, IntoFuture, and the std::mem size/align functions,
among others — code that looks under-imported for edition 2015 is usually
correct.
The same applies to MSRV: a constructor you do not recognise may simply be newer than your training data and older than the pin.
4. Convention claims need evidence from this repo
Do not write "this repo prefers X" or "the convention here is Y" from a single observed file. Before claiming a convention:
- Check the machine-enforced source first —
clippy.toml,rustfmt.toml, lint tables,AGENTS.md,.editorconfig. If a tool already permits both forms, there is no convention to enforce. - Count the counter-examples. "Prefer
unwrapoverexpectin tests" was filed against a workspace where 60+ test files useexpect, and whereclippy.tomlsetsallow-unwrap-in-tests = trueprecisely to allow both. - Never contradict a finding you made earlier in the same review.
If a convention is real but only partly applied, say so and scope the request — filing it on five of twenty sites leaves the codebase less consistent than before, not more.
5. Do not generalise a local pattern past the policy that governs it
"This entry should also include X, like the others" requires checking all the
others. Two withdrawn comments asked for an exception to be added to a list that
was deliberately uniform: a mutation-test group that intentionally never pulls in
a *_testing sibling, and a Miri exclusion list that intentionally covers every
*_macros_impl crate as a cost policy.
If the surrounding entries are consistent and the new one matches them, the new one is correct. Changing the convention is a separate pull request.
6. Design changes need a concrete failure path
Before asking for a different design — extra defensive layers, different gating, decoupled delivery — state the specific input or sequence that breaks the current one. Without it, the request is speculative, and the alternative is often worse:
- Wrapping a waker call in
catch_unwindwas asked for and declined: it would have turned a loud abort into a silent hang. - A "validate the return type" check in a proc-macro was asked for and declined:
Resultis routinely reached through aliases, so the check would reject working code.
Prefer asking a question over prescribing a redesign.
7. One comment per root cause
- Do not file the same finding twice on the same file, or on both a template and the file generated from it. Comment on the source; note that the generated copy follows.
- Do not split one root cause across several threads.
- Do not re-file a finding that was already answered in this review.
8. Grammar and style: only when unambiguous
Prose nits are the lowest-value comments in a review, and a wrong one is pure noise. Skip them unless the text is genuinely ambiguous or wrong. In particular, check for a compound subject before "correcting" verb agreement — "field enumeration and visitor work still occur" is correct as written.
What is worth commenting on
In priority order:
- Correctness — logic that produces a wrong result for a describable input.
- Security — trust boundaries, permission scope, injection, unsafe invariants.
- Concurrency and lifetimes — races, ordering, aliasing, leaks.
- API and contract drift — documentation that no longer matches behaviour, breaking changes not reflected in the version.
- Missing coverage for a specific risk — name the untested branch, not "add more tests".
If a finding does not fit one of these, and you cannot point at the evidence for it, leave it out.
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.

