ruby-quality

Select and apply StandardRB or RuboCop for Ruby linting and formatting.

1|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/racurry/neat-little-package --skill ruby-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-quality
Source: https://github.com/racurry/neat-little-package/tree/main/plugins/mr-sparkle/skills/ruby-quality
Command: npx skills add https://github.com/racurry/neat-little-package --skill ruby-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ruby projects need guidance on choosing between StandardRB (zero-config) and RuboCop (configurable). This skill explains the decision framework and how to apply the right tool in different contexts.

Core Features & Use Cases

  • Tool selection: Prefer StandardRB when no config exists; fall back to RuboCop when there is config
  • Guidance on config patterns: Highlights common Ruby configurations and how to apply them

Quick Start

Example user request: Decide whether to use StandardRB or RuboCop for a new Ruby project and outline the default workflow.

Frequently Asked Questions about ruby-quality

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

FAQPage Schema
Should I use StandardRB or RuboCop for Ruby linting?

StandardRB is a zero-config linter that enforces a single style with no setup required; RuboCop is highly configurable and lets you define custom rules. Use StandardRB for new projects unless your team needs custom linting rules, in which case RuboCop is the better fit.

How do I set up RuboCop or StandardRB in an existing Ruby project?

Check your project root for existing linting configuration files. If none exist, StandardRB requires zero configuration and runs immediately. If you have RuboCop config, the tool applies those rules. Both integrate with most Ruby editors and CI/CD pipelines.

Can I use StandardRB and RuboCop together in the same Ruby project?

StandardRB and RuboCop enforce conflicting style rules and should not run simultaneously on the same codebase. Choose one tool per project. The selection logic prioritizes StandardRB for zero-config projects and RuboCop when configuration already exists.

How do I troubleshoot RuboCop or StandardRB linting errors in Ruby code?

Run the linter from your project root to identify violations. Both tools output error locations and descriptions. StandardRB violations follow its single opinionated style; RuboCop errors depend on your `.rubocop.yml` configuration. Most violations can be auto-corrected with the `--auto-correct` flag.

What's the difference between linting and formatting in Ruby quality tools?

Linting detects code style violations and potential bugs; formatting automatically fixes style issues. StandardRB and RuboCop both lint and format Ruby code. Formatting is idempotent—running it multiple times produces identical results.

Does RuboCop work with legacy Ruby codebases?

Yes. RuboCop is configurable for any Ruby version and style preference, making it suitable for legacy projects. You can disable specific rules, target particular file patterns, and gradually enforce standards. StandardRB is better for new projects due to zero configuration.