Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add hoblin/claude-ruby-marketplace --skill draper-decoratorsgit clone --depth 1 https://github.com/hoblin/claude-ruby-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hoblin/claude-ruby-marketplace/draper-decorators)<a href="https://agentmods.dev/skills/hoblin/claude-ruby-marketplace/draper-decorators"><img src="https://agentmods.dev/badge/skills/hoblin/claude-ruby-marketplace/draper-decorators/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hoblin/claude-ruby-marketplace/draper-decorators"><img src="https://agentmods.dev/badge/skills/hoblin/claude-ruby-marketplace/draper-decorators.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00131 | $0.02045 |
| Opus 5 | $0.00066 | $0.01022 |
| Sonnet 5 | $0.00026 | $0.00409 |
| Haiku 4.5 | $0.00013 | $0.00204 |
Grade A, and why
draper-decorators scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Draper Decorators for Rails
This skill provides guidance for creating effective Draper decorators in Rails applications.
Philosophy
Decorators implement separation of concerns between business logic (models) and presentation logic (views). A decorator wraps a model to add view-specific methods without polluting the model.
What belongs in decorators:
- Date/time formatting (
created_at.strftime("%B %d, %Y")) - String concatenation (
"#{first_name} #{last_name}") - HTML generation (
h.content_tag(:span, status, class: css_class)) - Conditional rendering based on state
- Number formatting (currency, percentages)
- CSS class generation based on object state
What does NOT belong in decorators:
- Business logic (validations, calculations, state changes)
- Database queries (use includes in controllers)
- Anything not directly related to presentation
Basic Structure
# app/decorators/user_decorator.rb
class UserDecorator < ApplicationDecorator
delegate_all
def full_name
"#{first_name} #{last_name}"
end
def formatted_created_at
created_at.strftime("%B %d, %Y")
end
def status_badge
css_class = active? ? "badge-success" : "badge-secondary"
h.content_tag(:span, status, class: "badge #{css_class}")
end
end
Delegation Strategies
Option 1: delegate_all (Convenient)
Delegates all methods to the wrapped object via method_missing. Use for most decorators.
class ProductDecorator < ApplicationDecorator
delegate_all
def formatted_price
h.number_to_currency(price)
end
end
Option 2: Explicit Delegation (Strict)
Explicitly declare which methods to delegate. Use for larger apps where control matters.
class ProductDecorator < ApplicationDecorator
delegate :id, :name, :price, :created_at, :persisted?
def formatted_price
h.number_to_currency(price)
end
end
Accessing the Wrapped Object
Three equivalent ways to access the model:
class ArticleDecorator < ApplicationDecorator
delegate_all
def display_title
object.title.upcase # via 'object'
model.title.upcase # via 'model' (alias)
article.title.upcase # via model name (auto-generated)
end
end
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 354 lines · 131 tokens per session scan A af486f8691c1
draper-decorators is a skill published in the GitHub repository hoblin/claude-ruby-marketplace (37 stars, last pushed 2d ago), licensed MIT. It adds 131 tokens to every session and 2,045 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
rb:async-patterns
Implementing Ruby fiber concurrency: async gem, Falcon server, I/O-bound parallelism, fiber-safe locking.
rails-idioms
Rails framework idioms: controllers, beforeaction, callbacks, autoloading, jobs, routes. Triggers: "Rails way", "callback order", "autoload constant", "route helper". Do NOT use for: plain Ruby.
fastify-typescript
This skill should be used when using TypeScript with Fastify, configuring type providers, using @fastify/type-provider-typebox, using @fastify/type-provider-json-schema-to-ts, typing Fastify plugins, declaration merging for decorators, typing route handlers, FastifyInstance generics, FastifyRequest generics…
ruby-rails-patterns
Ruby 3.3+ / Rails 7-8 discipline — Sandi Metz rules (classes ≤ 100 LOC, methods ≤ 5 LOC, ≤ 4 args), frozenstringliteral mandatory, RuboCop at strict (cyclomatic ≤ 7, AbcSize ≤ 15), modern Ruby idioms (endless methods, pattern matching, hash shorthand, numbered block params), service objects + form objects + query…
new
Create a new project to start development quickly.
pinme-email
Use this skill when a PinMe project (Worker TypeScript) needs to integrate email sending (sendemail). Guides AI to generate correct Worker TS code.