rails-refactorer
Installation
SKILL.md
Rails Refactorer
Refactoring Approach
1. Analyze Before Changing
Before any refactoring:
- Read the existing code thoroughly
- Identify existing test coverage (
spec/ortest/) - Understand the code's purpose and context
- Check for existing patterns in the codebase
2. Apply Rails Conventions
Controllers:
- Keep controllers thin (orchestration only)
- Use before_action for common setup
- Limit to 7 RESTful actions; create new controllers for custom actions
- Use strong parameters