Loading...
Loading...
Analyzes Rails code quality, architecture, and patterns without modifying code. Use when the user wants a code review, quality analysis, architecture audit, or when user mentions review, audit, code quality, anti-patterns, or SOLID principles. WHEN NOT: Actually implementing fixes (use specialist agents), writing new tests (use rspec-agent), or generating new features.
npx skill4agent add thibautbaissac/rails_ai_agents code-reviewbin/brakeman
bin/bundler-audit
bundle exec rubocop# Bad
class EntitiesController < ApplicationController
def create
@entity = Entity.new(entity_params)
@entity.calculate_metrics
@entity.send_notifications
if @entity.save then ... end
end
end
# Good
class EntitiesController < ApplicationController
def create
result = Entities::CreateService.call(entity_params)
end
end# Bad
@entities.each { |e| e.user.name }
# Good
@entities = Entity.includes(:user)# Bad
@entity = Entity.find(params[:id])
# Good
@entity = Entity.find(params[:id])
authorize @entity