RubyCritic Code Quality Analysis

Wraps the RubyCritic gem to grade Ruby/Rails files A-F and prioritize refactoring by churn.

Autor: esparkman · esparkman/claude-rubycritic-skill

Tested · Didn't pass

RubyCritic Code Quality Analysis — Wraps the RubyCritic gem to grade Ruby/Rails files A-F and prioritize refactoring by churn.

Co robi ten skill

Runs and interprets RubyCritic analysis on Ruby/Rails codebases: A-F file grades, complexity/duplication/smell metrics, churn-based prioritization, and branch comparisons. Triggers on requests to analyze Ruby code quality, review a Ruby PR, or find technical debt in a Rails project.

Raport z testu

The skill's own first Implementation step ('gem install rubycritic') fails outright on any pre-3.2 Ruby: rubycritic's simplecov dependency now requires Ruby >=3.2, and this was reproduced live on system Ruby 2.6.10 with a hard ERROR from gem. SKILL.md never mentions a Ruby-version requirement anywhere, so the exact 'legacy codebase' use case it advertises is the one most likely to hit this wall unwarned.

Testowano: 2026-07-15 · Claude Code 2.x (agent harness)

Instalacja

git clone https://github.com/esparkman/claude-rubycritic-skill.git
cd claude-rubycritic-skill
mkdir -p ~/.claude/skills
cp -r skills/rubycritic-skill ~/.claude/skills/rubycritic-skill

Komendy i przykładowe prompty

  • /rubycritic-code-quality-analysisWraps the RubyCritic gem to grade Ruby/Rails files A-F and prioritize refactoring by churn.

Skille uruchamiają się na zwykłe polecenia — bez komend do zapamiętania. Po instalacji aktywują go prompty takie jak te (po angielsku):

  • Can you grade the code quality of my Rails app's models directory?
  • Find the most technical-debt-heavy Ruby files in this legacy codebase
  • Review this Ruby pull request and flag any code quality regressions