review-ruby-code

Analyze Ruby and Rails diffs for design, security, and test coverage issues.

12|2|Updated Mar 11, 2025
One-click install
npx skills add https://github.com/el-feo/ai-context --skill review-ruby-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-ruby-code
Source: https://github.com/el-feo/ai-context/tree/main/skills/review-ruby-code
Command: npx skills add https://github.com/el-feo/ai-context --skill review-ruby-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill analyzes Ruby/Rails code changes against base branches, applying Sandi Metz rules and SOLID principles to surface design issues, Rails anti-patterns, security concerns, and test coverage gaps, then outputs a REVIEW.md with VSCode-compatible links.

Core Features & Use Cases

  • Detect OOP violations, Rails anti-patterns, and security concerns.
  • Compare changed files with base branch to highlight impact.
  • Produce a REVIEW.md with actionable recommendations and VSCode links.

Quick Start

On a feature branch, run the code review tool to generate a REVIEW.md with clickable file references.

Frequently Asked Questions about review-ruby-code

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

FAQPage Schema
How do I review Ruby and Rails code changes for design issues?

Code review Ruby/Rails changes by running this Skill on a feature branch diff. It analyzes OOP design, Rails patterns, security concerns, and test coverage using SOLID principles, then outputs a REVIEW.md with actionable recommendations and VSCode-compatible links to problematic files.

Can I automate code review for Rails projects?

Yes. This Skill automates Rails code review by detecting OOP violations, Rails anti-patterns, and security concerns. It compares changed files against your base branch, runs rubycritic and simplecov analysis, and generates a REVIEW.md with linked file references for quick navigation.

What does rubycritic check in code review?

Rubycritic identifies code quality and design issues in Ruby files. This Skill runs rubycritic on changed files to surface violations of Sandi Metz rules and SOLID principles, complemented by simplecov test coverage analysis to highlight gaps in test coverage.

How do I check test coverage on changed files?

This Skill runs simplecov on changed files to measure test coverage gaps. Combined with rubycritic analysis, it surfaces which modified code lacks adequate tests and outputs findings with VSCode links in REVIEW.md for easy review.

Does this work with Rails anti-patterns?

Yes. The Skill specifically detects Rails anti-patterns alongside OOP design violations and security concerns. It applies Rails best practices to your code changes and flags deviations in a comprehensive REVIEW.md with linked file locations.