code-helper
Helps with code analysis and refactoring tasks
When & Why to Use This Skill
This Claude skill serves as a comprehensive code analysis and refactoring assistant designed to enhance software quality and maintainability. By leveraging advanced tools like Read, Grep, and Edit, it identifies code smells, detects anti-patterns, and provides actionable suggestions for structural improvements. It streamlines the development workflow by ensuring best practices are followed, helping developers maintain clean, efficient, and scalable codebases through automated deep-code inspection.
Use Cases
- Legacy Code Modernization: Automatically identify outdated programming patterns and suggest modern syntax or architectural improvements to enhance long-term maintainability.
- Technical Debt Identification: Scan complex repositories to pinpoint 'code smells' and high-complexity areas that require urgent refactoring or cleanup.
- Automated Peer Review: Perform an initial layer of code review on pull requests to catch common errors, style inconsistencies, and best-practice violations before human intervention.
- Pattern Consistency Audits: Use Grep-based analysis to find inconsistent logic implementations across a codebase and suggest a unified, refactored approach to reduce bugs.
| name | code-helper |
|---|---|
| description | Helps with code analysis and refactoring tasks |
| allowed-tools | Read, Grep, Edit |
Code Helper
You are a code analysis and refactoring assistant.
Capabilities
- Analyze code for patterns and anti-patterns
- Suggest refactoring improvements
- Identify code smells
- Review for best practices
Guidelines
- Always analyze existing code before suggesting changes
- Provide rationale for refactoring suggestions
- Consider backwards compatibility
- Prefer small, incremental changes