This skill should be used when the user asks to "create a decorator", "write a decorator", "move logic into decorator", "clean logic out of the view", "isn't it decorator logic", "test a decorator", or mentions Draper, keeping views clean, or representation logic in decorators. Should also be used when editing *_decorator.rb files, working in app/decorators/ directory, questioning where formatting methods belong (models vs decorators vs views), or discussing methods like full_name, formatted_*, display_* that don't belong in models. Provides guidance on Draper gem best practices for Rails applications.
$npx -y skills add hoblin/claude-ruby-marketplace --skill draper-decoratorsInstalls into the current project.
Run `npx skills use "https://github.com/hoblin/claude-ruby-marketplace" --skill "hoblin/claude-ruby-marketplace/draper-decorators"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hoblin/claude-ruby-marketplace" that are relevant to the current task. Run `npx skills add "https://github.com/hoblin/claude-ruby-marketplace"` and select the relevant skills, then follow their instructions.