rails-model
CommunityEnforce Rails model conventions: UUIDs and audits
Authorsamrocks03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill ensures every Rails model adheres to the project's conventions: using a UUID-based uid via the UidGenerator concern, documenting and enforcing has_paper_trail for audit trails, and applying explicit foreign and primary keys for all associations, as well as standardized enums, validations, scopes, and callbacks.
Core Features & Use Cases
- UUID-based uid with UidGenerator and before_create
- PaperTrail audit trails via has_paper_trail
- Explicit associations with foreign_key and primary_key, including inverse_of
- Enums, validations, scopes, and callbacks used consistently
- Use Case: when creating a new model or refactoring an existing one to align with project conventions.
Quick Start
Apply these conventions whenever you create or modify a model under app/models to ensure a UUID-based uid, audit trails, and explicit association keys.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rails-model Download link: https://github.com/samrocks03/shuttle-office-service/archive/main.zip#rails-model Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.