← ClaudeAtlas

sota-rubylisted

State-of-the-art Ruby engineering rules (2026 baseline, Ruby 3.4+ / 4.0) that Claude applies when writing or auditing Ruby. Covers modern idioms (frozen string literals, pattern matching, Data/Struct, RBS/Sorbet/Steep typing), security (SQL injection via ActiveRecord/Sequel, ERB/XSS escaping, mass assignment, CSRF, Marshal/YAML deserialization, command injection, ReDoS), framework-neutral web hardening (Rails/Sinatra/Hanami as neutral examples), supply chain and tooling (Bundler lockfile and checksums, bundler-audit, RuboCop/StandardRB, Brakeman, RSpec/Minitest, CI gates), and concurrency/performance (GVL, threads vs fibers vs Ractors, background-job idempotency, YJIT/ZJIT, GC and memory, N+1 queries). Trigger keywords: Ruby, gem, Gemfile, bundler, Rails, Sinatra, Hanami, Rack, ERB, ActiveRecord, Sequel, RSpec, minitest, RuboCop, Sorbet, RBS, Sidekiq, YJIT, Ractor, rake, ruby-lang. Use for BOTH building Ruby services/gems/CLIs and reviewing or auditing Ruby codebases.
martinholovsky/SOTA-skills · ★ 8 · AI & Automation · score 75
Install: claude install-skill martinholovsky/SOTA-skills
# SOTA Ruby (2026) Expert-level rules for producing and auditing production Ruby. Baseline language line: **Ruby 3.4+**, with Ruby 4.0 (released 2025-12-25) as the latest major line. Per the [official branches page](https://www.ruby-lang.org/en/downloads/branches/): 4.0 and 3.4 are in normal maintenance; 3.3 is security-maintenance only (expected EOL 2027-03); 3.2 and older are EOL (3.2 since 2026-04-01) — running them is itself a finding. Feature notes: `Data.define` and `Regexp.timeout` from 3.2, `it` block parameter and chilled-string warnings from 3.4, `Ractor::Port` and experimental ZJIT from 4.0 — noted where relevant. Every rules file ends with an audit checklist of grep/lint patterns. ## Purpose Two consumers, one source of truth: - **BUILD mode** — generating new Ruby code: follow the rules as defaults, not suggestions. Deviate only with an explicit comment justifying it. - **AUDIT mode** — reviewing existing Ruby code: hunt violations using the audit checklists, classify by severity, report in the finding format below. ## BUILD mode 1. Before writing code, read the rules files relevant to the task (see index). A web endpoint touching the DB and a background job needs `02`, `03`, `05`. 2. Apply the **top-10 non-negotiables** (below) unconditionally. 3. Establish context first: `.ruby-version`, `Gemfile`/`Gemfile.lock`, RuboCop or StandardRB config, framework and test runner in use. Match the project's floor (no `it` block param on a 3.3 project). 4