pproenca avatar

Ruby Optimise

This is a comprehensive performance optimization reference for Ruby with 42 rules across 8 categories, from object allocation and ActiveRecord queries to string handling and runtime configuration. Each rule is prioritized by impact and prefixed for quick lookup, making it practical for code reviews or refactoring sessions. The organization is solid: CRITICAL priorities cover allocation patterns and collection processing where Ruby apps typically bleed memory, while lower tiers handle concurrency and GC tuning. What's useful here is the specificity. Instead of vague advice, you get targeted rules like using find_each for large record sets or enabling YJIT in production, each with its own reference file for examples and context.

skills.sh installs
286
GitHub stars
222
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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)

Sponsors

Details

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

More from pproenca/dot-skills

All 100
1rstackjs avatarrspack-tracingrstackjs/agent-skillsComprehensive guide and toolkit for diagnosing Rspack build issues. Quickly identify where crashes/errors occur, or perform detailed performance profiling to re286skills.sh installs
2gohypergiant avataraccelint-react-testinggohypergiant/agent-skillsUse when writing, reviewing, or refactoring React component tests with Testing Library. Load when you see render(), screen, fireEvent, userEvent, waitFor, or *.282skills.sh installs
3sergiodxa avatarruby-on-rails-best-practicessergiodxa/agent-skillsRuby on Rails architecture and coding patterns from Basecamp. Use when writing, reviewing, or refactoring Rails code to follow proven conventions for models, co282skills.sh installs
4pproenca avatarios-testingpproenca/dot-skillsTesting practices for iOS 26 / Swift 6.2 clinic modular MVVM-C applications. Covers unit/UI/snapshot testing, protocol-based mocks, async actor isolation, and d281skills.sh installs
5secondsky avatarsveltia-cmssecondsky/claude-skillsSveltia CMS Git-backed content management (Decap/Netlify CMS successor). 5x smaller bundle (300 KB), GraphQL performance, solves 260+ issues. Use for static sit277skills.sh installs
6pedronauck avatarcreating-specpedronauck/skillsCreate comprehensive technical specs for SDK gaps, feature modules, or system centralization efforts. Use when writing specs, PRDs, gap analysis documents, or p274skills.sh installs