Help us improve
Share bugs, ideas, or general feedback.
From rubyku
Naming rules for models, controllers, database columns, branches, commits, and file organization following Rails Way standards
npx claudepluginhub ghozimahdi/gm-claude-plugins --plugin rubykuHow this skill is triggered — by the user, by Claude, or both
Slash command
/rubyku:naming-conventionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Type | Convention | Good | Bad |
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Structures git workflow practices for committing, branching, resolving conflicts, and organizing work across parallel streams. Use when making any code change.
Share bugs, ideas, or general feedback.
| Type | Convention | Good | Bad |
|---|---|---|---|
| Boolean | positive, no is_/has_ | active, email_verified | is_active, has_email |
| Datetime | *_at | published_at, expired_at | publish_date, expiry |
| Date | *_on | birthday_on, hired_on | birthday, hire_date |
| Foreign key | singular _id | user_id | users_id |
| Enum | singular | status, role | statuses |
| Entity | Convention | Example |
|---|---|---|
| Model | singular CamelCase | Post |
| Table | plural snake_case | posts |
| File | snake_case | post.rb |
| Concern (model-specific) | ModelName::ConcernName | Task::StatusTransitions |
| Concern (shared) | ConcernName | Notifiable |
| Entity | Convention | Example |
|---|---|---|
| Class | plural CamelCase + Controller | Admin::UsersController |
| File | snake_case | app/controllers/admin/users_controller.rb |
| Actions | REST only | index, show, new, create, edit, update, destroy |
| Entity | Convention | Example |
|---|---|---|
| Job | + Job | SendWelcomeEmailJob |
| Mailer | + Mailer | UserMailer |
Present tense verb + target:
add_published_at_to_postscreate_tasksremove_legacy_column_from_accounts| Entity | Format | Example |
|---|---|---|
| Branch | issues/<id> | issues/42 |
| Commit | [#id] Message | [#42] Fix login timeout |
| No issue | [fix] Message | [fix] Fix typo |
| PR title | [#id] Description | [#42] Add renewal notifications |
# Good — class << self
class << self
def find_active
where(active: true)
end
end
# Bad — def self.method
def self.find_active
where(active: true)
end
# Good — predicate
task.pending?
task.in_progress?
# Good — scope
Task.status_pending
Task.status_in_progress
# Bad
task.status == "pending"
Task.where(status: :pending)