Ruby Patterns

Ruby Patterns is a skill for Claude Code, Codex from AmariahAK/atlarix-skills. It costs 2 tokens per session (379 once invoked), scanned A, original, Apache-2.0.

Use this skill when working in Ruby projects (Rails or otherwise) and you want clean object boundaries, predictable dependency management, and maintainable code organization.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/amariahak/atlarix-skills/ruby
Any agent
npx skills add AmariahAK/atlarix-skills --skill ruby
Clone the repo
git clone --depth 1 https://github.com/AmariahAK/atlarix-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for Ruby Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/ruby.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/ruby)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/ruby"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/ruby.svg" alt="Measured on agentmods" height="20"></a>
Per session 2 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00002 $0.00379
Opus 5 $0.00001 $0.00189
Sonnet 5 $0.00000 $0.00076
Haiku 4.5 $0.00000 $0.00038

Measured today against content hash 756b00e87bb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Ruby Patterns 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 today.

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.

skills/ruby/SKILL.md · 56 lines

What it actually says

Ruby Patterns

When to use this skill

Use this skill when working in Ruby projects (Rails or otherwise) and you want clean object boundaries, predictable dependency management, and maintainable code organization.

Core patterns

Keep objects small and focused

  • prefer small classes and modules
  • keep methods short and intention-revealing

Dependency management with Bundler

  • Gemfile describes dependencies
  • Gemfile.lock pins versions (commit it)
  • avoid unpinned production dependencies

Error handling

  • raise exceptions with context
  • don’t rescue broadly unless you rethrow or return a clear failure

Testing

  • unit tests for pure logic
  • integration tests for DB/wiring
  • keep fixtures small and readable

Rails notes (if applicable)

  • controllers: thin
  • models: avoid fat models; extract domain services when logic grows
  • background jobs: idempotent and retry-safe

Atlarix tool notes

  • Explore: locate Gemfile, config/routes.rb, and entry points.
  • Build: run bundle install and the project’s test suite.
  • Debug: follow stack traces; identify boundary errors.
  • Review: check for security issues (SQL injection, params handling) and N+1 queries.

Common mistakes to avoid

  • Fat controllers + fat models
  • Rescue-everything blocks that hide failures
  • Not committing Gemfile.lock

Mini-checklist

  • Dependencies pinned
  • Layers are clear
  • Tests cover behavior
Changes

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.

  1. today First seen · 56 lines · 2 tokens per session scan A 756b00e87bb4

Subscribe to this mod's changes

Ruby Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 2 tokens to every session and 379 once invoked, about $0.0000 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-09-03.

Related

Other skills, from other repositories

ruby

Ruby programming language — syntax, core types, OOP, blocks/procs/lambdas, exceptions, I/O, concurrency, metaprogramming, gems, testing, style guide, C extensions, and tooling.

pledgeandgrow/pledge-skills · 45 tokens

ruby_expert

Ruby and Rails specialist. Productive, idiomatic web development with a focus on developer happiness.

ApexIQ/skillsmith · 23 tokens

ruby-gc

Audit asdf-installed Ruby versions against project pins and remove unreferenced ones. Dry-run by default.

joshukraine/dotfiles · 25 tokens

ruby-rails

Use this skill when building Ruby on Rails applications — MVC, ActiveRecord, service objects, API mode, background jobs, and testing. This skill enforces: thin controllers, service objects for business logic, ActiveRecord query best practices, Rails API mode conventions, and RSpec testing patterns. Requires Rails 7+…

j4flmao/agent-skills · 94 tokens

rails-audit-thoughtbot

Perform comprehensive code audits of Ruby on Rails applications based on thoughtbot best practices. Use this skill when the user requests a code audit, code review, quality assessment, or analysis of a Rails application. The skill analyzes the entire codebase focusing on testing practices (RSpec), security…

thoughtbot/rails-audit-thoughtbot · 130 tokens

rails-load-defaults

Incrementally upgrade Rails config.loaddefaults by walking through each newframeworkdefaults config one at a time. Use this skill whenever the user mentions loaddefaults upgrade, newframeworkdefaults, framework defaults, or wants to bring their Rails app's default configuration up to match their Rails version. Also…

ombulabs/claude-code_rails-load-defaults-skill · 120 tokens