dual-boot

dual-boot is a skill for Claude Code from ombulabs/claude-code_dual-boot-skill. It costs 84 tokens per session (2,541 once invoked), scanned A, original, MIT.

A setup guide for running two versions of Ruby, Rails or another important Gemfile dependency in the same application. This approach is called dual-booting and is often used during upgrades.

In plain words
What is it for?
Use it to configure the Gemfile, run tests against both versions, add version-specific code checks, set up CI for both environments, and remove the temporary setup after the upgrade.
Why use it?
It lets a team test the current and newer dependency versions side by side before completing an upgrade.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the dual-boot plugin — 1 skill shipped together

Good fit Use it to configure the Gemfile, run tests against both versions, add…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ombulabs/claude-code_dual-boot-skill/dual-boot
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_dual-boot-skill --skill dual-boot
Clone the repo
git clone --depth 1 https://github.com/ombulabs/claude-code_dual-boot-skill

Made for: Claude Code.

Or install dual-boot, 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 dual-boot

README.md
[![agentmods](https://agentmods.dev/badge/skills/ombulabs/claude-code_dual-boot-skill/dual-boot.svg)](https://agentmods.dev/skills/ombulabs/claude-code_dual-boot-skill/dual-boot)
Your own site
<a href="https://agentmods.dev/skills/ombulabs/claude-code_dual-boot-skill/dual-boot"><img src="https://agentmods.dev/badge/skills/ombulabs/claude-code_dual-boot-skill/dual-boot.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,541 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.
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.00084 $0.02541
Opus 5 $0.00042 $0.01270
Sonnet 5 $0.00017 $0.00508
Haiku 4.5 $0.00008 $0.00254

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

Security

Grade A, and why

dual-boot 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 7d 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.

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.

dual-boot/SKILL.md · 202 lines

How it starts

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

When invoked via /dual-boot, follow the setup workflow in workflows/setup-workflow.md to set up dual-boot for this project. If the user provides version arguments (e.g. /dual-boot 7.0 7.1), use them as the current and target versions. If no arguments are provided, detect the current version from the Gemfile and ask the user for the target version.

Dual-Boot Skill

  • Purpose: Set up and manage dual-boot environments for Rails, Ruby, or core Gemfile dependencies using the next_rails gem
  • Key Gem: next_rails
  • Methodology: Based on FastRuby.io upgrade best practices and "The Complete Guide to Upgrade Rails" ebook
  • Attribution: Content based on "The Complete Guide to Upgrade Rails" by FastRuby.io (OmbuLabs)

Overview

Dual-booting allows a Ruby application to maintain two sets of dependencies simultaneously. While most commonly used for Rails version upgrades, the same approach works for upgrading Ruby versions or any core dependency in your Gemfile (e.g., sidekiq, devise, pg).

This skill helps you:

  • Set up dual-boot with the next_rails gem
  • Configure the Gemfile to support two versions of Rails, Ruby, or other key dependencies
  • Branch application code using NextRails.next?
  • Configure CI to test against both dependency sets
  • Clean up dual-boot code after the upgrade is complete

CRITICAL: Always Use NextRails.next? — Never Use Feature Detection

When code would break on one version and needs a different implementation on the other, always use NextRails.next? from the next_rails gem to branch — never feature detection. Do not use respond_to?, defined?, const_defined?, or any other feature-detection pattern for version branching.

Why feature detection is problematic:

  • Hard to understand: readers must know which version introduced a method or constant to grasp the intent
  • Hard to maintain: respond_to? / defined? checks pile up and become impossible to clean up because their purpose is lost
  • Fragile: may give wrong results if gems monkey-patch methods or constants in or out
  • Obscures intent: the code says "does this exist?" when it means "are we on the next Rails version?"

Read the full file on GitHub · 202 lines

Files

What ships with it

8 files 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. 7d ago First seen · 202 lines · 84 tokens per session scan A cd24e4b8f834

Subscribe to this mod's changes

dual-boot is a skill published in the GitHub repository ombulabs/claude-code_dual-boot-skill (13 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 2,541 once invoked, about $0.0004 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

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

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