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.02459 |
| Opus 5.5 | $0.00056 | $0.00984 |
| Sonnet 5.5 | $0.00028 | $0.00492 |
| Haiku 4.5 | $0.00014 | $0.00246 |
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 2mo 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.7"
# 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.
- 2mo ago Changed 42b9bd6dc1f1
- 3mo 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 (22 stars, last pushed 2mo ago), licensed MIT. It adds 140 tokens to every session and 2,459 once invoked, about $0.0006 per session on Opus 5.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.
rails-upgrade-7-to-8 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rails-upgrade-7-to-8sandeepmvl/rails-skills | Skill | 22 | 2mo ago | MIT | C | 140 | Claude Code, Codex |
| newclacky-ai/openclacky | Skill | 1.2k | yesterday | MIT | A | 10 | Claude Code |
| dhh-rails-styledavekilleen/Dex | Skill | 522 | 2d ago | MIT | A | 115 | Claude Code |
| rspec-conventionsrootstrap/rails_api_base | Skill | 635 | 19d ago | MIT | A | 82 | Claude Code |
| ruby-patternssoftspark/ai-toolkit | Skill | 180 | today | Apache-2.0 | A | 60 | Claude Code |
| rigor-rbs-contractrigortype/rigor | Skill | 108 | yesterday | MPL-2.0 | A | 95 | Claude Code, Codex |
| ruby-rulessoftspark/ai-toolkit | Skill | 180 | today | Apache-2.0 | A | 48 | Claude Code |