Skillshub 37signals-rails

37signals Rails Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/37signals-rails" ~/.claude/skills/comeonoliver-skillshub-37signals-rails && rm -rf "$T"
manifest: skills/pproenca/dot-skills/37signals-rails/SKILL.md
source content

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

PriorityCategoryImpactPrefix
1Architecture FundamentalsCRITICAL
arch-
2Controllers & RESTCRITICAL
ctrl-
3Domain ModelingHIGH
model-
4State ManagementHIGH
state-
5Database & InfrastructureHIGH
db-
6Views & FrontendMEDIUM
view-
7Code StyleMEDIUM
style-
8TestingMEDIUM
test-

Quick Reference

1. Architecture Fundamentals (CRITICAL)

2. Controllers & REST (CRITICAL)

3. Domain Modeling (HIGH)

4. State Management (HIGH)

5. Database & Infrastructure (HIGH)

6. Views & Frontend (MEDIUM)

7. Code Style (MEDIUM)

8. Testing (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information