rails
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Ruby on Rails assistance covering ActiveRecord, MVC architecture, migrations, background jobs (Sidekiq/SolidQueue), and Hotwire. Use when building full-stack web apps with convention over configuration.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- maroffo/claude-forgetheir own version, first seen Oct 25, 2026
- carapace-sh/carapace-bintheir own version, first seen Oct 8, 2026
- TeamHelix-AI/helixtheir own version, first seen Sep 12, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- martinstreicher/claude-skillstheir own version, first seen Feb 14, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- carapace-sh/carapace-bin★ 2ksame name
- maroffo/claude-forge★ 17same name
- TeamHelix-AI/helix★ 1same name
- conjure-3301/skills★ 0same name
- martinstreicher/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 120
Always use strong parameters (params.require(:order).permit(...)) in controllers.
- Very specific: line 121
Use includes or strict_loading to prevent N+1 query performance degradation.
- Distinctive: line 126
Put business logic or complex database queries inside view templates or controllers.
- Distinctive: line 127
Run long-running tasks synchronously inside HTTP controller actions.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ruby on Rails
Ruby on Rails is a full-stack web application framework emphasizing convention over configuration, featuring Active Record ORM, integrated asset bundling, and streamlined deployment tooling.
When to Use
- High-Velocity Full-Stack Web Development: Building robust SaaS products with convention over configuration.
- Modern Monoliths with Hotwire / Turbo: Delivering reactive, SPA-like user experiences without heavy frontend frameworks.
- Database-Driven Business Applications: Leveraging Active Record associations, scopes, and validations.
- Background Jobs & Real-Time WebSockets: Utilizing Solid Queue, Solid Cache, and Action Cable in Rails 7.2 / 8.
Quick Start
# app/controllers/posts_controller.rb
class PostsController < ApplicationController
def index
@posts = Post.all
end
endCore Concepts
Active Record Models with Scopes & Validations
Defining business logic and relational constraints:
class Order < ApplicationRecord
belongs_to :customer
has_many :line_items, dependent: :destroy
validates :total_amount, presence: true, numericality: { greater_than: 0 }
validates :status, inclusion: { in: %w[pending paid shipped canceled] }
scope :recent, -> { order(created_at: :desc) }
scope :paid, -> { where(status: 'paid') }
after_commit :enqueue_fulfillment, on: :create
private
def enqueue_fulfillment
FulfillmentJob.perform_later(id)
end
endHotwire & Turbo Streams for Real-Time Updates
Server-rendered partials pushed over WebSockets or response streams:
# app/controllers/messages_controller.rb
class MessagesController < ApplicationController
def create
@message = Message.create!(message_params)
respond_to do |format|
format.turbo_stream do
render turbo_stream: turbo_stream.append(
'messages_list',
partial: 'messages/message',
locals: { message: @message }
)
end
format.html { redirect_to @message.room }
end
end
endBackground Processing with Active Job
Asynchronous queue job execution:
class FulfillmentJob < ApplicationJob
queue_as :default
retry_on Net::OpenTimeout, wait: :exponentially_longer, attempts: 3
def perform(order_id)
order = Order.find(order_id)
OrderFulfillmentService.new(order).process!
end
endCommon Patterns
Turbo Stream Real-Time Dom Updates (Hotwire)
Problem: Needing single-page app reactivity without complex React/Vue frontend builds.
Solution: Broadcast model updates via Turbo Streams:
# app/models/message.rb
class Message < ApplicationRecord
belongs_to :room
after_create_commit -> {
broadcast_append_to room, target: "messages", partial: "messages/message", locals: { message: self }
}
endBest Practices
Do:
- Target Rails 7.2 / 8 with Propshaft asset pipeline and built-in Solid Queue / Solid Cache.
- Always use strong parameters (
params.require(:order).permit(...)) in controllers. - Use
includesorstrict_loadingto prevent N+1 query performance degradation. - Encapsulate complex multi-model business logic inside Plain Old Ruby Object (PORO) service objects.
Don't:
- Put business logic or complex database queries inside view templates or controllers.
- Run long-running tasks synchronously inside HTTP controller actions; offload to Active Job.
- Skip database indexes on foreign keys; declare them explicitly in migrations.
Troubleshooting
| Error | Cause | Solution |
ActiveRecord::RecordNotFound | find(id) called with non-existent primary key. | Use find_by(id: ...) or handle rescue in ApplicationController. |
ActionController::InvalidAuthenticityToken | CSRF token missing or mismatch in POST/PATCH request. | Include <%= csrf_meta_tags %> in layout or verify headers. |
PendingMigrationError: Migrations are pending | Database schema out of date with migration files. | Run bin/rails db:migrate. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

