--- name: code-style-analyzer description: Analyzes code for style and formatting issues including inconsistent formatting, naming conventions, code organization, comment quality, unused code, and magic numbers. Returns structured style issue reports with suggestions for improvement. --- # Code Style Analyzer Skill ## Instructions 1. Analyze code for style and formatting issues 2. Check for inconsistent formatting (indentation, spacing, brackets) 3. Verify naming conventions are followed 4. Check code organization and structure 5. Review comment quality and presence 6. Identify unused code (variables, functions, imports) 7. Look for magic numbers and strings 8. Return structured style reports with: - File path and line numbers - Style issue type - Current code - Suggested improvement - Reason - Priority (usually Should-Fix or Nice-to-Have) ## Examples **Input:** Inconsistent indentation **Output:** ```markdown ### STYLE-001 - **File**: `index.html` - **Lines**: 15-20 - **Priority**: Should-Fix - **Issue**: Inconsistent indentation (mixing tabs and spaces) - **Current Code**: ```html
Text
More textText
More text