mcpField

layered-rails

evilmartians.comDevelopment57 installs

About layered-rails

Write, refactor, and review Rails code using layered architecture principles from “Layered Design for Ruby on Rails Applications”. Use when writing or refactoring Rails code—models, controllers, services, jobs, mailers, policies, forms, query objects, presenters, view components, state machines, serializers, or AI/LLM features—to apply correct patterns and avoid layer violations; and when reviewing Rails code, PRs, or diffs for layer violations, fat controllers/models, anemic models, callback misuse, god objects, or specification-test failures. Triggers on “layered design”, “architecture layers”, “abstraction layer”, “specification test”, “layer violation”, “fat controller/model”, “god object”, “anemic model”, “extract service/callback/policy/concern”, “service object”, “form/policy/query/value object”, “presenter”, “view component”, “state machine”, “Active Delivery”, “callback scoring”, “Rails refactor/review”, “Rails patterns/best practices”, “archspec”, or “architecture linter/enforcement”.

Install

Copy the command and run it in a terminal.

$npx skills add https://evilmartians.com --skill layered-rails

After installing, type/layered-railsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

examples/
authorization-to-policy.md
callbacks-to-service.md
complex-input-to-form-object.md
current-from-model.md
god-object-decomposition.md
implicit-to-explicit-state-machine.md
query-to-query-object.md
view-logic-to-presenter.md
references/anti-patterns/
callbacks.md
concerns.md
helpers.md
jobs.md
layer-violations.md
service-objects.md
testing.md
references/core/
architecture-layers.md
extraction-signals.md
specification-test.md
references/gems/
action-policy.md
active-agent.md
active-delivery.md
active-job-performs.md
alba.md
anyway-config.md
archspec.md
rubanok.md
view-component.md
workflow.md
references/patterns/
collaborator-objects.md
concerns.md

Comments

Markdown supported