code-review-advanced
Skill118 starsChanged 2 months agoMITView on GitHub
Performs evidence-driven code review for pull requests, legacy modules, and quality-critical changes. Use when reviewing complex or multi-file changes, test automation suites, architectural refactors, or hot paths that need analysis of correctness, maintainability, security, performance, test quality, and operability risks. Provides structured feedback with severity-ranked findings, actionable recommendations, and clear rationale. For a fast sanity check of a small diff or single file, use the code-review skill instead.
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 19 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
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 10
Use this skill when a review needs to go beyond style feedback and surface the real engineering risks in a change.
- Distinctive: line 15
Use this skill when the user asks for things like:
- Distinctive: line 33
Evidence over intuition: - every important finding should point to observable code, behavior, or missing coverage
- Distinctive: line 38
Acknowledge uncertainty: - if the review lacks context, say so explicitly instead of pretending certainty
- Distinctive: line 42
Follow the phases in order.
- Distinctive: line 53
If the user does not provide this information, infer cautiously and list assumptions.
- Distinctive: line 57
Do not comment on code in isolation if context is available.
- Distinctive: line 66
If the request is based on a diff or pull request, identify:
- Very specific: line 74
Use ./resources/review-checklist.md as the primary checklist.
- Distinctive: line 76
Always review at least these dimensions:
- Very specific: line 86
When the reviewed code touches automated tests, also load ./resources/test-automation-review-lens.md.
- Distinctive: line 99
Do not inflate severity.
- Distinctive: line 101
Use these severity rules:
- Very specific: line 111
Use ./resources/review-report-template.md for the response structure.
- Distinctive: line 121
Keep feedback concrete and teammate-friendly.
- Distinctive: line 122
Prefer "Consider extracting this dependency boundary because..." over vague criticism like "This feels messy."
- Distinctive: line 126
Before delivering the review, verify:
- Distinctive: line 130
every non-trivial finding has evidence
- Distinctive: line 148
call out what is solid, not only what is wrong
- Distinctive: line 152
keep suggestions incremental unless the current approach is structurally unsafe
- Distinctive: line 166
If the user asks for a shorter response, compress the output but preserve:
- Very specific: line 173
If the user asks for an example of the expected result, use ./resources/example-review.md.
- Distinctive: line 194
every non-trivial finding has severity, evidence, risk, and a recommended direction
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Advanced Code Review
Use this skill when a review needs to go beyond style feedback and surface the real engineering risks in a change. It is built for complex pull requests, sensitive code paths, test automation suites, and refactors where a shallow review would miss important trade-offs.
When to Use
Use this skill when the user asks for things like:
- "review this PR critically"
- "audit this change for maintainability or security"
- "look for architectural issues, not just syntax problems"
- "review this test automation code for flakiness and long-term cost"
- "analyze whether this refactor is safe to merge"
Typical scenarios:
- large or multi-file pull requests
- legacy code audits
- high-risk changes in authentication, payments, permissions, data flows, or CI pipelines
- changes that add tests but may still reduce confidence
- code that technically works but appears expensive to maintain
Review Principles
- Evidence over intuition - every important finding should point to observable code, behavior, or missing coverage
- Risk over volume - a few high-signal findings are better than a long list of cosmetic remarks
- Context before judgment - understand intent, constraints, and surrounding patterns before recommending change
- Severity must mean something - blockers and high-risk findings must be clearly separated from notes and polish
- Actionable feedback only - explain why the issue matters and what the safer direction looks like
- Acknowledge uncertainty - if the review lacks context, say so explicitly instead of pretending certainty
Review Workflow
Follow the phases in order.
Phase 0: Frame the review
Before reviewing, establish:
- scope: whole repository, changed files only, or one subsystem
- review goal: correctness, readiness, architecture, security, test quality, or debt discovery
- change type: feature, bug fix, refactor, migration, test-only, or infrastructure
- constraints: release pressure, backward compatibility, legacy boundaries, compliance needs
If the user does not provide this information, infer cautiously and list assumptions.
Phase 1: Understand the context first
Do not comment on code in isolation if context is available.
Check:
- surrounding modules and nearby patterns
- existing tests and how they express behavior
- documentation, ticket intent, or change summary if available
- whether the implementation matches the apparent architectural direction of the repository
If the request is based on a diff or pull request, identify:
- what behavior changed
- what behavior stayed implicit
- what could regress without detection
Phase 2: Inspect the change through multiple lenses
Use ./resources/review-checklist.md as the primary checklist.
Always review at least these dimensions:
- Correctness - logic, edge cases, state transitions, and error handling
- Maintainability - readability, cohesion, duplication, coupling, and naming quality
- Architecture - boundary violations, abstraction quality, hidden dependencies, and future change cost
- Security and privacy - trust boundaries, secrets, authorization, unsafe defaults, and logging risks
- Performance and scalability - obvious hot paths, unnecessary work, poor batching, blocking calls, or repeated setup
- Testing - missing coverage, weak assertions, test realism, determinism, and regression detection strength
- Operability - observability, diagnostics, fallback behavior, and failure recovery
When the reviewed code touches automated tests, also load ./resources/test-automation-review-lens.md.
Phase 3: Build findings with clear structure
Each meaningful finding should contain:
- severity: Blocker, High, Medium, Low, or Note
- area: correctness, architecture, test quality, security, performance, maintainability, or operability
- summary: short statement of the issue
- evidence: concrete file, behavior, or omission that supports the claim
- risk: why the issue matters
- recommended direction: the smallest safe improvement or follow-up
Do not inflate severity.
Use these severity rules:
- Blocker - likely wrong, unsafe, or merge-blocking
- High - significant regression, security, data, or reliability risk
- Medium - important quality issue that should be addressed soon
- Low - valid improvement but not urgent
- Note - observation, trade-off, or follow-up idea with no immediate action required
Phase 4: Write a review that is easy to act on
Use ./resources/review-report-template.md for the response structure.
The review should usually include:
- a short executive summary
- the highest-risk findings first
- specific strengths worth preserving
- missing tests, docs, or operational safeguards
- a final recommendation:
approve,comment, orrequest changes
Keep feedback concrete and teammate-friendly. Prefer "Consider extracting this dependency boundary because..." over vague criticism like "This feels messy."
Phase 5: Self-check before finalizing
Before delivering the review, verify:
- the summary matches the actual findings
- duplicated comments are removed
- every non-trivial finding has evidence
- severity matches impact
- suggested fixes are proportionate to the problem
- the review distinguishes between immediate blockers and longer-term design advice
Advanced Review Heuristics
Signs a change is riskier than it first appears
- a refactor changes control flow and test snapshots still pass without stronger assertions
- the implementation introduces new branching but test coverage stays flat
- a helper reduces duplication but centralizes too many unrelated responsibilities
- the code hides I/O, retries, or state mutations behind innocent-looking abstractions
- logging or telemetry was changed in a way that weakens failure diagnosis
- the diff is small but touches a critical boundary such as auth, persistence, or test fixtures
Good advanced review behavior
- call out what is solid, not only what is wrong
- distinguish merge-now issues from roadmap-quality concerns
- connect design comments to business or delivery risk
- mention when more evidence is needed rather than over-claiming
- keep suggestions incremental unless the current approach is structurally unsafe
Bad review behavior to avoid
- nit-picking style while missing correctness or reliability risk
- calling something "bad practice" without explaining the consequence
- recommending rewrites when a targeted fix is enough
- marking everything high severity
- treating test code as lower quality or less deserving of design review
Output Expectations
The preferred output is a structured markdown review using the template in ./resources/review-report-template.md.
If the user asks for a shorter response, compress the output but preserve:
- high-level verdict
- severity-ranked findings
- evidence for important claims
- recommendation status
If the user asks for an example of the expected result, use ./resources/example-review.md.
Resource Map
./resources/review-checklist.md- multi-lens checklist for advanced reviews./resources/review-report-template.md- reusable review output structure./resources/example-review.md- example filled review with severity-ranked findings./resources/test-automation-review-lens.md- extra review criteria for test suites and automation code
Related Skills
code-review- quick, lightweight review for small diffs and single filesunslop-tests- the test lens: named tells in test code, severity-tiered, with Tier 1 findings proven by executiontech-debt-analysis- when review findings should feed a broader debt assessmentanalyzing-regression-scope- when the review should be paired with a retest scope analysis
Definition of Done
This skill is complete when:
- the review scope, goal, and change type are framed explicitly
- every non-trivial finding has severity, evidence, risk, and a recommended direction
- the highest-risk findings lead the report and strengths worth preserving are acknowledged
- missing tests, docs, or operational safeguards are called out
- a final recommendation (
approve,comment, orrequest changes) is given
In this repository51 other files it gives its agents.
- analyzing-quality-metricsSkill
- analyzing-regression-scopeSkill
- api-playwright-test-developerSkill
- assessing-comprehension-debtSkill
- assessing-release-readinessSkill
- attesting-manual-verificationSkill
- auditing-accessibilitySkill
- code-reviewSkill
- communicating-quality-findingsSkill
- creating-custom-agentsSkill
- creating-hooksSkill
- creating-instructionsSkill
- creating-orchestration-packsSkill
- creating-pluginsSkill
- creating-promptsSkill
- creating-skillsSkill
- deriving-a-quality-contractSkill
- designing-functional-testsSkill
- designing-test-dataSkill
- documenting-test-suitesSkill
- generating-quality-gate-workflowsSkill
- governing-quality-waiversSkill
- handling-sensitive-test-dataSkill
- migrating-tests-to-playwrightSkill
- mocking-network-and-timeSkill
- planning-exploratory-testingSkill
- prd-generatorSkill
- recording-change-intentSkill
- reporting-bugsSkill
- requirements-test-coverage-mapperSkill
- reviewing-ai-output-groundednessSkill
- running-visual-regression-testsSkill
- scoping-change-relevanceSkill
- static-code-analysis-typescriptSkill
- tech-debt-analysisSkill
- test-driven-development-quickSkill
- test-driven-developmentSkill
- testing-agent-skillsSkill
- testing-api-contractsSkill
- testing-application-securitySkill
- testing-llm-featuresSkill
- testing-llm-guardrailsSkill
- testing-performance-and-loadSkill
- tracing-requirements-to-codeSkill
- tracking-quality-trendsSkill
- unslop-answersSkill
- unslop-testsSkill
- verifying-acceptance-criteriaSkill
- verifying-change-coverageSkill
- writing-unit-tests-quickSkill
- writing-unit-testsSkill
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.

