language-ruby
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Ruby
Ruby 3.x syntax
- Use pattern matching for structural dispatch on hashes, arrays, and domain data; avoid using it as a verbose
if/elsif. - Prefer endless methods only for tiny, obvious expressions. Multi-step behavior deserves a normal
def. - Hash shorthand (
{name:, email:}) is clear when local names match keys; use explicit pairs when transformation happens. - Use Ractor for isolated parallelism only when its object-sharing constraints fit better than threads or processes.
case payload
in {type: "user_created", id:, email:}
create_user(id:, email:)
in {type: "user_deleted", id:}
delete_user(id)
else
raise ArgumentError, "unknown payload"
end