Rails Patterns
Rails 7.1+ and 8.x patterns: skinny controllers, service objects, Hotwire, and the Solid stack.
- What
- Rails 7.1+ and 8.x patterns: skinny controllers, service objects, Hotwire, and the Solid stack.
- Cost
- Free
- Needs
- Use "Rails Patterns" with your Muse.
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor: the community-converged patterns for Ruby on Rails apps that stay maintainable past the 50-model mark (Rails 7.1+ and 8.x). Covers the directory contract (services/, forms/, queries/, jobs/ and where each belongs, with no casual new directories), skinny controllers that delegate to service objects returning Result objects (namespaced by domain, single-purpose, transactional multi-record writes), form objects for multi-model forms, composable query objects for complex ActiveRecord queries, background jobs (pass IDs not records, idempotent perform, explicit retry_on/discard_on), ViewComponent over partials for testable view logic, Hotwire as the default frontend (Turbo Frames for partial updates, Turbo Streams for server-driven updates, Stimulus for small behaviors), and the Rails 8 Solid stack (Solid Queue, Solid Cache, Solid Cable backed by the database instead of Redis, Kamal for deploys). Includes bad-vs-good code examples throughout, N+1 prevention with includes and strict_loading, counter caches, and a sharp anti-pattern list (god controllers, fat models, callback chains, nested attributes for complex forms, default scopes, reaching for a JS framework before Hotwire). By @affaan-m, listed here with credit to its creator. From the affaan-m/ECC repository (MIT). Honest caveats: pure guidance, nothing to install; Rails-oriented throughout, you need a Rails codebase to apply it. Skill Harbor never reviews the code, review it yourself before use.
Version:
Install
Copy the install package below, then paste it into MuseWe automatically scan every listing and flag anything suspicious, but we can't review every line of community code. Here's how to check a build yourself before you install it.
Use "Rails Patterns" with your Muse. Prerequisites: the Muse app (mobile or web). Pure guidance skill, nothing to install. A Ruby on Rails 7.1+ or 8.x codebase to build or review. 1. Open the skill: https://github.com/affaan-m/ECC/blob/main/skills/rails-patterns/SKILL.md and copy the full SKILL.md text. 2. Paste it into a chat with Muse and add: "Review [this controller / this model / this query] against these Rails patterns: [paste your code]." 3. Ask Muse to flag pattern violations (business logic in the controller, fat model past ~200 lines, N+1 queries, callback chains with side effects) and propose the corrected shape with before/after code. Tip: when a controller action grows past ~10 lines, ask Muse to extract it into a service object following the skill's conventions (domain namespace, .call class method, Result object). Safety: a skill is plain-text instructions; it runs nothing by itself. Review any code before committing it, never paste secrets into a chat, and review anything Muse proposes before it acts.
Saved to your recent installs. Find it anytime on /connect.
Questions
How do I install a build?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.