Review a Rails diff for layer violations
Uses layered-rails
- A Rails code diff supplied as “this diff” for review.
run the layered-rails review workflow on this diff

Layered Rails applies unidirectional presentation, application, domain, and infrastructure boundaries to implementation, refactoring, and review. It helps Rails teams find fat controllers, god objects, misplaced callbacks, anemic models, and reverse dependencies, then choose fitting patterns such as policies, query objects, forms, presenters, services, and state machines.
Follow the documented setup, then try a first task.
Installs: Full layered-rails plugin, including its skill content, slash commands, and sub-agents. · Claude Code
Enter this slash command in a Claude Code agent session to add the author's plugin marketplace.
/plugin marketplace add palkan/layered-rails-skills
After adding the marketplace, enter this slash command in the same Claude Code agent session to install the layered-rails plugin.
/plugin install layered-rails@layered-rails-skills
Installs: The layered-rails skill-content tree only: SKILL.md, workflows, references, and examples. Slash-command bindings and sub-agent registrations are excluded. · Codex, Claude API, Any agent that supports skills.sh
Run this command in a terminal to install the layered-rails skill content.
npx skills add palkan/layered-rails-skills --skill layered-rails
Installs: Bundle-aware installation into a Rails application. It installs the architecture core and the applicable per-gem references, plus commands and sub-agents under .claude/. · Claude Code
Run from: Rails application root
Manually add the following exact Ruby configuration to the Rails application's Gemfile: group :development do gem "rails-hyperdrive", ">= 0.8" gem "layered-rails-skills" end
From the Rails application root, run this command in a terminal after the documented gems are available to the application bundle.
bin/rails hyperdrive:init
Uses layered-rails
run the layered-rails review workflow on this diff