Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills ruby-optimise| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
alloc-avoid-unnecessary-dupalloc-freeze-constantsalloc-lazy-initializationalloc-avoid-temp-arraysalloc-reuse-buffersalloc-avoid-implicit-conversionsenum-single-passenum-lazy-large-collectionsenum-flat-mapenum-each-with-objectenum-avoid-count-in-loopsenum-chunk-batch-processingio-eager-load-associationsio-select-only-needed-columnsio-batch-find-eachio-avoid-queries-in-loopsio-stream-large-filesio-connection-pool-sizingio-cache-expensive-queriesstr-frozen-literalsstr-shovel-over-plusstr-interpolation-over-concatenationstr-avoid-repeated-gsubstr-symbol-for-identifiersmeth-avoid-method-missing-hot-pathsmeth-cache-method-referencesmeth-block-vs-procmeth-avoid-dynamic-sendmeth-reduce-method-chain-depthds-set-for-membershipds-struct-over-openstructds-sort-by-over-sortds-array-preallocationds-hash-default-valueconc-fiber-for-ioconc-thread-pool-sizingconc-ractor-cpu-boundconc-avoid-shared-mutable-stateruntime-enable-yjitruntime-tune-gc-parametersruntime-frozen-string-literal-defaultruntime-optimize-require| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |