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

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.

agentmods
npx agentmods add skills/andresquirogadev/skillsense/ruby
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00000 $0.00855
Opus 5 $0.00000 $0.00428
Sonnet 5 $0.00000 $0.00171
Haiku 4.5 $0.00000 $0.00085

Measured 3d ago against content hash 354d7a3d3e8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 4mo 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

paseo-plugin

Build and manage trusted local Paseo plugins. Use when the user asks to create, edit, install, reload, enable, disable, remove, or troubleshoot a Paseo plugin; add a native surface, sidebar item, or workspace panel; add Command Center items or slash commands; add composer pills or attachment sources; transform…

getpaseo/paseo · 95 tokens

paseo

Paseo reference for managing projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

getpaseo/paseo · 26 tokens

paseo-help

Answer questions about the Paseo product and app, including setup, configuration, connectivity, providers, workspaces, updates, logs, and troubleshooting. Use when a user inside Paseo asks how Paseo works, how to configure it, or why something is broken; use the paseo skill instead to operate agents and workspaces…

getpaseo/paseo · 75 tokens

paseo-advisor

Spin up a single agent as an advisor — second opinion on the current task. Use when the user says "advisor", "second opinion", "what does X think", or wants an outside take without delegating the work itself.

getpaseo/paseo · 52 tokens

paseo-handoff

Hand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another agent.

getpaseo/paseo · 45 tokens

paseo-committee

Form a committee of two high-reasoning agents to step back, do root cause analysis, and produce a plan. Use when stuck, looping, tunnel-visioning, or facing a hard planning problem.

getpaseo/paseo · 48 tokens