Individual skill
ruby-optimise
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.
skills/.curated/ruby-optimise/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: codex
- writing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 9,561 bytesREADME.mddoc · 4,418 bytesSKILL.mdcore · 6,967 bytesassets/templates/_template.mddoc · 577 bytesmetadata.jsonasset · 1,228 bytesreferences/_sections.mddoc · 2,045 bytesreferences/alloc-avoid-implicit-conversions.mddoc · 2,133 bytesreferences/alloc-avoid-temp-arrays.mddoc · 1,616 bytesreferences/alloc-avoid-unnecessary-dup.mddoc · 1,445 bytesreferences/alloc-freeze-constants.mddoc · 1,873 bytesreferences/alloc-lazy-initialization.mddoc · 1,974 bytesreferences/alloc-reuse-buffers.mddoc · 1,677 bytesreferences/conc-avoid-shared-mutable-state.mddoc · 1,588 bytesreferences/conc-fiber-for-io.mddoc · 1,559 bytesreferences/conc-ractor-cpu-bound.mddoc · 2,174 bytesreferences/conc-thread-pool-sizing.mddoc · 1,461 bytesreferences/ds-array-preallocation.mddoc · 1,389 bytesreferences/ds-hash-default-value.mddoc · 1,676 bytesreferences/ds-set-for-membership.mddoc · 1,114 bytesreferences/ds-sort-by-over-sort.mddoc · 1,303 bytesreferences/ds-struct-over-openstruct.mddoc · 1,462 bytesreferences/enum-avoid-count-in-loops.mddoc · 1,346 bytesreferences/enum-chunk-batch-processing.mddoc · 1,386 bytesreferences/enum-each-with-object.mddoc · 1,413 bytesreferences/enum-flat-map.mddoc · 1,010 bytesreferences/enum-lazy-large-collections.mddoc · 1,548 bytesreferences/enum-single-pass.mddoc · 1,174 bytesreferences/io-avoid-queries-in-loops.mddoc · 1,224 bytesreferences/io-batch-find-each.mddoc · 1,082 bytesreferences/io-cache-expensive-queries.mddoc · 1,771 bytesreferences/io-connection-pool-sizing.mddoc · 1,314 bytesreferences/io-eager-load-associations.mddoc · 1,378 bytesreferences/io-select-only-needed-columns.mddoc · 1,211 bytesreferences/io-stream-large-files.mddoc · 1,282 bytesreferences/meth-avoid-dynamic-send.mddoc · 1,556 bytesreferences/meth-avoid-method-missing-hot-paths.mddoc · 1,626 bytesreferences/meth-block-vs-proc.mddoc · 1,553 bytesreferences/meth-cache-method-references.mddoc · 1,131 bytesreferences/meth-reduce-method-chain-depth.mddoc · 1,359 bytesreferences/runtime-enable-yjit.mddoc · 1,304 bytesreferences/runtime-frozen-string-literal-default.mddoc · 1,745 bytesreferences/runtime-optimize-require.mddoc · 1,633 bytesreferences/runtime-tune-gc-parameters.mddoc · 2,319 bytesreferences/str-avoid-repeated-gsub.mddoc · 1,809 bytesreferences/str-frozen-literals.mddoc · 1,899 bytesreferences/str-interpolation-over-concatenation.mddoc · 1,519 bytesreferences/str-shovel-over-plus.mddoc · 1,617 bytesreferences/str-symbol-for-identifiers.mddoc · 1,739 bytes
Read excerpt
# 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