37signals-rails
БесплатноБез исполняемых скриптовНе проверен37signals Rails coding principles and conventions from DHH, Jorge Manrubia, and the Fizzy/Basecamp/HEY codebase. This skill should be used when writing…
от pproenca★ 231 звезда на GitHubОб этом скилле
37signals Rails Best Practices
Comprehensive coding principles and conventions for Ruby on Rails applications, as practiced at 37signals (Basecamp, HEY, Fizzy). Contains 56 rules across 8 categories, prioritized by architectural impact. Derived from official 37signals sources: the Fizzy codebase, STYLE.md, AGENTS.md, the Rails Doctrine, DHH's "On Writing Software Well" series, and the unofficial 37signals style guide (265 Fizzy PRs).
When to Apply
Reference these guidelines when:
- Writing new Rails controllers, models, or views
- Deciding between gems and vanilla Rails
- Modeling state and database schema
- Setting up background jobs, caching, or real-time features
- Reviewing code for 37signals-style conventions
- Refactoring toward rich domain models
- Choosing authentication or authorization approach
- Adding Stimulus controllers or Turbo patterns
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Architecture Fundamentals | CRITICAL | arch- |
| 2 | Controllers & REST | CRITICAL | ctrl- |
| 3 | Domain Modeling | HIGH | model- |
| 4 | State Management | HIGH | state- |
| 5 | Database & Infrastructure | HIGH | db- |
| 6 | Views & Frontend | MEDIUM | view- |
| 7 | Code Style | MEDIUM | style- |
| 8 | Testing | MEDIUM | test- |
Quick Reference
1. Architecture Fundamentals (CRITICAL)
arch-rich-models- Rich Domain Models Over Service Objectsarch-vanilla-rails- Vanilla Rails is Plentyarch-avoid-patterns- Deliberately Avoided Patterns and Gemsarch-earn-abstractions- Earn Abstractions Through Rule of Threearch-build-before-gems- Build It Yourself Before Reaching for Gemsarch-ship-to-learn- Start Simple — Add Complexity Only After Validationarch-domain-facades- Domain Models as Facades Over Internal Complexityarch-single-business-layer- Single Layer for Business Logicarch-custom-auth- Custom Passwordless Auth Over Devise
2. Controllers & REST (CRITICAL)
ctrl-crud-only- CRUD Controllers Over Custom Actionsctrl-model-as-resources- Model Non-CRUD Operations as Separate Resourcesctrl-thin-controllers- Thin Controllers with Rich Domain Modelsctrl-params-expect- Use params.expect() for Parameter Validationctrl-controller-concerns- Controller Concerns for Cross-Cutting Behaviorctrl-nested-resources- Nested Resources with scope module
3. Domain Modeling (HIGH)
model-concerns- Concerns for Horizontal Code Sharingmodel-normalizes- Use normalizes Macro for Data Cleaningmodel-store-accessor- Use store_accessor for JSON Column Accessmodel-delegated-type- Use delegated_type for Polymorphismmodel-counter-caches- Counter Caches to Prevent N+1 Count Queriesmodel-touch-chains- Touch Chains for Cache Invalidationmodel-callbacks-auxiliary- Callbacks for Auxiliary Complexitymodel-event-tracking- Polymorphic Event Model for Activity Trackingmodel-poro-namespacing- Namespace POROs Under Parent Models
4. State Management (HIGH)
state-records-over-booleans- Records as State Over Boolean Columnsstate-timestamps- Timestamps for State Transitionsstate-enums- Enums for Categorical Statesstate-db-constraints- Database Constraints Over ActiveRecord Validationsstate-write-time- Compute at Write Time Not Read Time
5. Database & Infrastructure (HIGH)
db-backed-everything- Database-Backed Everythingdb-solid-queue- Solid Queue for Background Jobsdb-solid-cable- Solid Cable for Real-Time Pub/Subdb-solid-cache- Solid Cache for Application Cachingdb-multi-tenancy- Path-Based Multi-Tenancy with Current
Установить 37signals-rails в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 37signals-rails?
37signals Rails coding principles and conventions from DHH, Jorge Manrubia, and the Fizzy/Basecamp/HEY codebase. This skill should be used when writing, reviewing, or refactoring Ruby on Rails code following the 37signals philosophy — vanilla Rails, CRUD controllers, rich domain models, concerns, no service objects, Hotwire, Turbo, Stimulus, Solid Queue, Solid Cache, Solid Cable, multi-tenancy, Minitest, custom auth, or DHH conventions.
Как установить скилл 37signals-rails?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 37signals-rails запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic