Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/dhh-ruby-style
Write Ruby and Rails code in DHH's distinctive 37signals style.
Passed 23 of 25 test cases with the skill, and 10 of 25 without it.
and 13 more in the full report
13 fixed10 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
Show the syntax for iterating through a list of users to call `notify` on each user, and assigned variable logic for choosing between `@room.users` and `@message.mentionees` based on `@room.direct?`.
| Checked | Without skill | With skill |
|---|---|---|
| Expect single-line collection iteration to use curly braces rather than do-end blocks | Passed | Passed |
| Expect simple conditional branching assignments to use ternary operators | Missed | Passed |
The instructions your model reads when the skill loads.
Write Ruby and Rails code following DHH's philosophy: clarity over cleverness, convention over configuration, developer happiness above all.
index, show, new, create, edit, update, destroyclass MessagesController < ApplicationController
before_action :set_message, only: %i[ show edit update destroy ]
def index
@messages = @room.messages.with_creator.last_page
fresh_when @messages
end
def show
end
def create
@message = @room.messages.create_with_attachment!(message_params)
@message.broadcast_create
end
private
def set_message
@message = @room.messages.find(params[:id])
end
def message_params
params.require(:message).permit(:body, :attachment)
end
end
test cases passed, vs 10 / 25 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.