Install any skill in seconds. Free to start, no credit card required.
Get Started Free →lingxling/ruby
Language-specific super-code guidelines for ruby.
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a Ruby method `active_user_names(users)` that takes an array of user objects (each responding to `active?` and `name`) and returns an array of uppercase names for all active users. Refactor from a manual `each` loop and array pushing.
| Checked | Without skill | With skill |
|---|---|---|
| Uses select with symbol-to-proc syntax | Passed | Passed |
| Uses map with symbol-to-proc syntax | Missed | Passed |
The instructions your model reads when the skill loads.
# ❌ Manual accumulation
result = []
items.each do |item|
result << item.name.upcase if item.active?
end
# ✅
result = items.select(&:active?).map { |i| i.name.upcase }
# ❌ Manual grouping
grouped = {}
items.each do |item|
grouped[item.category] ||= []
grouped[item.category] << item
end
# ✅
grouped = items.group_by(&:category)
test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.