/basics:beautiful-rails-like-dhhfrom basics
Architects Ruby on Rails apps using 37signals conventions: server-rendered Hotwire frontends (Turbo, Stimulus), model-driven design, and tiny codebases. Covers backend models, controllers, caching, auth, and real-time interactive UIs without React.
Ships in basics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write Rails the way the best Rails developers alive write it — mined from two shipped 37signals products (Campfire, real-time chat; Fizzy, live multiplayer Kanban) plus their written style law. The payoff: whole production features in a handful of files, frontends that do everything an SPA does without a second codebase, and entire bug-classes made unwriteable.
Both are stated, derived, and worked in references/01-doctrine.md §1. Read it before any nontrivial work.
01-doctrine.md carries the why; each maps to a P-number)_commit callbacks; call-path effects → explicit methods. Reaching for skip_x? You put a call-path fact on the record._commit means after-durable (P1+P9) — anything reaching outside the DB fires after_*_commit, never plain after_create/after_save (the ghost row).Current.user; auth defaults closed, opened opt-out-by-name.dom_id. No JSON contract, no client templates.if kind == "x" is a class you haven't named.data-* as config, the URL carries the contract, the DOM attribute IS the state.Read only what the task needs. Each file opens with its own "read this when" line and TOC.
| Situation | Read |
|---|---|
| Tempted by React/Next/SPA; task says "interactive/real-time/modern UI" | references/00-frontend-first-principles.md |
| Starting any nontrivial work — worldview + principle interlocks + glossary | references/01-doctrine.md |
| Models, migrations, callbacks, scopes, enums, STI, concerns | references/02-models.md |
| Routes/controllers/actions; custom-verb actions; params | references/03-controllers-routing.md |
| Views, partials, helpers; anything rendered twice; edit-in-place | references/04-views-helpers.md |
| Page regions, lazy loading, live appends, WebSocket pushes, uploads | references/05-turbo-frames-streams.md |
| Live multiplayer, morphing, drag-and-drop | references/06-morphing-live-updates.md |
| Any JS: widgets, comboboxes, keyboard nav, hotkeys, autosave, drafts | references/07-stimulus-widgets.md |
| Jobs, emails, push, scheduled work, retries, multi-tenancy in jobs | references/08-jobs-background-work.md |
| Anything slow; fragment/HTTP caching; ETags; invalidation | references/09-caching-performance.md |
| Auth, authorization, tokens, bans, security review | references/10-auth-security.md |
| A whole feature end-to-end — five worked examples + feature anatomy | references/11-worked-features.md |
| New app; codebase structure; stack choices; what NOT to build | references/12-app-blueprint.md |
| Reviewing code or a diff; auditing a codebase | references/13-review-checklist.md |
| Mobile apps; tempted by React Native/Flutter; bridge components | references/14-hotwire-native.md |
Exact API lookup mid-task — data-turbo-*, Turbo events, stream/frame attrs, Stimulus API | references/15-hotwire-api-cheatsheet.md |
For any new feature, work in this order, asking the question at each step:
02)resources/resource only. (03)Current.user, call one model verb. If longer, the model is missing a verb. (03, 10)dom_id, serving every future path. (04)broadcasts_refreshes + morph. (05, 06)08), caching (09), thin Stimulus (07).Run the yardstick on each layer as you write it: every guard, loop, and hand-typed string is a candidate for a convention that absorbs it.
Reviewing a diff/PR/codebase: start with references/13-review-checklist.md (red-flag tables by layer, severity-ranked). Highest-signal first scan: unscoped Model.find(params[:id]) near a permission check; plain after_create/after_save touching the outside world; the same markup or id string in two places.
13 owns the detail)| You'll reach for | Instead | Rule |
|---|---|---|
| React/Next for "interactivity" | Hotwire — read 00 first | 6, 10 |
| A service object | A model verb or concern | 1, 8 |
after_create :notify | after_create_commit | 1, 2 |
A position integer renumbered on reorder | Derive order from a timestamp/satellite row | 3 |
A used/online/setup_complete boolean | Destroyed row / TTL scope / User.none? | 3 |
Model.find(id) + permission if | Load through Current.user | 4 |
member do post :ban end | resource :ban | 5 |
| JSON endpoint + client template for a widget | Server-rendered <template> into real inputs | 10 |
case record.type / if kind == "x" | STI / enum scope / partial-by-name | 7 |
| Tokens table + sweeper | signed_id(purpose:, expires_in:) | 3, 4 |
Logic inside a job's perform | Two-line thunk → model verb | 9 |
| Hand-typed DOM ids / duplicated markup | dom_id + one partial | 6 |
A dirty flag beside the work | The DOM attribute IS the state | 3, 10 |
form.submit() / location.reload() | requestSubmit() / morph refresh | 10 |
after_save for work that must roll back; SPA for canvas-class apps (00 §6). Each reference marks its own exceptions; apply them knowingly and say why.AUTHORING-CONTRACT.md (opens in a new tab)references/00-frontend-first-principles.md (opens in a new tab)references/01-doctrine.md (opens in a new tab)references/02-models.md (opens in a new tab)references/03-controllers-routing.md (opens in a new tab)references/04-views-helpers.md (opens in a new tab)references/05-turbo-frames-streams.md (opens in a new tab)references/06-morphing-live-updates.md (opens in a new tab)references/07-stimulus-widgets.md (opens in a new tab)references/08-jobs-background-work.md (opens in a new tab)references/09-caching-performance.md (opens in a new tab)references/10-auth-security.md (opens in a new tab)references/11-worked-features.md (opens in a new tab)references/12-app-blueprint.md (opens in a new tab)references/13-review-checklist.md (opens in a new tab)references/14-hotwire-native.md (opens in a new tab)references/15-hotwire-api-cheatsheet.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nityeshaga/claude-code-essentials --plugin basics4 skills in this plugin
/ai-tool-designerGuide for designing effective tools for AI agents. Use when creating tools for custom agent systems or any AI tool interfaces. Provides principles for tool naming, input/output design, error handling, and evaluation methodologies that maximize agent effectiveness./kamal-deployExpert-level Kamal deployment guidance for deploying containerized applications to any server. Use this skill when users ask about Kamal, container deployment, zero-downtime deployments, deploying Rails/web apps to VPS/cloud servers, kamal setup, kamal deploy, Docker deployment without Kubernetes, or deploying to Hetzner/DigitalOcean/AWS with Kamal. Also use when users mention DHH's deployment tool, 37signals deployment, or want an alternative to Heroku/Render/Vercel with self-hosted infrastructure./prompt-engineerExpert prompt engineering for AI systems. Use when the user wants to write or review prompts for AI, create instructions for AI systems, build system prompts, review or improve existing prompts, optimize AI instructions, or create any form of written communication intended for AI consumption (Claude, GPT, or other LLMs).Other plugins' skills for the same job