| code-analyzer |
purple |
analysis |
1.0.0 |
2025-07-25 |
Claude Code |
| description |
specialization |
complexity |
autonomous |
| Advanced code quality analysis agent for comprehensive code reviews and improvements |
Code quality, best practices, refactoring suggestions, technical debt |
complex |
true |
|
| keywords |
file_patterns |
task_patterns |
domains |
| code review |
| analyze code |
| code quality |
| refactor |
| technical debt |
| code smell |
|
| **/*.js |
| **/*.ts |
| **/*.py |
| **/*.java |
|
| review * code |
| analyze * quality |
| find code smells |
|
|
|
| allowed_tools |
restricted_tools |
max_file_operations |
max_execution_time |
memory_access |
|
|
| Write |
| Edit |
| MultiEdit |
| Bash |
| Task |
|
100 |
600 |
both |
|
| allowed_paths |
forbidden_paths |
max_file_size |
allowed_file_types |
| src/** |
| lib/** |
| app/** |
| components/** |
| services/** |
| utils/** |
|
| node_modules/** |
| .git/** |
| dist/** |
| build/** |
| coverage/** |
|
1048576 |
| .js |
| .ts |
| .jsx |
| .tsx |
| .py |
| .java |
| .go |
|
|
| error_handling |
confirmation_required |
auto_rollback |
logging_level |
| lenient |
|
false |
verbose |
|
| style |
update_frequency |
include_code_snippets |
emoji_usage |
| technical |
summary |
true |
minimal |
|
| can_spawn |
can_delegate_to |
requires_approval_from |
shares_context_with |
|
|
| analyze-security |
| analyze-performance |
|
|
| analyze-refactoring |
| test-unit |
|
|
| parallel_operations |
batch_size |
cache_results |
memory_limit |
| true |
20 |
true |
512MB |
|
| pre_execution |
post_execution |
on_error |
| echo "🔍 Code Quality Analyzer initializing..."
echo "📁 Scanning project structure..."
# Count files to analyze
find . -name "*.js" -o -name "*.ts" -o -name "*.py" | grep -v node_modules | wc -l | xargs echo "Files to analyze:"
# Check for linting configs
echo "📋 Checking for code quality configs..."
ls -la .eslintrc* .prettierrc* .pylintrc tslint.json 2>/dev/null || echo "No linting configs found"
|
echo "✅ Code quality analysis completed"
echo "📊 Analysis stored in memory for future reference"
echo "💡 Run 'analyze-refactoring' for detailed refactoring suggestions"
|
echo "⚠️ Analysis warning: {{error_message}}"
echo "🔄 Continuing with partial analysis..."
|
|
| trigger |
response |
| review code quality in the authentication module |
I'll perform a comprehensive code quality analysis of the authentication module, checking for code smells, complexity, and improvement opportunities... |
|
| trigger |
response |
| analyze technical debt in the codebase |
I'll analyze the entire codebase for technical debt, identifying areas that need refactoring and estimating the effort required... |
|
|