[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FE8PNVY3ZDFKJNWJFSH5B5":3,"skill-same:01M6FE8PNVY3ZDFKJNWJFSH5B5":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FE8PNVY3ZDFKJNWJFSH5B5","37signals-rails",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002F37signals-rails\u002FSKILL.md",[],[18,19],"rails","37signals rails","2026-11-10 10:12:30",false,"# 37signals Rails Best Practices\n\nComprehensive 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).\n\n## When to Apply\n\nReference these guidelines when:\n- Writing new Rails controllers, models, or views\n- Deciding between gems and vanilla Rails\n- Modeling state and database schema\n- Setting up background jobs, caching, or real-time features\n- Reviewing code for 37signals-style conventions\n- Refactoring toward rich domain models\n- Choosing authentication or authorization approach\n- Adding Stimulus controllers or Turbo patterns\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Architecture Fundamentals | CRITICAL | `arch-` |\n| 2 | Controllers & REST | CRITICAL | `ctrl-` |\n| 3 | Domain Modeling | HIGH | `model-` |\n| 4 | State Management | HIGH | `state-` |\n| 5 | Database & Infrastructure | HIGH | `db-` |\n| 6 | Views & Frontend | MEDIUM | `view-` |\n| 7 | Code Style | MEDIUM | `style-` |\n| 8 | Testing | MEDIUM | `test-` |\n\n## Quick Reference\n\n### 1. Architecture Fundamentals (CRITICAL)\n\n- [`arch-rich-models`](references\u002Farch-rich-models.md) - Rich Domain Models Over Service Objects\n- [`arch-vanilla-rails`](references\u002Farch-vanilla-rails.md) - Vanilla Rails is Plenty\n- [`arch-avoid-patterns`](references\u002Farch-avoid-patterns.md) - Deliberately Avoided Patterns and Gems\n- [`arch-earn-abstractions`](references\u002Farch-earn-abstractions.md) - Earn Abstractions Through Rule of Three\n- [`arch-build-before-gems`](references\u002Farch-build-before-gems.md) - Build It Yourself Before Reaching for Gems\n- [`arch-ship-to-learn`](references\u002Farch-ship-to-learn.md) - Start Simple — Add Complexity Only After Validation\n- [`arch-domain-facades`](references\u002Farch-domain-facades.md) - Domain Models as Facades Over Internal Complexity\n- [`arch-single-business-layer`](references\u002Farch-single-business-layer.md) - Single Layer for Business Logic\n- [`arch-custom-auth`](references\u002Farch-custom-auth.md) - Custom Passwordless Auth Over Devise\n\n### 2. Controllers & REST (CRITICAL)\n\n- [`ctrl-crud-only`](references\u002Fctrl-crud-only.md) - CRUD Controllers Over Custom Actions\n- [`ctrl-model-as-resources`](references\u002Fctrl-model-as-resources.md) - Model Non-CRUD Operations as Separate Resources\n- [`ctrl-thin-controllers`](references\u002Fctrl-thin-controllers.md) - Thin Controllers with Rich Domain Models\n- [`ctrl-params-expect`](references\u002Fctrl-params-expect.md) - Use params.expect() for Parameter Validation\n- [`ctrl-controller-concerns`](references\u002Fctrl-controller-concerns.md) - Controller Concerns for Cross-Cutting Behavior\n- [`ctrl-nested-resources`](references\u002Fctrl-nested-resources.md) - Nested Resources with scope module\n\n### 3. Domain Modeling (HIGH)\n\n- [`model-concerns`](references\u002Fmodel-concerns.md) - Concerns for Horizontal Code Sharing\n- [`model-normalizes`](references\u002Fmodel-normalizes.md) - Use normalizes Macro for Data Cleaning\n- [`model-store-accessor`](references\u002Fmodel-store-accessor.md) - Use store_accessor for JSON Column Access\n- [`model-delegated-type`](references\u002Fmodel-delegated-type.md) - Use delegated_type for Polymorphism\n- [`model-counter-caches`](references\u002Fmodel-counter-caches.md) - Counter Caches to Prevent N+1 Count Queries\n- [`model-touch-chains`](references\u002Fmodel-touch-chains.md) - Touch Chains for Cache Invalidation\n- [`model-callbacks-auxiliary`](references\u002Fmodel-callbacks-auxiliary.md) - Callbacks for Auxiliary Complexity\n- [`model-event-tracking`](references\u002Fmodel-event-tracking.md) - Polymorphic Event Model for Activity Tracking\n- [`model-poro-namespacing`](references\u002Fmodel-poro-namespacing.md) - Namespace POROs Under Parent Models\n\n### 4. State Management (HIGH)\n\n- [`state-records-over-booleans`](references\u002Fstate-records-over-booleans.md) - Records as State Over Boolean Columns\n- [`state-timestamps`](references\u002Fstate-timestamps.md) - Timestamps for State Transitions\n- [`state-enums`](references\u002Fstate-enums.md) - Enums for Categorical States\n- [`state-db-constraints`](references\u002Fstate-db-constraints.md) - Database Constraints Over ActiveRecord Validations\n- [`state-write-time`](references\u002Fstate-write-time.md) - Compute at Write Time Not Read Time\n\n### 5. Database & Infrastructure (HIGH)\n\n- [`db-backed-everything`](references\u002Fdb-backed-everything.md) - Database-Backed Everything\n- [`db-solid-queue`](references\u002Fdb-solid-queue.md) - Solid Queue for Background Jobs\n- [`db-solid-cable`](references\u002Fdb-solid-cable.md) - Solid Cable for Real-Time Pub\u002FSub\n- [`db-solid-cache`](references\u002Fdb-solid-cache.md) - Solid Cache for Application Caching\n- [`db-multi-tenancy`](references\u002Fdb-multi-tenancy.md) - Path-Based Multi-Tenancy with Current.account\n- [`db-uuid-primary-keys`](references\u002Fdb-uuid-primary-keys.md) - UUIDs as Primary Keys\n- [`db-no-foreign-keys`](references\u002Fdb-no-foreign-keys.md) - No Foreign Key Constraints\n\n### 6. Views & Frontend (MEDIUM)\n\n- [`view-turbo-frames`](references\u002Fview-turbo-frames.md) - Turbo Frames for Scoped Page Fragments\n- [`view-turbo-streams`](references\u002Fview-turbo-streams.md) - Turbo Streams for Real-Time Updates\n- [`view-stimulus-targets`](references\u002Fview-stimulus-targets.md) - Stimulus Targets Over CSS Selectors\n- [`view-stimulus-design`](references\u002Fview-stimulus-design.md) - Stimulus Controller Design Principles\n- [`view-helpers-not-partials`](references\u002Fview-helpers-not-partials.md) - Extract Logic to Helpers Not Partials\n- [`view-progressive-enhancement`](references\u002Fview-progressive-enhancement.md) - Progressive Enhancement as Primary Pattern\n- [`view-fragment-caching`](references\u002Fview-fragment-caching.md) - Fragment Caching for View Performance\n- [`view-http-caching`](references\u002Fview-http-caching.md) - HTTP Caching with fresh_when and ETags\n\n### 7. Code Style (MEDIUM)\n\n- [`style-conditionals`](references\u002Fstyle-conditionals.md) - Expanded Conditionals Over Guard Clauses\n- [`style-method-ordering`](references\u002Fstyle-method-ordering.md) - Methods Ordered by Call Sequence\n- [`style-positive-names`](references\u002Fstyle-positive-names.md) - Use Positive Names for Methods and Scopes\n- [`style-naming-return-values`](references\u002Fstyle-naming-return-values.md) - Method Names Reflect Return Values\n- [`style-visibility-modifiers`](references\u002Fstyle-visibility-modifiers.md) - Visibility Modifier Formatting\n- [`style-bang-methods`](references\u002Fstyle-bang-methods.md) - Bang Methods Only When Non-Bang Exists\n- [`style-async-naming`](references\u002Fstyle-async-naming.md) - Use _later and _now Suffixes for Async Operations\n\n### 8. Testing (MEDIUM)\n\n- [`test-minitest`](references\u002Ftest-minitest.md) - Minitest Over RSpec\n- [`test-fixtures`](references\u002Ftest-fixtures.md) - Database Fixtures Over FactoryBot\n- [`test-no-damage`](references\u002Ftest-no-damage.md) - No Test-Induced Design Damage\n- [`test-no-system-tests`](references\u002Ftest-no-system-tests.md) - Integration Tests Over System Tests\n- [`test-behavior`](references\u002Ftest-behavior.md) - Test Behavior Not Implementation\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002F37signals-rails",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill 37signals-rails",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill 37signals-rails",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill 37signals-rails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002F37signals-rails\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]