ruby

ruby is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (855 once invoked), scanned A, original, MIT.

Guidance for writing Ruby code using modern style, performance practices, and RSpec testing patterns. Ruby is a programming language, while RSpec is a tool for testing Ruby programs.

In plain words
What is it for?
Use it when designing Ruby classes, improving code performance, handling errors, working with collections, or writing RSpec tests.
Why use it?
It helps developers make Ruby code clearer, safer, and less wasteful. It also provides patterns for testing behaviour and avoiding common errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing Ruby classes, improving code performance, handling errors, working with collections, or writing RSpec tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresquirogadev/skillsense/ruby
Install

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.

Any agent
npx skills add andresquirogadev/skillsense --skill ruby
Clone the repo
git clone --depth 1 https://github.com/andresquirogadev/skillsense

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ruby

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresquirogadev/skillsense/ruby/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/ruby)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/ruby"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/ruby/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.

agentmods 80×15 button for ruby

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/ruby"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/ruby.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00855
Opus 5.5 $0.00000 $0.00342
Sonnet 5.5 $0.00000 $0.00171
Haiku 4.5 $0.00000 $0.00085

Measured 1mo ago against content hash 354d7a3d3e8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ruby 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 1mo 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.

packages/catalog/skills/ruby/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ruby

Expert Ruby development with modern idioms, performance patterns, and testing best practices.

Language & Style

  • Use frozen_string_literal: true at the top of every file to reduce object allocations
  • Prefer symbol.to_proc for simple enumerables: users.map(&:name) over users.map { |u| u.name }
  • Use keyword arguments for methods with 2+ optional params; avoids positional confusion
  • Avoid rescue Exception — rescue StandardError or specific subclasses only
  • Use Struct.new(:a, :b, keyword_init: true) for lightweight value objects
  • Prefer then / yield_self for pipeline-style transformations over deep nesting

Memory & Performance

  • Use lazy enumerators for large collections: (1..Float::INFINITY).lazy.select { ... }.first(10)
  • Avoid creating unnecessary strings in loops; use symbols where semantics allow
  • Use frozen_string_literal and String#dup only when mutation is needed
  • Profile with ruby-prof or stackprof before optimizing; don't guess

Testing with RSpec

# Describe behavior, not implementation
RSpec.describe Order do
  describe '#total' do
    subject(:order) { described_class.new(items: [item]) }
    let(:item) { build(:item, price: 9.99) }

    it 'sums item prices' do
      expect(order.total).to eq(9.99)
    end
  end
end
  • Use let for lazy setup, let! only when the side effect is required before the example
  • Prefer described_class over hardcoding the class name
  • Use FactoryBot factories for complex models; avoid fixtures
  • Use aggregate_failures to report all failures in one example rather than stopping at first

Sidekiq (Background Jobs)

class EmailWorker
  include Sidekiq::Job
  sidekiq_options retry: 3, queue: :mailers

  def perform(user_id)
    user = User.find(user_id)
    UserMailer.welcome(user).deliver_now
  end
end

# Enqueue
EmailWorker.perform_async(user.id)
EmailWorker.perform_in(5.minutes, user.id)
  • Always pass serializable primitives (IDs, strings) — never pass ActiveRecord objects
  • Set explicit retry counts per job; rely on exponential backoff for transient failures
  • Use Sidekiq::Testing.fake! in tests; assertions via EmailWorker.jobs.size

Read the full file on GitHub · 106 lines

Changes

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.

  1. 1mo ago First seen · 106 lines · 0 tokens per session scan A 354d7a3d3e8b

Subscribe to this mod's changes

ruby is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 855 tokens. 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-31.

Related

Other skills, from other repositories

rails-dev

Opinionated Rails conventions: rich models, concerns, CRUD-everything, state-as-records, minimal dependencies, Minitest with fixtures. Load this skill BEFORE any code-level thinking, not only before editing a file. It is required the moment a task touches Rails code in ANY way: designing or even just discussing a data…

tech-leads-club/agent-skills · 199 tokens

rails

For Agent: backend-developer.

FortiumPartners/ensemble · 8 tokens

dotnet

Use for .NET application development involving services, managers, dependency injection, Microsoft.Extensions.Hosting, dependency direction, MiniDb persistence, DTOs, Mapster mapping, shared entities/helpers, MCP tools, module workflows, solution analysis, cancellation, logging, and logic shared by CLI and Blazor.

AterDev/Perigon.CLI · 61 tokens

blazor

Use for Blazor Server development with Fluent UI Blazor, Razor components, layouts, pages, scoped UI services, culture switching, localization, forms, loading/empty/error states, and Studio-style dashboard workflows.

AterDev/Perigon.CLI · 45 tokens

cli

Use for .NET command-line tool development with Spectre.Console/Spectre.Console.Cli, Microsoft.Extensions.Hosting, dependency injection, localized help text, command settings, aliases, examples, terminal output, exit codes, and stdio-safe command paths.

AterDev/Perigon.CLI · 52 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens