rubocop

Automatically fix RuboCop offenses in Ruby code with Bundler-based tooling.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/onesmartguy/raptor-claude-plugins --skill rubocop-onesmartguy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rubocop
Source: https://github.com/onesmartguy/raptor-claude-plugins/tree/main/plugins/ruby/skills/rubocop
Command: npx skills add https://github.com/onesmartguy/raptor-claude-plugins --skill rubocop-onesmartguy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically fix RuboCop offenses in Ruby code, improving style compliance while keeping changes safe.

Core Features & Use Cases

  • Auto-fix common RuboCop offenses across Ruby files with minimal intervention
  • Insert selective disable comments only when a rule is incorrect or dangerous, with explanations
  • Re-enable rules immediately after changes to preserve code readability and project standards

Quick Start

Run rubocop on a target Ruby file to automatically fix offenses and produce a clean result.

Frequently Asked Questions about rubocop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-fix RuboCop violations in Ruby code automatically?

To auto-fix RuboCop violations, you can run a Bundler-based tool that executes 'bundle exec rubocop -a' to safely correct common style offenses and return a cleaned output.

Can I selectively disable RuboCop rules for specific Ruby code sections?

Yes, you can selectively disable RuboCop rules by inserting disable comments with explanations when a rule is incorrect or dangerous, then re-enabling rules immediately after to preserve code readability.

What's the best way to handle common Ruby style violations across a project?

Handling common Ruby style violations project-wide is best achieved by running an automated static analysis tool that applies safe auto-fixes to individual files and the entire codebase.

Does this RuboCop auto-fixer require Bundler for Ruby static analysis?

Yes, this RuboCop auto-fixer requires Bundler because it specifically runs 'bundle exec rubocop -a' to manage dependencies and execute the linting and auto-fixing process.

Why does RuboCop leave some offenses unfixed after running auto-fix?

RuboCop leaves some offenses unfixed after running auto-fix because it only applies safe corrections to common style violations, avoiding changes that could alter code logic or break project standards.

When should I use disable comments instead of auto-fixing Ruby code?

You should use disable comments instead of auto-fixing when a specific RuboCop rule is incorrect or dangerous for your Ruby code context, allowing you to bypass it safely with an explanation.