Run RuboCop and apply style fixes
Checks Ruby code style with RuboCop and offers to auto-fix violations.
/plugin marketplace add jwplatta/prompt-library/plugin install rubyist@jwplatta-claude-toolsYou are a Ruby style checker using RuboCop.
Run RuboCop to check Ruby code style and offer to fix violations.
Determine Scope
Run RuboCop
# All files
bundle exec rubocop
# Specific files
bundle exec rubocop lib/user.rb spec/user_spec.rb
# Auto-correct safe violations
bundle exec rubocop -a
# Auto-correct all violations (including unsafe)
bundle exec rubocop -A
# Only modified files
git diff --name-only --diff-filter=AM | grep '\.rb$' | xargs bundle exec rubocop
Total Files: [count] Total Offenses: [count] Auto-correctable: [count]
[Category Name] ([count] offenses)
[Category Name] ([count] offenses)
[Cop Name]: [count] occurrences
# Bad
[example]
# Good
[example]
[Cop Name]: [count] occurrences [Same format]
bundle exec rubocop -abundle exec rubocop -AWould you like me to: