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 sandeepmvl/rails-skills --skill 16-rails-upgrade-7-to-8git clone --depth 1 https://github.com/sandeepmvl/rails-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/sandeepmvl/rails-skills/16-rails-upgrade-7-to-8)<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.
<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>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.00140 | $0.02421 |
| Opus 5 | $0.00070 | $0.01210 |
| Sonnet 5 | $0.00028 | $0.00484 |
| Haiku 4.5 | $0.00014 | $0.00242 |
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`. 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 forrails new. Keep Sprockets if you have a complex asset pipeline; migrate to Propshaft as a separate project. Skip the built-inbin/rails generate authenticationif 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 — seeobservability-baseline).- Async query API (
load_async). composed_ofdeprecated path; use Attributes API instead.ActiveRecord::Base.with_connection(waswith_connection).- Encrypted attributes get easier —
encrypts :colis stable.
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.
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.
- 12d ago First seen · 215 lines · 140 tokens per session scan C fe6b7dbba563
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.
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.
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.
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…