Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Optimize Ruby performance v1.0.0

Use this resource to optimize the performance of Ruby code or a gem

New

  • 328 downloads
  • 249 likes
  • 218 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install ruby-performance-optimization

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies 42 rules ranked by impact: fewer allocations, efficient collection processing, ActiveRecord queries and garbage collector pressure. You get Ruby code that uses less memory and runs faster.

Mostly picked by

Updated November 2, 2026

Card for the “Optimize Ruby performance” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rules by category, from allocations to configuration
  • references/alloc-freeze-constants.md: frozen constants; references/conc-fiber-for-io.md: fibers for I/O

Good fit for

  • Your Ruby application uses a lot of memory
  • A collection-processing job slows down on large inputs

Not for

    Tags

    • ruby
    • performance
    • memory
    • activerecord

    About

    You say

    “Find the unnecessary allocations in this Ruby job that processes large files.”

    Card for the “Optimize Ruby performance” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to optimize the performance of Ruby code or a gem
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md9.4 KB
    • assets/templates/_template.md0.6 KB
    • LICENSE1.1 KB
    • metadata.json1.2 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md4.5 KB
    • references/_sections.md2 KB
    • references/alloc-avoid-implicit-conversions.md2.2 KB
    • references/alloc-avoid-temp-arrays.md1.6 KB
    • references/alloc-avoid-unnecessary-dup.md1.5 KB
    • references/alloc-freeze-constants.md1.9 KB
    • references/alloc-lazy-initialization.md2 KB
    • references/alloc-reuse-buffers.md1.7 KB
    • references/conc-avoid-shared-mutable-state.md1.6 KB
    • references/conc-fiber-for-io.md1.6 KB
    • references/conc-ractor-cpu-bound.md2.2 KB
    • references/conc-thread-pool-sizing.md1.5 KB
    • references/ds-array-preallocation.md1.4 KB
    • references/ds-hash-default-value.md1.7 KB
    • references/ds-set-for-membership.md1.1 KB
    • references/ds-sort-by-over-sort.md1.3 KB
    • references/ds-struct-over-openstruct.md1.5 KB
    • references/enum-avoid-count-in-loops.md1.4 KB
    • references/enum-chunk-batch-processing.md1.4 KB
    • references/enum-each-with-object.md1.4 KB
    • references/enum-flat-map.md1 KB
    • references/enum-lazy-large-collections.md1.6 KB
    • references/enum-single-pass.md1.2 KB
    • references/io-avoid-queries-in-loops.md1.2 KB
    • references/io-batch-find-each.md1.1 KB
    • references/io-cache-expensive-queries.md1.8 KB
    • references/io-connection-pool-sizing.md1.3 KB
    • references/io-eager-load-associations.md1.4 KB
    • references/io-select-only-needed-columns.md1.2 KB
    • references/io-stream-large-files.md1.3 KB
    • references/meth-avoid-dynamic-send.md1.6 KB
    • references/meth-avoid-method-missing-hot-paths.md1.6 KB
    • references/meth-block-vs-proc.md1.6 KB
    • references/meth-cache-method-references.md1.1 KB
    • references/meth-reduce-method-chain-depth.md1.4 KB
    • references/runtime-enable-yjit.md1.3 KB
    • references/runtime-frozen-string-literal-default.md1.8 KB
    • references/runtime-optimize-require.md1.6 KB
    • references/runtime-tune-gc-parameters.md2.3 KB
    • references/str-avoid-repeated-gsub.md1.8 KB
    • references/str-frozen-literals.md1.9 KB
    • references/str-interpolation-over-concatenation.md1.5 KB
    • references/str-shovel-over-plus.md1.6 KB
    • references/str-symbol-for-identifiers.md1.7 KB
    • SKILL.md6.9 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.curated/ruby-optimise
    Licence
    MIT

    Notice

    « ruby-optimise » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.