/review
Comprehensive code review with security, performance, and configuration safety analysis using specialized agents
$ npx -y skills add alirezarezvani/claude-code-tresor --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/review
Context preview
What this command does when you run it.
Comprehensive code review with security, performance, and configuration safety analysis using specialized agents
Command definition
review.mdallowed-tools: Task, Bash(git status:*), Bash(git diff:*), Bash(git log:*), Read, Grep, Glob
argument-hint: [--scope staged|unstaged|pr|commit] [--checks security,performance,style] [--format detailed|json] [--severity critical|high|medium] [--output filename]
description: Comprehensive code review with security, performance, and configuration safety analysis using specialized agents
model: inherit
Comprehensive Code Review
You are coordinating a comprehensive code review using specialized agents with explicit focus on configuration safety and production impact.
Integration with Skills
This command builds on automatic skill detections:
**Before This Command Runs:**
- code-reviewer skill has flagged code quality issues in real-time
- security-auditor, secret-scanner, dependency-auditor skills have detected security concerns
- test-generator skill has identified untested code
**This Command Coordinates:**
- Aggregates all skill findings into one report
- Invokes sub-agents for deep analysis beyond skill capabilities
- Prioritizes issues by severity (CRITICAL → LOW)
- Provides comprehensive recommendations
**Workflow:** Skills detect → This command aggregates + invokes experts → Comprehensive report
Review Process
1. **Context Analysis**: First understand what code is being reviewed 2. **Multi-Agent Coordination**: Use Task tool to delegate to specialized agents:
- `@config-safety-reviewer` for configuration safety and production reliability
- `@security-auditor` for security vulnerabilities
- `@systems-architect` for architectural concerns
- `@performance-tuner` for performance optimization
3. **Configuration Safety Priority**: Pay special attention to:
- Database connection strings and timeouts
- API endpoints and rate limits
- Cache configurations and TTL values
- Feature flags and environment variables
- Deployment scripts and infrastructure changes
Arguments Processing
- `--scope`: Determines what to review (staged, unstaged, pr, commit:hash, file:path)
- `--checks`: Focus areas (security, performance, style, maintainability, configuration)
- `--format`: Output format (detailed, json, markdown)
- `--severity`: Filter by severity level (critical, high, medium, low)
- `--output`: Save report to specified file
Review Focus Areas
Configuration Changes (CRITICAL)
- Verify environment-specific settings won't cause outages
- Check for hardcoded values that should be configurable
- Validate timeout and retry configurations
- Review database migration safety
Security Analysis
- Authentication and authorization checks
- Input validation and sanitization
- Secret management and exposure prevention
- Dependency vulnerability assessment
Performance Impact
- Query optimization and N+1 problems
- Caching strategy effectiveness
- Resource utilization patterns
- Scalability considerations
Code Quality
- Maintainability and readability
- Test coverage and quality
- Documentation completeness
- Error handling robustness
Output Format
Provide a consolidated report with: 1. **Executive Summary**: Key findings and recommendations 2. **Critical Issues**: Must-fix items (especially configuration risks) 3. **Security Findings**: Vulnerability assessment 4. **Performance Recommendations**: Optimization opportunities 5. **Code Quality Observations**: Style and maintainability notes 6. **Action Plan**: Prioritized steps for remediation
Focus on actionable feedback with specific examples and fixes.
Read more
allowed-tools: Task, Bash(git status:*), Bash(git diff:*), Bash(git log:*), Read, Grep, Glob argument-hint: [--scope staged|unstaged|pr|commit] [--checks security,performance,style] [--format detailed|json] [--severity critical|high|medium] [--output filename] description: Comprehensive code review with security, performance, and configuration safety analysis using specialized agents model: inherit
Comprehensive Code Review
You are coordinating a comprehensive code review using specialized agents with explicit focus on configuration safety and production impact.
Integration with Skills
This command builds on automatic skill detections:
**Before This Command Runs:**
- code-reviewer skill has flagged code quality issues in real-time
- security-auditor, secret-scanner, dependency-auditor skills have detected security concerns
- test-generator skill has identified untested code
**This Command Coordinates:**
- Aggregates all skill findings into one report
- Invokes sub-agents for deep analysis beyond skill capabilities
- Prioritizes issues by severity (CRITICAL → LOW)
- Provides comprehensive recommendations
**Workflow:** Skills detect → This command aggregates + invokes experts → Comprehensive report
Review Process
1. **Context Analysis**: First understand what code is being reviewed 2. **Multi-Agent Coordination**: Use Task tool to delegate to specialized agents:
- `@config-safety-reviewer` for configuration safety and production reliability
- `@security-auditor` for security vulnerabilities
- `@systems-architect` for architectural concerns
- `@performance-tuner` for performance optimization
3. **Configuration Safety Priority**: Pay special attention to:
- Database connection strings and timeouts
- API endpoints and rate limits
- Cache configurations and TTL values
- Feature flags and environment variables
- Deployment scripts and infrastructure changes
Arguments Processing
- `--scope`: Determines what to review (staged, unstaged, pr, commit:hash, file:path)
- `--checks`: Focus areas (security, performance, style, maintainability, configuration)
- `--format`: Output format (detailed, json, markdown)
- `--severity`: Filter by severity level (critical, high, medium, low)
- `--output`: Save report to specified file
Review Focus Areas
Configuration Changes (CRITICAL)
- Verify environment-specific settings won't cause outages
- Check for hardcoded values that should be configurable
- Validate timeout and retry configurations
- Review database migration safety
Security Analysis
- Authentication and authorization checks
- Input validation and sanitization
- Secret management and exposure prevention
- Dependency vulnerability assessment
Performance Impact
- Query optimization and N+1 problems
- Caching strategy effectiveness
- Resource utilization patterns
- Scalability considerations
Code Quality
- Maintainability and readability
- Test coverage and quality
- Documentation completeness
- Error handling robustness
Output Format
Provide a consolidated report with: 1. **Executive Summary**: Key findings and recommendations 2. **Critical Issues**: Must-fix items (especially configuration risks) 3. **Security Findings**: Vulnerability assessment 4. **Performance Recommendations**: Optimization opportunities 5. **Code Quality Observations**: Style and maintainability notes 6. **Action Plan**: Prioritized steps for remediation
Focus on actionable feedback with specific examples and fixes.
A world-class collection of Claude Code utilities: autonomous skills, expert agents, slash commands, and prompts that supercharge your development workflow.
Repo: alirezarezvani/claude-code-tresor
Other commands on claude-code-tresor.
- /scaffold
Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling
Open command - /docs-gen
Generate comprehensive documentation from code including API docs, user guides, and interactive documentation with deployment automation
Open command - /deploy-validate
Pre-deployment validation with tests, security checks, config safety, and environment readiness verification
Open command - /health-check
Comprehensive system health verification for production monitoring and incident detection
Open command - /incident-response
Production incident coordination with emergency triage, RCA, and postmortem generation
Open command - /benchmark
Load testing and performance benchmarking with intelligent scenario generation
Open command

