code-review-assistant
Skill2 starsChanged 10 days agoMITView on GitHub
Automated code review with PR analysis, change summaries, quality checks, and code smell detection. Use this skill when reviewing pull requests, generating review comments, checking against best practices, identifying code smells, or providing refactoring guidance — even if they just say "review this" or "look at this PR". Not for static-analysis, security-code-auditor.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- sandraschi/advanced-memory-mcptheir own version, first seen Oct 24, 2026
- timwukp/agent-skills-best-practicetheir own version, first seen Sep 16, 2026
- BitCrowder/ai-product-dev-skillstheir own version, first seen Jul 26, 2026
- santosomar/general-secure-coding-agent-skillstheir own version, first seen Mar 10, 2026
- lookfree/claude-skills-factorytheir own version, first seen Dec 12, 2025
- pbakaus/code-review-assistanttheir own version, first seen Nov 24, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- sandraschi/advanced-memory-mcp★ 19same name
- timwukp/agent-skills-best-practice★ 10same name
- pbakaus/code-review-assistant★ 8same name
- BitCrowder/ai-product-dev-skills★ 1same name
- lookfree/claude-skills-factory★ 1same name
- santosomar/general-secure-coding-agent-skills★ 1same name
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 repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/avoid-ai-writing/AGENTS.mdAGENTS.md
- .agents/skills/do-web-doc-resolver/AGENTS.mdAGENTS.md
- .agents/skills/skill-evaluator/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- accessibility-auditorSkill
- agent-browserSkill
- agentic-abstentionSkill
- agents-mdSkill
- api-design-firstSkill
- architecture-diagramSkill
- avoid-ai-writingSkill
- cicd-pipelineSkill
- cloudflare-worker-apiSkill
- codacySkill
- codeberg-apiSkill
- css-render-performanceSkill
- database-devopsSkill
- debuggerSkill
- delegateSkill
- dependency-upgradesSkill
- dist-channel-selectionSkill
- docs-hookSkill
- document-rendering-and-locatorsSkill
- dogfoodSkill
- dora-reportSkill
- do-web-doc-resolverSkill
- durable-objectsSkill
- eu-ai-act-complianceSkill
- git-github-workflowSkill
- goap-agentSkill
- implementerSkill
- intent-classifierSkill
- iterative-refinementSkill
- jules-delegatorSkill
- learnSkill
- lifecycle-managementSkill
- local-context-sanitizationSkill
- memory-contextSkill
- migration-refactoringSkill
- nested-build-isolationSkill
- privacy-firstSkill
- progressive-deliverySkill
- pwa-offline-syncSkill
- reader-ui-uxSkill
- readme-best-practicesSkill
- secrets-managementSkill
- secure-invite-and-accessSkill
- security-code-auditorSkill
- shell-script-qualitySkill
- skill-creatorSkill
- skill-evaluatorSkill
- static-analysisSkill
- testing-strategySkill
- test-runnerSkill
- triz-solverSkill
- turso-dbSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
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 38
Style compliance: - Check against project style guide
- Distinctive: line 40
Test coverage: - Verify tests accompany changes
- Distinctive: line 41
Documentation: - Check for necessary doc updates
- Distinctive: line 108
When reporting issues, use this structure:
- Very specific: line 161
Integration with review workflow: When reviewing a PR, run local analysis first (codacy-analysis analyze --pr) for immediate results, then …
“Common” is measured: kept by at least 6 in 10 of the 3 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 Assistant
Automated code review with intelligent analysis of changes, quality checks, and actionable feedback generation.
When to Use
- Reviewing pull requests - Analyze diffs and provide feedback
- Change summarization - Generate PR descriptions from code changes
- Quality checks - Style guide compliance, best practices
- Security review - Detect potential security issues in changes
- Code smell detection - Identify bloaters, dispensables, and couplers
- Refactoring guidance - Suggest targeted improvements
- Review automation - Auto-approve simple changes, flag complex ones
- Learning tool - Explain changes for knowledge sharing
Core Workflow
Phase 1: Change Analysis
- Identify modified files - Categorize by type and risk level
- Calculate metrics - Lines changed, complexity delta, test coverage
- Detect patterns - New features, bug fixes, refactoring, dependencies
- Assess risk - Critical paths, public APIs, security-sensitive areas
Phase 2: Quality Assessment
- Style compliance - Check against project style guide
- Best practices - Design patterns, code organization
- Test coverage - Verify tests accompany changes
- Documentation - Check for necessary doc updates
- Security scan - Identify potential vulnerabilities
Phase 3: Feedback Generation
- Summarize changes - High-level description of what changed
- Identify issues - Bugs, anti-patterns, performance concerns
- Suggest improvements - Refactoring opportunities, optimizations
- Highlight positives - Good practices to reinforce
- Generate review comments - Specific, actionable feedback
Code Smells Detection
Bloaters
- Long Method (>30 lines of logic)
- Large Class (>300 lines)
- Long Parameter List (>4 params)
Object-Orientation Abusers
- Switch Statements (replace with polymorphism)
- Temporary Field
- Refused Bequest
Dispensables
- Duplicate Code
- Lazy Class
- Dead Code
- Speculative Generality
Couplers
- Feature Envy
- Inappropriate Intimacy
- Message Chains (obj.getX().getY())
Core Quality Principles
- DRY — Extract repeated logic into shared functions or constants
- Single Responsibility — Each function/class should have one clear purpose
- No Magic Numbers — Replace bare literals with named constants
See static-analysis for linter tool registry and per-language commands.
File Risk Assessment
| Risk Level | Patterns | Examples |
| Critical | Auth, security, payment | **/auth/**, **/security/**, **/payment/** |
| High | API, models, database | **/api/**, **/models/**, **/database/** |
| Medium | Services, utils | **/services/**, **/helpers/** |
| Low | Tests, docs | **/tests/**, **/*.md |
Change Metrics
| Metric | Threshold | Action |
| Files Changed | > 20 | Extra review needed |
| Lines Changed | > 500 | Consider splitting PR |
| Complexity Delta | +10 | Needs scrutiny |
| Test Coverage | < 80% | Flag for tests |
| TODO/FIXME | > 3 | Needs triage |
Review Feedback Format
When reporting issues, use this structure:
- Issue: clear description of the problem
- Suggestion: specific actionable fix
- Why: reasoning behind the suggestion
For positive observations, highlight the practice and its benefit.
GitHub Integration
See references/github-integration.md for API usage, auto-approval criteria, and webhook setup.
Codacy PR Review Integration
Enhance reviews with Codacy quality data. Run these alongside the standard review workflow.
Fetch PR Quality Data
# PR summary (status, issues, coverage, changed files)
codacy pull-request gh my-org my-repo <prNumber>
# Annotated git diff with inline coverage and issues
codacy pull-request gh my-org my-repo <prNumber> --diff
# Local analysis of PR changes (instant, no push needed)
codacy-analysis analyze --pr --output-format jsonQuality Gate Check
# Check if PR passes quality gate
codacy pull-request gh my-org my-repo <prNumber> --output json | jq '.upToStandards'Coverage Review
# Get coverage delta for the PR
codacy pull-request gh my-org my-repo <prNumber> --output json | jq '.coverage'Issue Triage
# List new issues introduced by the PR
codacy pull-request gh my-org my-repo <prNumber> --output json | jq '.issues'
# Ignore a false positive
codacy pull-request gh my-org my-repo <prNumber> --ignore-issue <issueId> --ignore-reason FalsePositiveIntegration with review workflow: When reviewing a PR, run local analysis first (codacy-analysis analyze --pr) for immediate results, then fetch cloud data for coverage and quality gate status. Combine both into the review summary.
Review Summary Template
## Code Review Summary
### 📊 Change Overview
- **Files Changed**: {file_count}
- **Lines Modified**: +{additions}/-{deletions}
- **Risk Level**: {risk_level}
- **Estimated Review Time**: {review_time} minutes
### ⚠️ Issues Found
{issues_table}
### ✅ Positive Observations
{positive_observations}
### 🏁 Review Decision
**{decision}** - {decision_reason}Review Checklist
- No magic numbers (use named constants)
- Functions/methods under 50 lines
- DRY principle followed
- All new code has corresponding tests
- No hardcoded secrets or credentials
- Security-sensitive code properly reviewed
- Documentation updated for API changes
- No debugging code left in (console.log, print)
Rationalizations
| Rationalization | Reality |
| "The PR is too large to review properly" | Large PRs hide defects; split them or request a breakdown before approving. |
| "Auto-approve is good enough for small changes" | Small changes in critical paths (auth, payments) still need human scrutiny. |
| "Review comments are just noise" | Actionable feedback prevents repeated mistakes and builds team knowledge. |
| "All checks passed, so the fix is complete" | Green CI certifies the assertions that exist, not the ones nobody wrote. A security fix can pass every check and still miss a sibling copy. |
Red Flags
- Approving PRs without checking test coverage
- Ignoring security-pattern findings in review comments
- Auto-approving changes in critical-path files without inspection
- Accepting a validator/normalizer fix without grepping for other copies of the same function
- Test cases added for only one entry point when the helper exists behind sync and async paths
- Reading the check rollup as the whole CI result — failed workflow runs can sit outside it
References
references/github-integration.md- GitHub API integrationreferences/security-patterns.md- Security review patternsreferences/style-guides.md- Common style guide configurations
See Also
static-analysis— Linter triage and fix workflowssecurity-code-auditor— Security audit workflowscodacy— Local Codacy CLI analysis
Voice & Context
- Default:
professional+blog - Reference:
voice-profilesskill for definitions and auto-detection.
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.

