Ruby optimise

From pproenca/dot-skills · View interactive version

Ruby optimise is an AI agent skill from the GitHub repository pproenca/dot-skills. 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 conf

How to use this skill

Skill file

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:

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)

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

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.