rails-upgrade-7-to-8

rails-upgrade-7-to-8 is a skill for Claude Code, Codex from sandeepmvl/rails-skills. It costs 140 tokens per session (2,421 once invoked), scanned C, original, MIT.

A guide for moving a Ruby on Rails web app from version 7 to version 8. It covers the upgrade sequence and choices around background jobs, caching, live updates, assets, authentication, and deployment.

In plain words
What is it for?
Use it to upgrade Rails one minor version at a time, assess Solid Queue, Solid Cache, Solid Cable, and Propshaft, and plan a Kamal 2 deployment.
Why use it?
It helps separate the version upgrade from optional new defaults, reducing compatibility problems and making the change easier to test.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to upgrade Rails one minor version at a time, assess Solid Queue, Solid Cache, Solid Cable, and Propshaft, and plan a Kamal 2 deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8
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 sandeepmvl/rails-skills --skill 16-rails-upgrade-7-to-8
Clone the repo
git clone --depth 1 https://github.com/sandeepmvl/rails-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 rails-upgrade-7-to-8

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8/github.svg)](https://agentmods.dev/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8)
Your own site
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8/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.

agentmods 80×15 button for rails-upgrade-7-to-8

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00140 $0.02421
Opus 5 $0.00070 $0.01210
Sonnet 5 $0.00028 $0.00484
Haiku 4.5 $0.00014 $0.00242

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

Security

Grade C, and why

rails-upgrade-7-to-8 scanned grade C with 1 finding 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 12d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Spring / Bootsnap caches stale — `bin/spring stop` and `rm -rf tmp/cache/bootsnap`.
skills/16-rails-upgrade-7-to-8/SKILL.md · 215 lines

How it starts

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

Rails 7 → 8 Upgrade

Upgrade a Rails 7.x app to Rails 8.0. The hop is smaller than 6→7 but has real choices: Solid Queue vs your existing job backend, Propshaft vs Sprockets, the new authentication generator vs Devise. This skill walks the hop with the dual-boot pattern.

Why this matters

Rails 8 doesn't break much code. But the new defaults (Solid Queue, Solid Cache, Propshaft, Kamal 2) are adoptable — and "adopt all at once" is the wrong move. Stage the adoption.

The opinion

Dual-boot with next_rails. Hop 7.x → 7.1 → 7.2 → 8.0 (one minor at a time). Adopt Solid Queue / Cache / Cable only after the version is green — these aren't required by Rails 8, just the default for rails new. Keep Sprockets if you have a complex asset pipeline; migrate to Propshaft as a separate project. Skip the built-in bin/rails generate authentication if you have Devise.

Counter-position: a small app on Rails 7.x can do the upgrade in one PR. Dual-boot is for non-trivial apps where breaking master for a week is unacceptable.

The hop sequence

7.0 → 7.1 → 7.2 → 8.0

Three Rails minor versions. Never skip — rails app:update is per-version diff-aware.

Core patterns

Pattern 1: Set up dual-boot with next_rails

# Gemfile (outside any group)
gem "next_rails", "~> 1.6"

# Existing Rails 7.x:
gem "rails", "~> 7.2.0"
bundle install
bundle exec next --init  # generates Gemfile.next + Gemfile.next.lock
# Gemfile (after init) — next? is true under BUNDLE_GEMFILE=Gemfile.next
gem "rails", next? ? "~> 8.0.0" : "~> 7.2.0"
# ... continue for any gem with version-specific compatibility

Run on the next version:

BUNDLE_GEMFILE=Gemfile.next bin/rspec
BUNDLE_GEMFILE=Gemfile.next bin/rails server

CI runs both Gemfiles in parallel. When the next version is green, swap defaults.

Pattern 2: 7.x → 7.1 hop

Key changes:

  • Rails.error.report (the unified error API — see observability-baseline).
  • Async query API (load_async).
  • composed_of deprecated path; use Attributes API instead.
  • ActiveRecord::Base.with_connection (was with_connection).
  • Encrypted attributes get easier — encrypts :col is stable.

Read the full file on GitHub · 215 lines

Files

What ships with it

1 file 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.

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. 12d ago First seen · 215 lines · 140 tokens per session scan C fe6b7dbba563

Subscribe to this mod's changes

rails-upgrade-7-to-8 is a skill published in the GitHub repository sandeepmvl/rails-skills (21 stars, last pushed 3mo ago), licensed MIT. It adds 140 tokens to every session and 2,421 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

rubyllm

Build and maintain Ruby or Rails applications with the RubyLLM AI framework. Use for chats, agents, tools, structured output, media generation, transcription, OCR, moderation, embeddings, reranking, Rails integration, and RubyLLM upgrades; not for contributing to the framework itself.

crmne/ruby_llm · 61 tokens

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

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…

rootstrap/rails_api_base · 82 tokens

ruby-patterns

Ruby/Rails: blocks, metaprogramming, ActiveRecord, Sidekiq, RSpec, Sorbet, Hanami. Triggers: Ruby, Rails, ActiveRecord, Sidekiq, RSpec, Gemfile, bundler, Hanami, Sorbet.

softspark/ai-toolkit · 60 tokens

ruby-rules

Ruby coding rules: style, patterns, security, testing. Triggers: .rb, Gemfile, .gemspec, Rails, ActiveRecord, Sidekiq, RSpec, Sorbet, rubocop.

softspark/ai-toolkit · 48 tokens

simplify

Simplifies and refines Ruby on Rails code following 37signals patterns and the One Person Framework philosophy, while preserving exact functionality. Focuses on recently modified code unless instructed otherwise. Use this skill when simplifying or refactoring Rails code, reviewing recently written Rails code for…

maquina-app/rails-claude-code · 123 tokens