Skip to content
pproenca avatar

Ruby Optimise

Ruby performance rules across 8 categories covering allocation, collections, I/O, strings, and runtime tuning.

CCM score
42 of 100
skills.sh installs
296
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 42 rules ordered by impact, from CRITICAL object allocation and collection work down to LOW-MEDIUM runtime settings
  • Includes rule files for ActiveRecord eager loading, find_each batching, Set membership tests, Struct over OpenStruct, and YJIT configuration
  • Guides code writing, review, and refactoring toward patterns like frozen string literals, flat_map over map.flatten, and avoiding queries inside loops
  • Designed for Ruby and Rails teams that want automated refactoring or code generation to follow community performance practices

Install

$ npx -y skills add pproenca/dot-skills --skill ruby-optimise -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

PriorityCategoryImpactPrefix
1Object AllocationCRITICALalloc-
2Collection & EnumerationCRITICALenum-
3I/O & DatabaseHIGHio-
4String HandlingHIGHstr-
5Method & DispatchMEDIUM-HIGHmeth-
6Data StructuresMEDIUMds-
7ConcurrencyMEDIUMconc-
8Runtime & ConfigurationLOW-MEDIUMruntime-

Quick Reference

1. Object Allocation (CRITICAL)

Details

Repository
github.com/pproenca/dot-skills
Categories
Code Review & Quality, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the ruby-optimise skill do?

ruby-optimise gives an agent Ruby performance optimization guidelines covering 42 rules across 8 categories, including object allocation, collection processing, ActiveRecord queries, string handling, concurrency and runtime configuration. It is meant for writing, reviewing or refactoring Ruby code so that it follows optimal performance patterns.

How do I install the ruby-optimise skill?

Run npx -y skills add pproenca/dot-skills --skill ruby-optimise -y inside your project to install ruby-optimise. Once installed, the agent can apply its Ruby performance rules when it writes or reviews code in that project.

Which skills does ruby-optimise sit alongside in Code Review & Quality?

ruby-optimise is listed in the Code Review & Quality category on Claude Marketplaces. Its rules focus on performance patterns such as allocation, enumeration and ActiveRecord access, which set it apart from general review skills.

More from pproenca/dot-skills

All 100

Similar to Ruby Optimise

More Code Review & Quality