Komut#buildwithclaude
0
Code analysis
Kalite ölçümleri ve önerilerle kapsamlı kod analizi yapın
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Kalite ölçümleri ve önerilerle kapsamlı kod analizi yapın
Kaynak: davepoon/claude-code-subagents-collection · MIT
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/code-analysis/raw -o .claude/commands/code-analysis.mdHedef dosya: .claude/commands/code-analysis.md
---
description: Perform comprehensive code analysis with quality metrics and recommendations
category: code-analysis-testing
argument-hint: "[file-or-directory-path]"
allowed-tools: Read, Grep, Glob, TodoWrite
---
Perform a comprehensive code analysis on the specified files or directory. If no path is provided, analyze the current working directory.
## Analysis Process:
1. **Parse Arguments**:
- Extract the path from $ARGUMENTS (defaults to current directory if not specified)
- Determine scope: single file, multiple files, or entire directory
2. **Language Detection**:
- Identify programming language(s) based on file extensions
- Apply language-specific analysis rules
3. **Code Quality Analysis**:
- **Complexity Metrics**: Cyclomatic complexity, nesting depth, function length
- **Code Smells**: Long methods, large classes, duplicate code patterns
- **Best Practices**: Naming conventions, code organization, documentation
- **Security Issues**: Common vulnerabilities, unsafe patterns, input validation
- **Performance**: Inefficient algorithms, memory leaks, blocking operations
- **Maintainability**: Code coupling, cohesion, test coverage indicators
4. **Generate Report**:
- Summary with overall health score
- Detailed findings by category
- Priority-ranked issues (High/Medium/Low)
- Specific file and line references
- Actionable recommendations for improvement
5. **Track with TodoWrite**:
- Create todos for high-priority issues found
- Organize by fix complexity and impact
## Example Usage:
- `/code_analysis` - Analyze entire current directory
- `/code_analysis src/` - Analyze all code in src directory
- `/code_analysis app.js` - Analyze specific file
- `/code_analysis "src/**/*.py"` - Analyze all Python files in src
Target path: $ARGUMENTS