ruby-optimise

ruby-optimise is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 56 tokens per session (1,657 once invoked), scanned A, original, MIT.

A set of practical guidelines for making Ruby programs run faster and use less memory. It covers code, database queries, collections, strings, concurrency, and Ruby runtime settings.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring Ruby applications, gems, database queries, data-processing code, or production runtime settings.
Why use it?
It helps spot slow code, unnecessary object creation, inefficient database access, and memory pressure during development or review.

Skill for Claude CodeCodex

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

Good fit Use it when writing, reviewing, or refactoring Ruby applications, gems, database queries, data-processing code, or production runtime settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pproenca/dot-skills/ruby-optimise
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 pproenca/dot-skills --skill ruby-optimise
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

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-optimise

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pproenca/dot-skills/ruby-optimise"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/ruby-optimise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,657 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00056 $0.01657
Opus 5 $0.00028 $0.00829
Sonnet 5 $0.00011 $0.00331
Haiku 4.5 $0.00006 $0.00166

Measured 9d ago against content hash e4e5c27d14c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ruby-optimise 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 9d 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.

skills/.curated/ruby-optimise/SKILL.md · 114 lines

How it starts

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

Community Ruby Best Practices

Comprehensive performance optimization guide for Ruby applications, maintained by the community. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Ruby code or gems
  • Optimizing ActiveRecord queries and database access patterns
  • Processing large collections or building data pipelines
  • Reviewing code for memory bloat and GC pressure
  • Configuring Ruby runtime settings for production

Rule Categories by Priority

Priority Category Impact Prefix
1 Object Allocation CRITICAL alloc-
2 Collection & Enumeration CRITICAL enum-
3 I/O & Database HIGH io-
4 String Handling HIGH str-
5 Method & Dispatch MEDIUM-HIGH meth-
6 Data Structures MEDIUM ds-
7 Concurrency MEDIUM conc-
8 Runtime & Configuration LOW-MEDIUM runtime-

Quick Reference

1. Object Allocation (CRITICAL)

2. Collection & Enumeration (CRITICAL)

Read the full file on GitHub · 114 lines

Files

What ships with it

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

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. 9d ago First seen · 114 lines · 56 tokens per session scan A e4e5c27d14c2

Subscribe to this mod's changes

ruby-optimise is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 1,657 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

rspec-conventions

Rootstrap RSpec conventions. Use when writing, reviewing, or editing RSpec test files (spec//spec.rb, spec/railshelper.rb, spec/spechelper.rb, spec/support//.rb) or factories. Covers describe/context structure, let/subject, matchers, factories, mocking/stubbing, shared examples, and spec types (model, request…

rootstrap/rails_api_base · 82 tokens

ruby-patterns

Ruby/Rails: blocks, metaprogramming, ActiveRecord, Sidekiq, RSpec, Sorbet, Hanami. Triggers: Ruby, Rails, ActiveRecord, Sidekiq, RSpec, Gemfile, bundler, Hanami, Sorbet.

softspark/ai-toolkit · 60 tokens

ruby-rules

Ruby coding rules: style, patterns, security, testing. Triggers: .rb, Gemfile, .gemspec, Rails, ActiveRecord, Sidekiq, RSpec, Sorbet, rubocop.

softspark/ai-toolkit · 48 tokens

ruby-expert

Expert-level Ruby development with Rails, modern features, testing, and best practices. Use when the user mentions Ruby on Rails, RSpec, gem, Sinatra, or metaprogramming, or when the task involves Ruby 3+ Features, Object-Oriented, Functional Features, or Pattern Matching.

personamanagmentlayer/pcl · 64 tokens

activerecord

This skill should be used when the user asks to "write a migration", "add a column", "add column to table", "create an index", "add a foreign key", "set up associations", "fix N+1 queries", "optimize queries", "add validations", "create callbacks", "use eager loading", or mentions ActiveRecord, belongsto, hasmany…

hoblin/claude-ruby-marketplace · 180 tokens