← Back to list

code-style-analyzer
by lexicalninja
A collection of Cursor subagents and Claude skills to help build things together
⭐ 0🍴 0📅 Jan 16, 2026
SKILL.md
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
- Analyze code for style and formatting issues
- Check for inconsistent formatting (indentation, spacing, brackets)
- Verify naming conventions are followed
- Check code organization and structure
- Review comment quality and presence
- Identify unused code (variables, functions, imports)
- Look for magic numbers and strings
- 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:
### STYLE-001
- **File**: `index.html`
- **Lines**: 15-20
- **Priority**: Should-Fix
- **Issue**: Inconsistent indentation (mixing tabs and spaces)
- **Current Code**:
```html
<div>
<p>Text</p>
<span>More text</span>
</div>
- Suggested Fix:
<div> <p>Text</p> <span>More text</span> </div> - Reason: Consistent indentation improves readability and maintainability
## Style Issues to Detect
- **Formatting**: Inconsistent indentation, spacing, bracket placement
- **Naming**: Inconsistent naming conventions (camelCase vs snake_case)
- **Code Organization**: Poor file structure, functions in wrong places
- **Comments**: Missing comments, poor comment quality, outdated comments
- **Unused Code**: Unused variables, functions, imports, dead code
- **Magic Numbers/Strings**: Hardcoded values that should be constants
- **Line Length**: Lines that are too long
- **File Length**: Files that are too long
- **Code Duplication**: Repeated code that could be extracted
- **Import Organization**: Unorganized imports
## Priority Guidelines
- **Must-Fix**: Style issues that cause bugs or significant readability problems
- **Should-Fix**: Style issues that affect readability and maintainability
- **Nice-to-Have**: Cosmetic style improvements
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon