rails-contexts
Installation
SKILL.md
Rails Contexts
Iron Laws
- Controllers translate HTTP; they do not own business rules.
- Model callbacks should not silently trigger external side effects.
- Policy and authorization checks must be explicit at boundaries.
- Service, query, and form objects should clarify ownership, not add ceremony for its own sake.
Good Rails Boundaries
- controller or endpoint for transport concerns
- application service or command for workflow orchestration
- query object when a query grows beyond a scope or two
- policy object for authorization rules
- job only for deferred or async work