review-code
Review code changes for quality, security, and performance. Use when user says "review my changes", "do a code review", "check this for issues", "analyze code quality", "security review", "performance review", "is this PR ready", or needs architecture, security, performance, and style analysis.
What this skill does
# Code Reviewer Comprehensive code review using multi-agent coordination for architecture, security, performance, and style analysis. ## When to Activate - User asks for code review (any context) - User wants changes reviewed before merge - User needs security or performance analysis - User asks "is this ready?" - PR quality check needed - User mentions reviewing changes before commit/PR - User asks about code issues or improvements ## Inputs Parse from request: - **paths**: Files or directories to review (defaults to current git changes) - **--depth**: Review depth (standard|comprehensive) - default: standard - **--focus**: Specific aspects (architecture|security|performance|all) - default: all - **--suggest-fixes**: Generate fix suggestions (default: true) - **--check-tests**: Review test coverage (default: false) - **--baseline**: Compare against baseline branch (default: main) ## Quick Process 1. **Gather Context**: Get diff, changed files, commit messages 2. **Analyze**: Understand intent and scope 3. **Multi-Agent Review**: Architecture, security, performance, style 4. **Generate Fixes**: Actionable improvements 5. **Summarize**: Recommendation with action items ## Review Depth | Depth | Agents | Focus | | ----------------- | ------ | -------------------------------- | | **Standard** | 4 | Quick validation of key concerns | | **Comprehensive** | 8+ | Deep multi-phase analysis | ## Orchestration Strategy ### Phase 1: Code Analysis Preparation 1. **Identify Review Scope**: - If no paths provided, get current git changes - Expand directories to file lists - Filter by file types and patterns 2. **Context Loading**: - Invoke **context-loader** to understand surrounding code - Identify architectural patterns and conventions - Load relevant documentation and standards ### Phase 2: Multi-Agent Review Invoke agents to coordinate parallel analysis: - **Code Quality**: style-enforcer, refactorer, code-explainer - **Architecture & Design**: pattern consistency, design validation - **Security & Performance**: security-analyzer, performance-analyzer - **Testing**: test-writer (coverage gaps) ### Phase 3: Deep Analysis (if --depth comprehensive) For comprehensive review, additional specialized analysis: - **Dependency Analysis**: Check for circular dependencies, validate imports - **Pattern Consistency**: Compare with existing patterns, identify deviations - **Impact Analysis**: Assess breaking changes, affected components ### Phase 4: Result Aggregation Combine insights from all agents: 1. **Issue Prioritization**: - Critical: Security vulnerabilities, breaking changes - High: Performance issues, architectural violations - Medium: Style inconsistencies, missing tests - Low: Minor improvements, documentation 2. **Fix Generation**: - Automated fixes for style issues - Refactoring suggestions with examples - Security patches with explanations ## Review Categories - **Architecture**: Pattern compliance, SOLID, dependencies - **Security**: Vulnerabilities, auth, injection risks - **Performance**: Complexity, queries, caching - **Maintainability**: Complexity, coverage, duplication - **Testing**: Coverage gaps, test quality ## Specialized Review Modes ### Architecture Focus (`--focus architecture`) - Emphasize design patterns and structure - Validate SOLID principles - Check dependency management - Assess modularity and coupling ### Security Focus (`--focus security`) - Deep vulnerability scanning - Input validation checks - Authentication/authorization review - Secrets and credential scanning ### Performance Focus (`--focus performance`) - Algorithm complexity analysis - Memory usage patterns - Database query optimization - Caching opportunities ## Output Format Provides: - **Summary**: Intent, scope, risk assessment, files reviewed, issues by severity - **Findings**: By severity (critical, major, minor) with file, line, explanation - **Architecture Insights**: Patterns, violations, recommendations - **Security Report**: Vulnerabilities, severity, mitigation - **Performance Report**: Bottlenecks, impact, optimization - **Test Coverage**: Current coverage, gaps, suggested tests - **Action Plan**: Must-fix, should-fix, consider lists - **Patches**: Actionable diffs with automated fix commands ## Recommendation Returns: `approve`, `request-changes`, or `comment` ## Examples ```text "Review my code changes" "Check this file for security issues" "Deep review of src/api/ focusing on performance" "Review code quality in the authentication module" "Is this PR ready to merge?" ``` ## Delegation Invokes specialized agents (style-enforcer, security-analyzer, performance-analyzer, code-explainer, refactorer, test-writer) for comprehensive multi-dimensional analysis.
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.