Ruby
Ruby programming with blocks, metaprogramming, gems, and Rails conventions. Use for .rb files.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill rubyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 299 tokens by cl100k_base, as published. Nobody here has run it
Ruby
A dynamic, interpreted language known for its elegant syntax.
When to Use
- Web Development (Ruby on Rails)
- Scripting / Automation
- DevOps tools (Chef, Puppet)
- Prototyping
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_hi
Core Concepts
Everything is an Object
Numbers, strings, even nil are objects.
1.odd? # => true
Blocks & Iterators
Functional-style constructs for iteration.
[1, 2, 3].each do |n|
puts n * 2
end
Metaprogramming
Writing code that writes code (used heavily in Rails).
Best Practices
Do:
- Optimize for developer happiness (readability)
- Use standard style guide (RuboCop)
- Use blocks for resource management (
File.open)
Don't:
- Overuse monkey patching (modifying core classes)
- Write "Perl-ish" Ruby (keep it clean)
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.