Skillshub ruby-optimise

Community Ruby Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/ruby-optimise" ~/.claude/skills/comeonoliver-skillshub-ruby-optimise && rm -rf "$T"
manifest: skills/pproenca/dot-skills/ruby-optimise/SKILL.md
source content

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 AllocationCRITICAL
alloc-
2Collection & EnumerationCRITICAL
enum-
3I/O & DatabaseHIGH
io-
4String HandlingHIGH
str-
5Method & DispatchMEDIUM-HIGH
meth-
6Data StructuresMEDIUM
ds-
7ConcurrencyMEDIUM
conc-
8Runtime & ConfigurationLOW-MEDIUM
runtime-

Quick Reference

1. Object Allocation (CRITICAL)

2. Collection & Enumeration (CRITICAL)

3. I/O & Database (HIGH)

4. String Handling (HIGH)

5. Method & Dispatch (MEDIUM-HIGH)

6. Data Structures (MEDIUM)

7. Concurrency (MEDIUM)

8. Runtime & Configuration (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information