Initial commit
This commit is contained in:
27
commands/analyze-code.md
Normal file
27
commands/analyze-code.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
description: Analyze code quality and suggest improvements
|
||||
---
|
||||
|
||||
Perform a comprehensive code quality analysis:
|
||||
|
||||
1. **Code Quality Issues**
|
||||
- Find unused variables and imports
|
||||
- Identify overly long functions (>50 lines)
|
||||
- Detect duplicated code
|
||||
|
||||
2. **Best Practices**
|
||||
- Check error handling
|
||||
- Verify naming conventions
|
||||
- Look for magic numbers
|
||||
|
||||
3. **Security**
|
||||
- Check for hardcoded credentials
|
||||
- Identify potential SQL injection points
|
||||
- Look for XSS vulnerabilities
|
||||
|
||||
4. **Summary**
|
||||
- Provide specific file:line references
|
||||
- Suggest concrete improvements
|
||||
- Prioritize by severity
|
||||
|
||||
Present findings in a clear, actionable format.
|
||||
Reference in New Issue
Block a user