ruby
Skill15 starsChanged 41 days agoMITView on GitHub
Expert Ruby programming assistance covering blocks, metaprogramming, Bundler, gems, and modern Ruby 3.x features. Use when developing Rails web apps, writing CLI utilities, or managing Ruby gems.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 1, 2026
- damacus/agent-skillstheir own version, first seen Oct 29, 2026
- bsene/skillstheir own version, first seen Oct 25, 2026
- maroffo/claude-forgetheir own version, first seen Oct 25, 2026
- mukco/claude-skillstheir own version, first seen Oct 15, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Used with
Projects with it also use grill-me.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- carapace-sh/carapace-bin★ 2ksame name
- Mindrally/skills★ 275same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- maroffo/claude-forge★ 17same name
- bsene/skills★ 7same name
- damacus/agent-skills★ 2same name
- display-design-studio/skills★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- martinstreicher/claude-skills★ 0same name
1 more not listed
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
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Every value in Ruby is a full-fledged object.
- Distinctive: line 91
Use Ruby 3 native pattern matching:
- Distinctive: line 113
Use RuboCop with Modern Presets: Enforce style consistency and detect security pitfalls with automated RuboCop linting.
- Very specific: line 115
Use Sorbet or RBS for Type Checking: Add static typing to mission-critical business modules.
- Distinctive: line 119
Use monkey-patching in application code: Overriding core methods globally creates fragile, untraceable bugs across gems.
“Common” is measured: kept by at least 6 in 10 of the 10 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
A dynamic, interpreted language known for its elegant syntax.
When to Use
- Rapid Web Application Development (Ruby on Rails): Building full-stack web applications, startups, and MVPs with unmatched developer velocity.
- E-Commerce & Digital Storefronts: Powering platforms like Shopify, Spree Commerce, and custom checkout flows.
- Developer Tooling & Automation: Authoring automated DevOps scripts, Homebrew formulas, and Fastlane mobile deployment pipelines.
- Background Processing & Queues: Executing asynchronous jobs using Sidekiq backed by Redis.
Quick Start
puts "Hello, World!"
class Greeter
def initialize(name)
@name = name
end
def say_hi
puts "Hi #{@name}!"
end
end
g = Greeter.new("Alice")
g.say_hiCore Concepts
Object-Oriented Everything & Dynamic Metaprogramming
Every value in Ruby is a full-fledged object; classes can be modified dynamically at runtime:
class Integer
def to_usd
"$#{format('%.2f', self)}"
end
end
puts 100.to_usd # "$100.00"Blocks, Procs & Enumerable Power
Passes executable code blocks to methods for clean data manipulation:
orders = [
{ id: 1, total: 45.0, status: :completed },
{ id: 2, total: 120.0, status: :pending },
{ id: 3, total: 85.0, status: :completed }
]
completed_revenue = orders
.select { |o| o[:status] == :completed }
.sum { |o| o[:total] }
puts "Completed Revenue: $#{completed_revenue}" # 130.0Modern Concurrency (Fibers & Ractor)
Runs true parallel execution without Global VM Lock (GVL) contention using Ractors (Ruby 3+):
# Parallel computation across multiple CPU cores
r = Ractor.new do
# Completely isolated memory space
1_000_000.times.reduce(:+)
end
puts "Ractor Result: #{r.take}"Common Patterns
Pattern Matching with Value Extraction (Ruby 3+)
Problem: Verbose nested if/elsif conditionals when handling structured JSON API responses.
Solution: Use Ruby 3 native pattern matching:
def handle_response(response)
case response
in { status: 200, data: { user: { name:, email: } } }
puts "User found: #{name} <#{email}>"
in { status: 404, error: msg }
warn "Not found: #{msg}"
in { status: (500..) }
raise "Server error occurred"
else
puts "Unknown response format"
end
endBest Practices
Do:
- Enable YJIT in Production: Launch Ruby with
--yjitto enable the native Just-in-Time compiler, boosting performance 20-40%. - Use RuboCop with Modern Presets: Enforce style consistency and detect security pitfalls with automated RuboCop linting.
- Freeze String Literals: Add
# frozen_string_literal: trueat the top of files to reduce heap string allocations. - Use
Sorbetor RBS for Type Checking: Add static typing to mission-critical business modules.
Don't:
- Use monkey-patching in application code: Overriding core methods globally creates fragile, untraceable bugs across gems.
- Query the database inside loops (N+1): Use
.includes()or.preload()in ActiveRecord to eager-load associations. - Rescue
Exception: Always rescueStandardError(rescue => e); rescuingExceptioncatches system exit and termination signals.
Troubleshooting
| Error | Cause | Solution |
NoMethodError: undefined method '...' for nil:NilClass | Calling method on a nil object. | Use safe navigation operator object&.method_name. |
LoadError: cannot load such file -- ... | Gem not installed or missing in Gemfile. | Run bundle install and execute script via bundle exec ruby script.rb. |
NameError: uninitialized constant | Constant/Class not required or module nesting typo. | Check file require paths and ensure file naming matches Zeitwerk conventions. |
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.

