Agent skill · software engineering · personamanagmentlayer
ruby-expert
Expert-level Ruby development with Rails, modern features, testing, and best practices. Use when the user mentions Ruby on Rails, RSpec, gem, Sinatra, or metaprogramming, or when the task involves Ruby 3+ Features, Object-Oriented, Functional Features, or Pattern Matching.
Why this skill is useful
Provides advanced Ruby and Rails patterns and practices that are not commonly known, enhancing the AI's ability to generate modern Ruby code.
What it needs
About 5k tokens when loaded. Last updated 2026-03-30. 41 stars on the source repository.
What this skill does
Ruby Expert Expert guidance for Ruby development, including Ruby 3+ features, Rails framework, testing with RSpec, and Ruby best practices. Core Concepts Ruby 3+ Features Pattern matching Ractors (parallel execution) Fibers (cooperative concurrency) Type signatures (RBS) Endless methods Numbered block parameters Hash literal value omission Object-Oriented Everything is an object Classes and modules Inheritance and mixins Method visibility (public, private, protected) Singleton methods and eigenclasses Duck typing Functional Features Blocks, procs, and lambdas Higher-order functions (map, reduce, select) Enumerables Lazy evaluation Modern Ruby Syntax Pattern Matching (Ruby 3.0+) Endless Methods Numbered Block Parameters Hash Literal Value Omission Testing with RSpec Model Specs Controller Specs Request Specs FactoryBot Metaprogramming Best Practices Code Style Follow Ruby Style Guide Use 2-space indentation Prefer symbols over strings for keys Use snakecase for methods and variables Use CamelCase for classes Use meaningful variable names Performance Use includes to avoid N+1 queries Add database indexes on foreign keys Use select to load only needed columns Use findeach for large datasets Cache expensive computations Security Use strong parameters in controllers Sanitize user input Protect against SQL injection (use parameterized queries) Use CSRF protection Implement authentication and authorization Keep dependencies updated Anti-Patterns to Avoid ❌ Fat models: Extract logic to service objects ❌ N+1 queries: Use includes or eagerload ❌ Long controller actions: Extract to services ❌ Missing indexes: Add indexes on foreign keys ❌ Skipping validations: Always validate data ❌ Exposing internals: Use serializers for API responses ❌ Global state: Avoid global variables and class variables Reference Documentation Detailed material lives alongside this skill and is read on demand: Ruby on Rails — Rails 7+ Application, Controllers, Active Record Queries, Background Jobs (Sid …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills personamanagmentlayer/ruby-expert