ruby-optimise

📁 pproenca/dot-skills 📅 1 day ago
28
总安装量
2
周安装量
#13365
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill ruby-optimise

Agent 安装分布

amp 2
opencode 2
kimi-cli 2
codex 2
claude-code 2

Skill 文档

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

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