rails-load-defaults

rails-load-defaults is a skill for Claude Code from ombulabs/claude-code_rails-load-defaults-skill. It costs 120 tokens per session (2,103 once invoked), scanned A, original, MIT.

A guided upgrade process for a Ruby on Rails app’s default settings. It moves the app from older framework defaults to the defaults for its Rails version, one setting at a time.

In plain words
What is it for?
Checking the current `config.load_defaults` version, preparing the next framework-defaults file, reviewing each setting, and moving the accepted settings into the main application configuration.
Why use it?
Rails changes default behavior between versions, and changing everything at once can make failures hard to trace. This breaks the upgrade into changes that can be tested separately.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rails-load-defaults plugin — 1 skill shipped together

Good fit Checking the current config.load_defaults version, preparing the next framework-defaults file, reviewing each setting, and moving the accepted settings into the main application configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ombulabs/claude-code_rails-load-defaults-skill/rails-load-defaults
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.

Any agent
npx skills add ombulabs/claude-code_rails-load-defaults-skill --skill rails-load-defaults
Clone the repo
git clone --depth 1 https://github.com/ombulabs/claude-code_rails-load-defaults-skill

Made for: Claude Code.

Or install rails-load-defaults, the plugin that ships this one along with the rest of its 1 skill.

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 rails-load-defaults

README.md
[![agentmods](https://agentmods.dev/badge/skills/ombulabs/claude-code_rails-load-defaults-skill/rails-load-defaults.svg)](https://agentmods.dev/skills/ombulabs/claude-code_rails-load-defaults-skill/rails-load-defaults)
Your own site
<a href="https://agentmods.dev/skills/ombulabs/claude-code_rails-load-defaults-skill/rails-load-defaults"><img src="https://agentmods.dev/badge/skills/ombulabs/claude-code_rails-load-defaults-skill/rails-load-defaults.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,103 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 82
    Subtle instructions detected that may alter agent decision-making or introduce hidden biases.
    Fix: Review content for implicit steering or bias. Ensure instructions are explicit and align with the skill's stated purpose.
How audits are shown
Origin original 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.1 $0.00120 $0.02103
Opus 5 $0.00060 $0.01052
Sonnet 5 $0.00024 $0.00421
Haiku 4.5 $0.00012 $0.00210

Measured 8d ago against content hash 6ec1d57f7669, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rails-load-defaults 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 8d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (templates/cookie_rotator.rb, templates/new_framework_defaults_5_0.rb, templates/new_framework_defaults_5_1.rb, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

rails-load-defaults/SKILL.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rails load_defaults Upgrade Skill

This skill guides the incremental upgrade of config.load_defaults in a Rails application. The process walks through each config introduced in a new Rails version, one at a time, so the user can test each change in isolation.

Overview

When a Rails app has a load_defaults version lower than its Rails version, there are framework default configs that need to be adopted. This skill:

  1. Detects the current load_defaults version
  2. Determines the next target version
  3. Generates the new_framework_defaults_X_Y.rb initializer with all configs commented
  4. Walks through each config one by one, analyzing the codebase to recommend values
  5. Waits for the user to test/commit each change before moving to the next
  6. Consolidates into config/application.rb when all configs are done

Step 1: Detect Current State

Read config/application.rb and look for:

config.load_defaults X.Y

Also check if a config/initializers/new_framework_defaults_*.rb file already exists (the user may be mid-upgrade).

Report to the user:

  • Current load_defaults version
  • Current Rails version (from Gemfile.lock)
  • Which version transitions are needed (e.g., 6.1 → 7.0 → 7.1 → 7.2)

Step 2: Load Version Config Reference

Read the appropriate config reference file for the target version:

  • 5.0: configs/5_0.yml
  • 5.1: configs/5_1.yml
  • 5.2: configs/5_2.yml
  • 6.0: configs/6_0.yml
  • 6.1: configs/6_1.yml
  • 7.0: configs/7_0.yml
  • 7.1: configs/7_1.yml
  • 7.2: configs/7_2.yml
  • 8.0: configs/8_0.yml
  • 8.1: configs/8_1.yml

Each config file contains entries organized into tiers with lookup patterns and decision trees for each config.

Step 3: Create the Initializer File

If no new_framework_defaults_X_Y.rb exists yet, copy the template from the templates/ directory into the app's config/initializers/:

  • 5.0: Copy templates/new_framework_defaults_5_0.rbconfig/initializers/new_framework_defaults_5_0.rb
  • 5.1: Copy templates/new_framework_defaults_5_1.rbconfig/initializers/new_framework_defaults_5_1.rb
  • 5.2: Copy templates/new_framework_defaults_5_2.rbconfig/initializers/new_framework_defaults_5_2.rb
  • 6.0: Copy templates/new_framework_defaults_6_0.rbconfig/initializers/new_framework_defaults_6_0.rb
  • 6.1: Copy templates/new_framework_defaults_6_1.rbconfig/initializers/new_framework_defaults_6_1.rb
  • 7.0: Copy templates/new_framework_defaults_7_0.rbconfig/initializers/new_framework_defaults_7_0.rb
  • 7.1: Copy templates/new_framework_defaults_7_1.rbconfig/initializers/new_framework_defaults_7_1.rb
  • 7.2: Copy templates/new_framework_defaults_7_2.rbconfig/initializers/new_framework_defaults_7_2.rb
  • 8.0: Copy templates/new_framework_defaults_8_0.rbconfig/initializers/new_framework_defaults_8_0.rb
  • 8.1: Copy templates/new_framework_defaults_8_1.rbconfig/initializers/new_framework_defaults_8_1.rb

Read the full file on GitHub · 213 lines

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. 8d ago First seen · 213 lines · 120 tokens per session scan A 6ec1d57f7669

Subscribe to this mod's changes

rails-load-defaults is a skill published in the GitHub repository ombulabs/claude-code_rails-load-defaults-skill (17 stars, last pushed 18d ago), licensed MIT. It adds 120 tokens to every session and 2,103 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

dual-boot

Sets up and manages dual-boot Ruby and Rails environments using the nextrails gem. Helps configure Gemfile for running two versions of Rails, Ruby, or any core dependency simultaneously, set up CI for both versions, use NextRails.next? for version-dependent code, and clean up after the upgrade is complete. Based on…

ombulabs/claude-code_dual-boot-skill · 84 tokens

rails-api-controllers

RESTful API controller patterns for Ruby on Rails. Use when: (1) Building JSON APIs, (2) API versioning, (3) Error handling and status codes, (4) Authentication with tokens/JWT, (5) Rate limiting, (6) CORS configuration, (7) Pagination and filtering, (8) API documentation, (9) Testing API endpoints.

Shoebtamboli/rails_claude_skills · 82 tokens

rails-mailers

Use when sending emails - ActionMailer with async delivery via SolidQueue, templates, previews, and testing.

Shoebtamboli/rails_claude_skills · 24 tokens

rails-pagination-kaminari

Pagination for Ruby on Rails applications using Kaminari. Use when: (1) Implementing pagination for database records, (2) Building paginated API endpoints, (3) Customizing pagination UI with themes, (4) Handling large datasets efficiently, (5) Creating infinite scroll, (6) Paginating arrays or custom collections, (7)…

Shoebtamboli/rails_claude_skills · 89 tokens

rails-controllers

Controller actions, routing, REST conventions, filters, and response handling.

Shoebtamboli/rails_claude_skills · 17 tokens

rails-auth-with-devise

Complete authentication setup for Ruby on Rails applications using Devise. Use when: (1) Setting up user authentication in a Rails app, (2) Adding sign in/sign up/sign out functionality, (3) Implementing email confirmation, password recovery, or account locking, (4) Configuring OmniAuth social login, (5) Adding…

Shoebtamboli/rails_claude_skills · 110 tokens