
code-review
Comprehensive code review command that analyzes recent changes for quality and risk.
- version
- 1.0.0
- GitHub stars
- 79
What it does
- Adds the
/code-reviewcommand, which performs a full review of recently changed code - Covers the recent diff rather than the whole repository, keeping review scope tied to current work
- Designed for developers who want a quick, structured review before committing or opening a pull request
Perform a comprehensive code review of recent changes
Add marketplace
/plugin marketplace add devsforge/marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install code-review@devsforge-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceCode Review Command
Conduct thorough code review to identify issues, suggest improvements, and ensure code quality standards.
Usage
/code-review [file_or_directory]
Examples:
/code-review # Review recent git changes
/code-review src/api/users.js # Review specific file
/code-review src/components/ # Review directory
/code-review --pr 123 # Review pull request
What This Command Does
Performs comprehensive code review across multiple dimensions:
- Code Quality: Structure, readability, maintainability
- Security: Vulnerabilities, authentication, data protection
- Performance: Bottlenecks, optimization opportunities
- Best Practices: Standards compliance, design patterns
- Testing: Coverage, test quality, edge cases
Review Process
Step 1: Identify Changes
First, determine what to review:
# Check recent changes
git status
git diff HEAD
# For PR reviews
gh pr diff <pr_number>
Step 2: Multi-Dimensional Analysis
Code Quality Check:
- Cyclomatic complexity (functions should be <10)
- Code duplication (identify DRY violations)
- Naming conventions (clear, descriptive names)
- Function length (keep under 50 lines)
- Comment quality (explain why, not what)
Security Analysis:
- Input validation (SQL injection, XSS prevention)
- Authentication/authorization checks
- Secrets management (no hardcoded credentials)
- Dependency vulnerabilities
- Error handling (no sensitive data leaks)
Performance Review:
- Algorithm efficiency (time/space complexity)
- Database query optimization (N+1 problems)
- Resource management (memory leaks, connections)
- Caching opportunities
- Async operations usage
Architecture Assessment:
- SOLID principles adherence
- Design pattern usage
- Separation of concerns
- Dependency management
- API design quality
Testing Evaluation:
- Test coverage (aim for >80%)
- Test quality (unit, integration, edge cases)
- Mocking strategy
- Test maintainability
- Error scenario coverage
Step 3: Generate Feedback
Provide actionable feedback in this format:
## Code Review Results
### Critical Issues (Must Fix)
- [SECURITY] SQL injection vulnerability in user.login() - Line 45
- [BUG] Null pointer exception possible in processOrder() - Line 123
### Important (Should Fix)
- [PERFORMANCE] N+1 query in getUserOrders() - Line 67
- [QUALITY] Function complexity too high (CC: 15) in calculatePrice() - Line 234
### Suggestions (Nice to Have)
- [REFACTOR] Extract method: validateUserInput() from createUser()
- [STYLE] Use consistent naming: camelCase vs snake_case
### Positive Feedback
- Excellent error handling in PaymentService
- Good test coverage for authentication module (92%)
Review Checklist
Code Quality
- Functions are single-purpose and focused
- Variable names are descriptive and clear
- No code duplication (DRY principle)
- Proper error handling throughout
- Consistent code style and formatting
Security
- All inputs are validated and sanitized
- Authentication/authorization implemented correctly
- No hardcoded secrets or credentials
- SQL queries use parameterization
- Sensitive data is encrypted
Performance
- No obvious performance bottlenecks
- Database queries are optimized
- Appropriate data structures used
- Caching implemented where beneficial
- Async operations used for I/O
Testing
- New code has test coverage
- Tests are meaningful and maintainable
- Edge cases are covered
- Tests follow AAA pattern (Arrange, Act, Assert)
- No flaky or unreliable tests
Documentation
- Complex logic is explained
- API changes are documented
- README updated if needed
- Breaking changes are noted
- Examples provided for new features
Common Issues & Fixes
Security Issues
SQL Injection:
// Bad
const query = `SELECT * FROM users WHERE id = ${userId}`;
// Good
const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [userId]);
XSS Prevention:
// Bad
element.innerHTML = userInput;
// Good
element.textContent = userInput;
// Or use sanitization library
element.innerHTML = DOMPurify.sanitize(userInput);
Performance Issues
N+1 Query Problem:
# Bad
users = User.query.all()
for user in users:
orders = user.orders # Executes query for each user
# Good
users = User.query.options(joinedload(User.orders)).all()
Memory Leak:
// Bad - event listener not removed
element.addEventListener('click', handler);
// Good - cleanup
useEffect(() => {
element.addEventListener('click', handler);
return () => element.removeEventListener('click', handler);
}, []);
Code Quality Issues
High Complexity:
# Bad - complexity 12
def process_payment(user, amount, method, promo):
if user.is_premium:
if method == "credit":
if promo:
# ... nested logic
else:
# ... more logic
elif method == "debit":
# ... more nesting
else:
# ... even more logic
# Good - extract methods
def process_payment(user, amount, method, promo):
discount = calculate_discount(user, promo)
final_amount = apply_discount(amount, discount)
return charge_payment(user, final_amount, method)
Review Best Practices
- Be Constructive: Focus on the code, not the person
- Provide Context: Explain why changes are needed
- Suggest Solutions: Don't just point out problems
- Prioritize Issues: Critical > Important > Suggestions
- Acknowledge Good Work: Positive feedback is valuable
- Ask Questions: "Why did you choose this approach?"
- Use Examples: Show better alternatives with code
Automated Checks
Run these tools before manual review:
# Linting
eslint src/
pylint app/
# Security scanning
npm audit
safety check
# Test coverage
jest --coverage
pytest --cov
# Complexity analysis
complexity src/
Review Context
When reviewing, gather this information:
# Recent changes
git log --oneline -5
git diff main...HEAD
# Changed files
git diff --name-only main...HEAD
# Test results
npm test
pytest
# Build status
npm run build
Methodology
This command follows code review best practices:
- Risk-Based Prioritization: Critical issues first
- Constructive Feedback: Solutions, not just problems
- Knowledge Sharing: Explain reasoning
- Consistency: Apply standards uniformly
- Continuous Learning: Capture best practices
From the devsforge/marketplace README
Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.
🚀 DevsForge Marketplace
The Ultimate Plugin Ecosystem for Claude Code
161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins
⚡ What's New in v1.2
✅ Plugin Compliance & QualityAll 161 plugins validated for Claude Code CLI Fixes Applied:
|
🏗️ Super Plugins (Advanced)Multi-component platforms with hooks & MCP servers Features:
|
✨ Why DevsForge Marketplace?
🎨Curated QualityEvery plugin manually reviewed & enterprise-tested |
⚡Production ReadyBattle-tested in real-world scenarios |
🔒Security FirstZero dependencies, fully audited code |
🚀Advanced FeaturesHooks, MCP servers, automation |
💯100% OriginalNo copycat plugins, pure innovation |
🎯 Quick Start
Installation
# 🔥 One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git
# ✅ Verify installation
/plugin marketplace list
# 🎉 Expected: devsforge-marketplace (1.2.0) - 161 plugins available
Using Plugins
# 🔍 Browse available plugins
/plugin
# 📦 Install specific plugin
/plugin install ai-architect@devsforge-marketplace
# 🚀 Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace
# 📋 Manage plugins
/plugin list # List installed
/plugin update ai-architect@devsforge-marketplace # Update plugin
/plugin remove debugger@devsforge-marketplace # Remove plugin
🎨 Featured Categories
🤖 AI & Machine Learning (12 plugins)
- ai-architect - ML optimization & AI system design
- ai-ethics-officer - Ethical AI governance
- vision-specialist - Computer vision & image processing
- data-scientist - Data analysis & BigQuery operations
- data-analyst - Analytics & business intelligence
🔒 Security & Compliance (15 plugins)
- enterprise-security-reviewer - B2B security assessments
- security-scanner - Vulnerability detection & remediation
- authentication-specialist - JWT, OAuth2, security patterns
- cors-security-expert - CORS configuration & best practices
- data-privacy-engineer - GDPR compliance & data protection
- compliance-automation-specialist - Regulatory automation
- legal-compliance-checker - Legal compliance validation
💻 Development & Code Quality (25 plugins)
- code-quality-expert - Code governance & security
- code-migrator - Legacy code modernization
- debugger - Advanced debugging methodologies
- web-dev - React, Next.js, NestJS, TypeScript
- python-expert - Advanced Python development
- database-expert ⚡ NEW - SQL optimization & query tuning
- docker-specialist ⚡ NEW - Container optimization
- git-workflow-expert ⚡ NEW - Advanced Git strategies
- rest-api-designer ⚡ NEW - REST API best practices
- graphql-specialist ⚡ NEW - GraphQL schema design
🔧 DevOps & Infrastructure (18 plugins)
- devops-automator - CI/CD & infrastructure automation
- deployment-engineer - Production deployment strategies
- cloud-architect - Multi-cloud architecture
- monitoring-observability-specialist - System monitoring
- sre-reliability-engineer - Site reliability engineering
- cost-optimizer - Cloud cost optimization
🧪 Testing & QA (10 plugins)
- testing-orchestrator - Test automation frameworks
- unit-test-generator - Automated test generation
- api-quality-assurance - API testing & validation
- performance-benchmarker - Performance testing
- test-writer-fixer - Test creation & maintenance
📝 Documentation & Knowledge (8 plugins)
- codebase-documenter - Comprehensive code documentation
- technical-writer-pro - Technical documentation
- api-docs-generator - OpenAPI/Swagger docs
- doc-generator - Auto-documentation generation
🎨 Design & UX (8 plugins)
- ui-designer - Beautiful, functional interfaces
- ui-ux-engineer - React/Vue/Angular components
- accessibility-architect - WCAG 2.1 AA compliance
- mobile-ux-optimizer - Mobile-first experiences
- ux-researcher - User research & journey maps
📊 Data & Analytics (7 plugins)
- data-analyst - Analytics methodologies
- data-scientist - SQL queries & data insights
- database-performance-optimizer - Database optimization
- sql-query-optimizer - Advanced SQL optimization
🏢 Enterprise & Business (12 plugins)
- software-architect - Scalable architecture design
- system-architect - Backend design & integration
- b2b-project-shipper - B2B project delivery
- customer-success-manager - Customer success ops
- technical-sales-engineer - Technical sales support
- pricing-packaging-specialist - Pricing strategies
🚀 Productivity & Automation (15 plugins)
- workflow-optimizer - Workflow optimization
- project-shipper - Launch & release management
- sprint-prioritizer - Sprint planning & prioritization
- experiment-tracker - Experiment tracking & analysis
- finance-tracker - Budget & cost management
⚡ Super Plugins - Advanced (3 plugins)
🏢 enterprise-workspace
Complete workspace management platform with hooks & MCP
Components:
- 3 Commands:
workspace-init,workspace-sync,workspace-audit - 2 Agents: workspace-architect, compliance-auditor
- 1 Hook: PostToolUse validation
- 1 MCP Server: workspace-state
- 1 Script: validate-workspace.sh
Features:
- ✅ Architecture governance
- ✅ Compliance tracking
- ✅ Automated validation
- ✅ State management
🤖 ai-studio-orchestrator
Advanced multi-agent coordination platform
Components:
- 3 Commands:
orchestrate-task,monitor-performance,optimize-workflow - 2 Agents: task-coordinator, performance-analyzer
- 1 Hook: PreToolUse logging
- 1 MCP Server: orchestrator
- 1 Script: task-logger.sh
Features:
- ✅ Task distribution
- ✅ Load balancing
- ✅ Performance analytics
- ✅ Real-time monitoring
🔧 devops-platform
Complete DevOps automation platform
Components:
- 3 Commands:
setup-pipeline,deploy-application,manage-infrastructure - 2 Agents: cicd-architect, infrastructure-engineer
- 1 Hook: PostToolUse config validation
- 1 MCP Server: devops-state
- 1 Script: validate-devops-config.sh
Features:
- ✅ CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
- ✅ Zero-downtime deployments
- ✅ Infrastructure as Code (Terraform, CloudFormation)
- ✅ Security scanning
📊 Marketplace Statistics
| Category | Count | Description |
|---|---|---|
| 🤖 Agents | 93 | AI-powered development assistants |
| ⚡ Commands | 65 | Instant productivity tools |
| 🚀 Super Plugins | 3 | Advanced multi-component platforms |
| Total | 161 | Production-ready plugins |
Quality Metrics
- ✅ Average Documentation: 250+ lines per plugin
- ✅ Code Examples: Real-world templates included
- ✅ Testing: Enterprise-grade validation
- ✅ Security: Zero external dependencies
- ✅ Maintenance: Regular updates & improvements
🏗️ Architecture
devsforge-marketplace/
├── .claude-plugin/
│ └── marketplace.json # 📋 Marketplace registry (161 plugins)
│
├── plugins/
│ ├── agents/ # 🤖 93 AI Agent Plugins
│ │ ├── ai-architect/
│ │ │ ├── .claude-plugin/
│ │ │ │ └── plugin.json
│ │ │ └── agents/
│ │ │ └── ai-engineer.md
│ │ ├── database-expert/ ⚡ NEW in v1.1
│ │ ├── docker-specialist/ ⚡ NEW in v1.1
│ │ ├── git-workflow-expert/ ⚡ NEW in v1.1
│ │ └── ... (90 more agents)
│ │
│ ├── commands/ # ⚡ 65 Command Plugins
│ │ ├── api-designer/
│ │ │ ├── .claude-plugin/
│ │ │ │ └── plugin.json
│ │ │ └── commands/
│ │ │ └── api-designer.md
│ │ ├── env-validator/ ⚡ NEW in v1.1
│ │ ├── import-organizer/ ⚡ NEW in v1.1
│ │ └── ... (62 more commands)
│ │
│ └── super/ # 🚀 3 Super Plugins
│ ├── enterprise-workspace/
│ │ ├── .claude-plugin/
│ │ │ └── plugin.json # With hooks & MCP
│ │ ├── commands/ # Multiple commands
│ │ ├── agents/ # Multiple agents
│ │ ├── scripts/ # Automation scripts
│ │ └── servers/ # MCP servers
│ ├── ai-studio-orchestrator/
│ └── devops-platform/
│
└── README.md # 📖 This file
🎓 Documentation
Plugin Installation Examples
# 🤖 AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace
# 💻 Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace
# 🔒 Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace
# 🔧 DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace
# ⚡ Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace
# 🚀 Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace
Marketplace Management
# 📋 List installed marketplaces
/plugin marketplace list
# 🔄 Update marketplace
/plugin marketplace update devsforge-marketplace
# 🗑️ Remove marketplace
/plugin marketplace remove devsforge-marketplace
# 🔍 Search plugins
/plugin search "security"
/plugin search "api design"
# 📊 Show plugin details
/plugin info ai-architect@devsforge-marketplace
🛠️ Troubleshooting
❌ Marketplace Not Loading
Symptoms: Marketplace doesn't appear in /plugin marketplace list
Solutions:
- ✅ Verify
.claude-plugin/marketplace.jsonexists in repository root - ✅ Check JSON syntax:
claude plugin validate . - ✅ Ensure Git repository is accessible and cloned correctly
- ✅ Restart Claude Code CLI after adding marketplace
❌ Plugin Installation Failures
Symptoms: Error message "Plugin not found" or installation timeout
Solutions:
- ✅ Verify plugin source paths are correct:
./plugins/[type]/[name] - ✅ Ensure all required files exist:
.claude-plugin/plugin.json,commands/*.mdoragents/*.md - ✅ Check network connectivity for Git-based plugin sources
- ✅ Try explicit version:
/plugin install [name]@devsforge-marketplace@1.0.0
❌ Super Plugin Issues
Symptoms: Hooks not triggering or MCP server connection errors
Solutions:
- ✅ Verify
${CLAUDE_PLUGIN_ROOT}environment variable resolves correctly - ✅ Check script permissions:
chmod +xon Linux/Mac - ✅ Ensure Node.js is installed for MCP server JavaScript files
- ✅ Review Claude Code logs for hook execution errors
❌ Performance Issues
Symptoms: Slow marketplace loading or plugin installation
Solutions:
- ✅ Check internet connection speed (GitHub clone performance)
- ✅ Verify available disk space (minimum 50MB required)
- ✅ Close unnecessary applications to free system resources
- ✅ Use local path installation for faster access after initial clone
🤝 Contributing
We welcome contributions! Here's how you can help:
🎯 Contributing New Plugins
- 🍴 Fork the repository
- 📁 Create plugin structure in appropriate directory (
agents/,commands/, orsuper/) - 📝 Follow
plugin.jsonschema requirements - 📖 Add comprehensive documentation (200-700+ lines recommended)
- 🧪 Test thoroughly with Claude Code CLI
- 🚀 Submit pull request with detailed description
📋 Plugin Quality Standards
- ✅ Minimum 200 lines of documentation
- ✅ Real-world code examples and templates
- ✅ Phase-based methodologies
- ✅ Best practices and anti-patterns
- ✅ Quality metrics and KPIs
- ✅ Business impact analysis
💡 Contributing Ideas
- 💬 Open a GitHub Discussion with plugin proposal
- 📝 Describe use case and business value
- 💻 Provide examples of desired functionality
- 🗳️ Community votes on most valuable additions
🔒 Security & Trust
⚠️ Important Disclaimer
DevsForge Marketplace is an independent, community-driven project
- ❌ NOT affiliated with Anthropic or Claude
- ❌ NOT officially endorsed or connected to Anthropic
- ✅ Community maintained by open-source contributors
- ⚠️ Use at your own risk - review plugin code before production use
Security Measures
|
Our Practices:
|
Your Responsibilities:
|
📜 License
MIT License - See LICENSE for details
Copyright (c) 2025 DevsForge Community
🙏 Acknowledgments
Built with ❤️ by the DevsForge Community
Special thanks to:
- 🎨 Anthropic for Claude Code CLI platform
- 💻 All plugin contributors and testers
- 🏢 Enterprise users providing valuable feedback
- 🌟 Open source community for inspiration
🚀 Ready to supercharge your Claude Code experience?
Get Started Now • Browse Plugins • Contribute
DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code
Details
- Marketplace
- devsforge/marketplace
- Source
- plugins/commands/code-review
- Author
- DevsForge Community
- Category
- Commands
- Keywords
- devsforge, command, code, review
- Listed since
- Apr 7, 2026
More from devsforge/marketplace
All 161- code-review-assistantv1.0.0
- codebase-analyzerv1.0.0
- codebase-documenterv1.0.0
- compliance-automation-specialistv1.0.0
- console-cleanerv1.0.0
- content-creatorv1.0.0
- cors-security-expertv1.0.0
- cost-optimizerv1.0.0
- create-worktreesv1.0.0
- customer-success-managerv1.0.0
- data-analystv1.0.0
- data-privacy-engineerv1.0.0
- data-scientistv1.0.0
- database-expertv1.0.0
- database-performance-optimizerv1.0.0
- debug-detectivev1.0.0
- debug-sessionv1.0.0
- debuggerv1.0.0
- decision-facilitatorv1.0.0
- dependency-managerv1.0.0
- deployment-engineerv1.0.0
- desktop-app-devv1.0.0
- desktop-integratorv1.0.0
- devops-automatorv1.0.0
Similar to code-review
More Code Review & Quality
pr-reviewerdevsforge/marketplace79 starsReviews pull request changes to provide feedback, check for issues, and suggest improvements before merging into the main codebase.
fix-prdevsforge/marketplace79 starsFetches and fixes unresolved PR comments by automatically retrieving feedback, addressing reviewer concerns, making targeted code improvements, and streamlining
review-looponsails/cc44 starsAutomated code review loop
pr-reviewananddtyagi/cc-marketplace689 starsReviews pull request changes to provide feedback, check for issues, and suggest improvements before merging into the main codebase.
full-codebase-reviewNTCoding/claude-skillz365 starsPeriodic full codebase review using automatic-code-review rules. Reviews entire codebase, not just modified files.
parallel-code-reviewdgalarza/claude-code-workflows72 starsRun multiple code review agents in parallel for comprehensive feedback