Automated summary
A two-stage code review method that requires verifying spec compliance first, then code quality against security, performance, UX and accessibility checklists.
Strengths
- Enforces a functionality-before-style order through an explicit iron law: no quality review before spec compliance passes
- Ships concrete, prioritized checklists (security, correctness, performance, maintainability, UX, a11y)
- Provides a precise issue-reporting format with severity, location, problem and fix
- Anchors the security review on the OWASP Top 10 as an industry reference
Limitations
- Internal skill: its description defers to cc10x-router, so it is not meant to be invoked directly
- Read-only scope (Read, Grep, Glob) — it cannot run tests or apply fixes
- Checklists stay generic and do not cover language- or framework-specific pitfalls
Use it to review a pull request or module by first confirming the requirements are met, then auditing the code against security and quality checklists.
Avoid it when you need to execute tests, patch the code, or review code that has no requirements to validate against.
Security analysis
SafeThe skill is a pure documentation/reference file for performing code reviews. Its declared allowed-tools are Read, Grep, and Glob, all read-only, and the body contains no bash commands, network calls, credential handling, obfuscated payloads, or instructions to modify/delete anything. The only external link is a benign reference to the OWASP Top 10. No execution risk.
No concerns found
How this analysis is madeExamples
Review the changes in src/api/ for spec compliance against the ticket requirements, then do a full code quality review covering security and performance.Run your 8-item quick review checklist on the files in src/services/ and report anything that fails.Do a security review of src/api/users.ts against the OWASP Top 10 and flag issues with severity, location and suggested fix.name: code-review-patterns description: "Internal skill. Use cc10x-router for all development tasks." allowed-tools: Read, Grep, Glob
Code Review Patterns
Overview
Code reviews catch bugs before they ship. But reviewing code quality before functionality is backwards.
Core principle: First verify it works, THEN verify it's good.
Quick Review Checklist (Reference Pattern)
For rapid reviews, check these 8 items:
- [ ] Code is simple and readable
- [ ] Functions and variables are well-named
- [ ] No duplicated code
- [ ] Proper error handling
- [ ] No exposed secrets or API keys
- [ ] Input validation implemented
- [ ] Good test coverage
- [ ] Performance considerations addressed
The Iron Law
NO CODE QUALITY REVIEW BEFORE SPEC COMPLIANCE
If you haven't verified the code meets requirements, you cannot review code quality.
Two-Stage Review Process
Stage 1: Spec Compliance Review
Does it do what was asked?
-
Read the Requirements
- What was requested?
- What are the acceptance criteria?
- What are the edge cases?
-
Trace the Implementation
- Does the code implement each requirement?
- Are all edge cases handled?
- Does it match the spec exactly?
-
Test Functionality
- Run the tests
- Manual test if needed
- Verify outputs match expectations
Gate: Only proceed to Stage 2 if Stage 1 passes.
Stage 2: Code Quality Review
Is it well-written?
Review in priority order:
- Security - Vulnerabilities that could be exploited
- Correctness - Logic errors, edge cases missed
- Performance - Unnecessary slowness
- Maintainability - Hard to understand or modify
- UX - User experience issues (if UI involved)
- Accessibility - A11y issues (if UI involved)
Security Review Checklist
Reference: OWASP Top 10 - Check against industry standard vulnerabilities.
| Check | Looking For | Example Vulnerability | |-------|-------------|----------------------| | Input validation | Unvalidated user input | SQL injection, XSS | | Authentication | Missing auth checks | Unauthorized access | | Authorization | Missing permission checks | Privilege escalation | | Secrets | Hardcoded credentials | API key exposure | | SQL queries | String concatenation | SQL injection | | Output encoding | Unescaped output | XSS attacks | | CSRF | Missing tokens | Cross-site request forgery | | File handling | Path traversal | Reading arbitrary files |
For each security issue found:
- [CRITICAL] SQL injection at `src/api/users.ts:45`
- Problem: User input concatenated into query
- Fix: Use parameterized query
- Code: `db.query(\`SELECT * FROM users WHERE id = ?\`, [userId])`
Quality Review Checklist
| Check | Good | Bad |
|-------|------|-----|
| Naming | calculateTotalPrice() | calc(), doStuff() |
| Functions | Does one thing | Multiple responsibilities |
| Complexity | Linear flow | Nested conditions |
| Duplication | DRY where sensible | Copy-paste code |
| Error handling | Graceful failures | Silent failures |
| Testability | Injectable dependencies | Global state |
Performance Review Checklist
| Pattern | Problem | Fix | |---------|---------|-----| | N+1 queries | Loop with DB call | Batch query | | Unnecessary loops | Iterating full list | Early return | | Missing cache | Repeated expensive ops | Add caching | | Memory leaks | Objects never cleaned | Cleanup on dispose | | Sync blocking | Blocking main thread | Async operation |
UX Review Checklist (UI Code)
| Check | Verify | |-------|--------| | Loading states | Shows loading indicator | | Error states | Shows helpful error message | | Empty states | Shows appropriate empty message | | Success feedback | Confirms action completed | | Form validation | Shows inline errors | | Responsive | Works on mobile/tablet |
Accessibility Review Checklist (UI Code)
| Check | Verify | |-------|--------| | Semantic HTML | Uses correct elements (button, not div) | | Alt text | Images have meaningful alt text | | Keyboard | All interactions keyboard accessible | | Focus | Focus visible and logical order | | Color contrast | Meets WCAG AA (4.5:1 text) | | Screen reader | Labels and ARIA where needed |
Severity Classification
| Severity | Definition | Action | |----------|------------|--------| | CRITICAL | Security vulnerability or blocks functionality | Must fix before merge | | MAJOR | Affects functionality or significant quality issue | Should fix before merge | | MINOR | Style issues, small improvements | Can merge, fix later | | NIT | Purely stylistic preferences | Optional |
Priority Output Format (Feedback Grouping)
Organize feedback by priority (from reference pattern):
## Code Review Feedback
### Critical (must fix before merge)
- [95] SQL injection at `src/api/users.ts:45`
→ Fix: Use parameterized query `db.query('SELECT...', [userId])`
### Warnings (should fix)
- [85] N+1 query at `src/services/posts.ts:23`
→ Fix: Batch query with WHERE IN clause
### Suggestions (consider improving)
- [70] Function `calc()` could be renamed to `calculateTotal()`
→ More descriptive naming
ALWAYS include specific examples of how to fix each issue. Don't just say "this is wrong" - show the correct approach.
Red Flags - STOP and Re-review
If you find yourself:
- Reviewing code style before checking functionality
- Not running the tests
- Skipping the security checklist
- Giving generic feedback ("looks good")
- Not providing file:line citations
- Not explaining WHY something is wrong
- Not providing fix recommendations
STOP. Start over with Stage 1.
Rationalization Prevention
| Excuse | Reality | |--------|---------| | "Tests pass so it's fine" | Tests can miss requirements. Check spec compliance. | | "Code looks clean" | Clean code can still be wrong. Verify functionality. | | "I trust this developer" | Trust but verify. Everyone makes mistakes. | | "It's a small change" | Small changes cause big bugs. Review thoroughly. | | "No time for full review" | Bugs take more time than reviews. Do it properly. | | "Security is overkill" | One vulnerability can sink the company. Check it. |
Output Format
## Code Review: [PR Title/Component]
### Stage 1: Spec Compliance ✅/❌
**Requirements:**
- [x] Requirement 1 - implemented at `file:line`
- [x] Requirement 2 - implemented at `file:line`
- [ ] Requirement 3 - NOT IMPLEMENTED
**Tests:** PASS (24/24)
**Verdict:** [Meets spec / Missing requirements]
---
### Stage 2: Code Quality
**Security:**
- [CRITICAL] Issue at `file:line` - Fix: [recommendation]
- No issues found ✅
**Performance:**
- [MAJOR] N+1 query at `file:line` - Fix: Use batch query
- No issues found ✅
**Quality:**
- [MINOR] Unclear naming at `file:line` - Suggestion: rename to X
- No issues found ✅
**UX/A11y:** (if UI code)
- [MAJOR] Missing loading state - Fix: Add spinner
- No issues found ✅
---
### Summary
**Decision:** Approve / Request Changes
**Critical:** [count]
**Major:** [count]
**Minor:** [count]
**Required fixes before merge:**
1. [Most important fix]
2. [Second fix]
Review Loop Protocol
After requesting changes:
- Wait for fixes - Developer addresses issues
- Re-review - Check that fixes actually fix the issues
- Verify no regressions - Run tests again
- Approve or request more changes - Repeat if needed
Never approve without verifying fixes work.
Final Check
Before approving:
- [ ] Stage 1 complete (spec compliance verified)
- [ ] Stage 2 complete (all checklists reviewed)
- [ ] All critical/major issues addressed
- [ ] Tests pass
- [ ] No regressions introduced
- [ ] Evidence captured for each claim
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/code-review-patterns-mmbizjwr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/code-review-patterns-mmbizjwr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/code-review-patterns-mmbizjwr/download' --output '.skill-downloads/code-review-patterns-mmbizjwr/SKILL.md.part' && mv '.skill-downloads/code-review-patterns-mmbizjwr/SKILL.md.part' '.skill-downloads/code-review-patterns-mmbizjwr/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/code-review-patterns-mmbizjwr/SKILL.md' && test -s '.skill-downloads/code-review-patterns-mmbizjwr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/code-review-patterns' && cp -R '.skill-downloads/code-review-patterns-mmbizjwr' '.claude/skills/code-review-patterns'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/code-review-patterns-mmbizjwr'openskills read 'code-review-patterns-mmbizjwr'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/code-review-patterns-mmbizjwr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.