ruby-optimise

v2026.09.24

Ruby performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Ruby code to ensure optimal performance patterns. Triggers on tasks involving object allocation, collection processing, ActiveRecord queries, string handling, concurrency, or Ruby runtime configuration.

GitHub
安装命令
npx skhub add pproenca/ruby-optimise
Markdown
SKILL.md

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)

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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/ruby-optimise

默认分支

master

最新提交

cf93c57

Tree SHA

afbb575