code-review
Skill16 starsChanged 8 months agoMITView on GitHub
Perform thorough code reviews with security, performance, and maintainability analysis. Use when user asks to review code, check for bugs, or audit a codebase.
188 other projects use a version of this, 5 of them edited.
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 · 0
None found.
Edited · 5
- shareAI-lab/learn-claude-code★ 78k37% same
- wulawulu/learn-claude-code-rs★ 14137% same
- Chris-debug-0225/learn-claude-code-java★ 10345% same
- csy-csy123/pr-review-agent-council★ 8530% same
- msober/mini-agent★ 4037% same
Wrote their own version · 183
- mattpocock/skills★ 335ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame 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
- google/filament★ 21ksame name
173 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 repositoryOne other file it gives its agents.
- git-commitSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 177
Understand context: Read PR description, linked issues, and acceptance criteria
- Distinctive: line 179
Read top-down: Start with controllers/entry points, follow the call chain
- Distinctive: line 181
Security scan: Run SpotBugs, OWASP dependency check
- Distinctive: line 182
Manual review: Use checklist above, focus on business logic correctness
“Common” is measured: kept by at least 6 in 10 of the 175 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
Code Review Skill
You now have expertise in conducting comprehensive code reviews. Follow this structured approach:
Review Checklist
1. Security (Critical)
Check for:
- Injection vulnerabilities: SQL injection, command injection, XSS, LDAP injection
- Authentication issues: Hardcoded credentials, weak authentication mechanisms
- Authorization flaws: Missing access controls, IDOR, privilege escalation
- Data exposure: Sensitive data in logs, error messages, or stack traces
- Cryptography: Weak algorithms, improper key management, plaintext secrets
- Dependencies: Known vulnerabilities in third-party libraries
# Quick security scans for Java projects
mvn dependency-check:check # OWASP dependency check
./gradlew dependencyCheckAnalyze # Gradle equivalent
grep -r "password\|secret\|api_key\|apiKey" --include="*.java" --include="*.yml" --include="*.properties"2. Correctness
Check for:
- Logic errors: Off-by-one, null handling, edge cases
- Race conditions: Concurrent access without synchronization, shared mutable state
- Resource leaks: Unclosed streams, connections, or resources (missing try-with-resources)
- Error handling: Swallowed exceptions, overly broad catch blocks, missing error paths
- Type safety: Unchecked casts, raw types, missing generics
3. Performance
Check for:
- N+1 queries: Database/API calls in loops (common with JPA/Hibernate)
- Memory issues: Large object allocations, retained references, improper caching
- Blocking operations: Blocking I/O in reactive/async code paths
- Inefficient algorithms: O(n^2) when O(n) is possible, unnecessary object creation
- Missing caching: Repeated expensive computations or database lookups
- String concatenation: Using
+in loops instead ofStringBuilder
4. Maintainability
Check for:
- Naming: Clear, consistent, descriptive (follows Java conventions)
- Complexity: Methods > 50 lines, deep nesting > 3 levels, cyclomatic complexity
- Duplication: Copy-pasted code blocks violating DRY
- Dead code: Unused imports, unreachable branches, commented-out code
- Comments: Outdated Javadoc, redundant comments, or missing documentation where needed
- SOLID principles: Single responsibility, proper abstractions, dependency injection
5. Testing
Check for:
- Coverage: Critical paths and business logic tested
- Edge cases: Null, empty, boundary values, error conditions
- Mocking: External dependencies properly isolated (Mockito, WireMock)
- Assertions: Meaningful, specific checks (not just
assertNotNull) - Test naming: Descriptive names following conventions (e.g.,
shouldReturnEmpty_whenInputIsNull)
Review Output Format
## Code Review: [file/component name]
### Summary
[1-2 sentence overview]
### Critical Issues
1. **[Issue]** (line X): [Description]
- Impact: [What could go wrong]
- Fix: [Suggested solution]
### Improvements
1. **[Suggestion]** (line X): [Description]
### Positive Notes
- [What was done well]
### Verdict
[ ] Ready to merge
[ ] Needs minor changes
[ ] Needs major revisionCommon Patterns to Flag
Java
// Bad: SQL injection
String query = "SELECT * FROM users WHERE id = " + userId;
stmt.executeQuery(query);
// Good: Use parameterized queries
PreparedStatement ps = conn.prepareStatement("SELECT * FROM users WHERE id = ?");
ps.setString(1, userId);
// Bad: Resource leak
InputStream is = new FileInputStream("file.txt");
// processing without close
// Good: try-with-resources
try (InputStream is = new FileInputStream("file.txt")) {
// processing
}
// Bad: Swallowed exception
try { riskyOperation(); } catch (Exception e) { }
// Good: Log or rethrow
try { riskyOperation(); } catch (Exception e) {
log.error("Operation failed", e);
throw new ServiceException("Operation failed", e);
}
// Bad: Mutable shared state without synchronization
private List<String> cache = new ArrayList<>();
// Good: Use concurrent collections or synchronization
private List<String> cache = new CopyOnWriteArrayList<>();
// Bad: N+1 query in JPA
List<Order> orders = orderRepo.findAll();
orders.forEach(o -> o.getItems().size()); // triggers lazy load per order
// Good: Use fetch join
@Query("SELECT o FROM Order o JOIN FETCH o.items")
List<Order> findAllWithItems();Spring Boot
// Bad: Hardcoded secrets
@Value("sk-abc123xyz")
private String apiKey;
// Good: Use externalized configuration
@Value("${api.key}")
private String apiKey;
// Bad: Missing validation
@PostMapping("/users")
public User create(@RequestBody User user) { ... }
// Good: Validate input
@PostMapping("/users")
public User create(@Valid @RequestBody User user) { ... }Review Commands
# Show recent changes
git diff HEAD~5 --stat
git log --oneline -10
# Find potential issues
grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.java" .
grep -rn "password\|secret\|token" --include="*.java" --include="*.properties" --include="*.yml" .
# Check for common issues
mvn spotbugs:check # Static analysis
mvn checkstyle:check # Code style
./gradlew spotbugsMain # Gradle equivalent
# Run tests with coverage
mvn test jacoco:report
./gradlew test jacocoTestReport
# Check dependencies
mvn versions:display-dependency-updates
./gradlew dependencyUpdatesReview Workflow
- Understand context: Read PR description, linked issues, and acceptance criteria
- Run the code: Build, run tests, start locally if possible (
mvn spring-boot:run) - Read top-down: Start with controllers/entry points, follow the call chain
- Check tests: Are changes tested? Do tests pass? Is coverage adequate?
- Security scan: Run SpotBugs, OWASP dependency check
- Manual review: Use checklist above, focus on business logic correctness
- Write feedback: Be specific, suggest fixes, be kind and constructive
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.

