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.

Ruby refactoring practices v1.0.0

Use this resource to refactor Ruby code to improve its design

New

  • 464 downloads
  • 172 likes
  • 138 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install ruby-refactoring-practices

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 45 rules to decompose methods, simplify conditionals with guard clauses or pattern matching and reduce coupling. You get Ruby code that is more readable and better structured.

Mostly picked by

Updated November 2, 2026

Card for the “Ruby refactoring practices” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rules by category, from structure to naming
  • references/cond-guard-clauses.md: guard clauses; references/cond-pattern-matching.md: pattern matching

Good fit for

  • A hundred-line Ruby method needs splitting
  • Nested conditions hide the business logic

Not for

    Tags

    • ruby
    • refactoring
    • conditionals
    • design

    About

    You say

    “Refactor this Ruby class to separate billing logic from persistence.”

    Card for the “Ruby refactoring practices” 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 refactor Ruby code to improve its design
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md9.1 KB
    • assets/templates/_template.md0.6 KB
    • LICENSE1.1 KB
    • metadata.json1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md4.6 KB
    • references/_sections.md2.1 KB
    • references/cond-consolidate-duplicates.md2.3 KB
    • references/cond-decompose-conditional.md1.7 KB
    • references/cond-guard-clauses.md1.9 KB
    • references/cond-null-object.md2 KB
    • references/cond-pattern-matching.md2.2 KB
    • references/cond-replace-with-polymorphism.md2.7 KB
    • references/couple-avoid-class-methods-domain.md1.8 KB
    • references/couple-composition-over-inheritance.md2 KB
    • references/couple-dependency-injection.md1.6 KB
    • references/couple-feature-envy.md1.6 KB
    • references/couple-law-of-demeter.md1.7 KB
    • references/couple-tell-dont-ask.md1.5 KB
    • references/data-define-immutable.md2.1 KB
    • references/data-encapsulate-collection.md2 KB
    • references/data-replace-data-clump.md2.4 KB
    • references/data-separate-query-command.md2.1 KB
    • references/data-value-object.md2.4 KB
    • references/idiom-block-yield.md1.6 KB
    • references/idiom-duck-typing.md1.8 KB
    • references/idiom-implicit-return.md1.9 KB
    • references/idiom-keyword-arguments.md1.4 KB
    • references/idiom-predicate-methods.md1.4 KB
    • references/idiom-prefer-enumerable.md1.6 KB
    • references/idiom-respond-to-missing.md1.8 KB
    • references/modern-deconstruct-keys.md2.3 KB
    • references/modern-endless-methods.md1.7 KB
    • references/modern-hash-pattern-guard.md2.2 KB
    • references/modern-pattern-matching.md1.8 KB
    • references/modern-rightward-assignment.md2.1 KB
    • references/name-avoid-abbreviations.md2.2 KB
    • references/name-consistent-vocabulary.md1.9 KB
    • references/name-intention-revealing.md1.7 KB
    • references/name-rename-to-remove-comments.md1.5 KB
    • references/pattern-decorator.md2.3 KB
    • references/pattern-factory.md1.8 KB
    • references/pattern-null-object-protocol.md2.2 KB
    • references/pattern-strategy.md2.3 KB
    • references/pattern-template-method.md2.7 KB
    • references/struct-compose-method.md3.1 KB
    • references/struct-extract-class.md2.2 KB
    • references/struct-extract-method.md3.2 KB
    • references/struct-flatten-deep-nesting.md3 KB
    • references/struct-parameter-object.md3.2 KB
    • references/struct-replace-method-with-object.md3.3 KB
    • references/struct-single-responsibility.md2.7 KB
    • SKILL.md7.5 KB

    Origin and licence

    Listed unmodified

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

    Notice

    « ruby-refactor » (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.