rails-conventions
OfficialMake Rails code idiomatic and maintainable
AuthorGrupo-AFAL
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enforce Rails Doctrine and DHH-style conventions to identify anti-patterns, reduce accidental complexity, and make Rails codebases more idiomatic and maintainable.
Core Features & Use Cases
- Convention Enforcement: Evaluates controllers, models, routes, queries, views, and tests against Rails best practices.
- Actionable Reviews: Flags anti-patterns (fat controllers, anemic models, boolean soup, N+1 queries, banned gems) and suggests concrete refactors and design changes.
- Guided Refactors & Examples: Provides before/after recommendations, preferred AFAL replacements (e.g., Pundit, Propshaft), and references to patterns and anti-patterns for reviewer education.
- Use Case: Run when reviewing pull requests, auditing a legacy Rails app, or preparing a codebase for AFAL conventions adoption.
Quick Start
Review the provided controller and model files for Rails Doctrine adherence and return a DHH-style code review with prioritized issues and concrete refactor examples.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rails-conventions Download link: https://github.com/Grupo-AFAL/claude-plugins/archive/main.zip#rails-conventions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.