rubycritic

Run RubyCritic to detect code smells, complexity, and duplication in Ruby projects.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/damacus/agent-skills --skill rubycritic-damacus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rubycritic
Source: https://github.com/damacus/agent-skills/tree/main/skills/rubycritic
Command: npx skills add https://github.com/damacus/agent-skills --skill rubycritic-damacus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ruby projects often suffer from undetected code smells, excessive complexity, and duplicated logic that reduce maintainability and increase risk. RubyCritic integration automates quality checks, delivering actionable guidance to improve code quality throughout the development lifecycle.

Core Features & Use Cases

  • Automated RubyCritic analysis after significant changes to identify smells, complexity, and duplication.
  • Actionable feedback with per-file ratings and concrete improvements to guide refactoring.
  • Use Case: before code reviews or after refactoring to ensure changes meet quality standards and reduce defect risk.

Quick Start

Run a quality check on Ruby files by executing the check_quality script with an optional path, or in the current directory if none is provided.

Frequently Asked Questions about rubycritic

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

FAQPage Schema
How do I automate Ruby code quality checks to detect smells and complexity?

Run RubyCritic analysis by executing the check_quality script with an optional path, or in the current directory if none is provided. The script supports automatic installation to detect smells, complexity, and duplication in Ruby files.

Can I enforce minimum quality scores and per-file ratings in Ruby projects?

Run RubyCritic analysis by executing the check_quality script with an optional path, or in the current directory if none is provided. The script supports automatic installation to detect smells, complexity, and duplication in Ruby files.

What is the best way to identify code smells and duplication after refactoring Ruby code?

Run RubyCritic analysis by executing the check_quality script with an optional path, or in the current directory if none is provided. The script supports automatic installation to detect smells, complexity, and duplication in Ruby files.

Does RubyCritic static analysis require manual installation before running checks?

Run RubyCritic analysis by executing the check_quality script with an optional path, or in the current directory if none is provided. The script supports automatic installation to detect smells, complexity, and duplication in Ruby files.

How do I run static analysis on a specific directory of Ruby files?

Run RubyCritic analysis by executing the check_quality script with an optional path, or in the current directory if none is provided. The script supports automatic installation to detect smells, complexity, and duplication in Ruby files.