Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pproenca/dot-skills --skill ruby-optimisegit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/ruby-optimise)<a href="https://agentmods.dev/skills/pproenca/dot-skills/ruby-optimise"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/ruby-optimise/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/ruby-optimise"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/ruby-optimise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01657 |
| Opus 5 | $0.00028 | $0.00829 |
| Sonnet 5 | $0.00011 | $0.00331 |
| Haiku 4.5 | $0.00006 | $0.00166 |
Grade A, and why
ruby-optimise scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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)
alloc-avoid-unnecessary-dup- Avoid Unnecessary Object Duplicationalloc-freeze-constants- Freeze Constant Collectionsalloc-lazy-initialization- Use Lazy Initialization for Expensive Objectsalloc-avoid-temp-arrays- Avoid Temporary Array Creationalloc-reuse-buffers- Reuse Buffers in Loopsalloc-avoid-implicit-conversions- Avoid Repeated Computation in Hot Paths
2. Collection & Enumeration (CRITICAL)
enum-single-pass- Use Single-Pass Collection Transformsenum-lazy-large-collections- Use Lazy Enumerators for Large Collectionsenum-flat-map- Use flat_map Instead of map.flattenenum-each-with-object- Use each_with_object Over inject for Building Collectionsenum-avoid-count-in-loops- Avoid Recomputing Collection Size in Conditionsenum-chunk-batch-processing- Use each_slice for Batch Processing
What ships with it
47 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 9.3 KB
- assets/templates/_template.md 577 B
- metadata.json 1.2 KB
- README.md 4.3 KB
- references/_sections.md 2.0 KB
- references/alloc-avoid-implicit-conversions.md 2.1 KB
- references/alloc-avoid-temp-arrays.md 1.6 KB
- references/alloc-avoid-unnecessary-dup.md 1.4 KB
- references/alloc-freeze-constants.md 1.8 KB
- references/alloc-lazy-initialization.md 1.9 KB
- references/alloc-reuse-buffers.md 1.6 KB
- references/conc-avoid-shared-mutable-state.md 1.6 KB
- references/conc-fiber-for-io.md 1.5 KB
- references/conc-ractor-cpu-bound.md 2.1 KB
- references/conc-thread-pool-sizing.md 1.4 KB
- references/ds-array-preallocation.md 1.4 KB
- references/ds-hash-default-value.md 1.6 KB
- references/ds-set-for-membership.md 1.1 KB
- references/ds-sort-by-over-sort.md 1.3 KB
- references/ds-struct-over-openstruct.md 1.4 KB
- references/enum-avoid-count-in-loops.md 1.3 KB
- references/enum-chunk-batch-processing.md 1.4 KB
- references/enum-each-with-object.md 1.4 KB
- references/enum-flat-map.md 1010 B
- references/enum-lazy-large-collections.md 1.5 KB
- references/enum-single-pass.md 1.1 KB
- references/io-avoid-queries-in-loops.md 1.2 KB
- references/io-batch-find-each.md 1.1 KB
- references/io-cache-expensive-queries.md 1.7 KB
- references/io-connection-pool-sizing.md 1.3 KB
- references/io-eager-load-associations.md 1.3 KB
- references/io-select-only-needed-columns.md 1.2 KB
- references/io-stream-large-files.md 1.3 KB
- references/meth-avoid-dynamic-send.md 1.5 KB
- references/meth-avoid-method-missing-hot-paths.md 1.6 KB
- references/meth-block-vs-proc.md 1.5 KB
- references/meth-cache-method-references.md 1.1 KB
- references/meth-reduce-method-chain-depth.md 1.3 KB
- references/runtime-enable-yjit.md 1.3 KB
- references/runtime-frozen-string-literal-default.md 1.7 KB
- references/runtime-optimize-require.md 1.6 KB
- references/runtime-tune-gc-parameters.md 2.3 KB
- references/str-avoid-repeated-gsub.md 1.8 KB
- references/str-frozen-literals.md 1.9 KB
- references/str-interpolation-over-concatenation.md 1.5 KB
- references/str-shovel-over-plus.md 1.6 KB
- references/str-symbol-for-identifiers.md 1.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 114 lines · 56 tokens per session scan A e4e5c27d14c2
ruby-optimise is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 1,657 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
new
Create a new project to start development quickly.
rspec-conventions
Rootstrap RSpec conventions. Use when writing, reviewing, or editing RSpec test files (spec//spec.rb, spec/railshelper.rb, spec/spechelper.rb, spec/support//.rb) or factories. Covers describe/context structure, let/subject, matchers, factories, mocking/stubbing, shared examples, and spec types (model, request…
ruby-patterns
Ruby/Rails: blocks, metaprogramming, ActiveRecord, Sidekiq, RSpec, Sorbet, Hanami. Triggers: Ruby, Rails, ActiveRecord, Sidekiq, RSpec, Gemfile, bundler, Hanami, Sorbet.
ruby-rules
Ruby coding rules: style, patterns, security, testing. Triggers: .rb, Gemfile, .gemspec, Rails, ActiveRecord, Sidekiq, RSpec, Sorbet, rubocop.
ruby-expert
Expert-level Ruby development with Rails, modern features, testing, and best practices. Use when the user mentions Ruby on Rails, RSpec, gem, Sinatra, or metaprogramming, or when the task involves Ruby 3+ Features, Object-Oriented, Functional Features, or Pattern Matching.
activerecord
This skill should be used when the user asks to "write a migration", "add a column", "add column to table", "create an index", "add a foreign key", "set up associations", "fix N+1 queries", "optimize queries", "add validations", "create callbacks", "use eager loading", or mentions ActiveRecord, belongsto, hasmany…