Token导航 LogoToken导航

Agent Skill · 研究检索

dual-boot(双启动)

dual-boot 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

dual-boot 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 71,596。

总安装 194周安装 8GitHub Stars 6下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dual-boot(双启动)
来源仓库:https://github.com/ombulabs/claude-code_dual-boot-skill
仓库路径:skills/dual-boot
安装命令:
npx skills add https://github.com/ombulabs/claude-code_dual-boot-skill --skill dual-boot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ombulabs/claude-code_dual-boot-skill --skill dual-boot

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

dual-boot 利用 next_rails gem 管理 Ruby/Rails 项目的双版本并行运行环境。适用于 Codex、Claude、Cursor、Gemini CLI 中依赖升级与兼容性测试场景。自动检测当前版本并引导设定目标版本,支持 Gemfile 级别的依赖隔离切换。

遵循 FastRuby.io 升级最佳实践,确保迁移过程可回滚且不影响线上服务稳定性。dual-boot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/dual-boot

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ombulabs/claude-code_dual-boot-skill --skill d…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dual-boot 怎么安装?

在终端执行 npx skills add https://github.com/ombulabs/claude-code_dual-boot-skill --skill dual-boot。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dual-boot 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dual-boot 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

dual-boot 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

dual-boot 用的人多吗?

公开数据是累计安装 194 次,近一周安装 8 次,下载 63 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dual-boot 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
dual-boot

双启动 · 本页

1946需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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

When writing code that must work with both the current and target versions, always use NextRails.next? from the next_rails gem. Never use respond_to? or other feature-detection patterns for version branching.

Why respond_to? is problematic:

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

Why NextRails.next? is better:

  • Explicit and readable: anyone reading the code immediately understands "this branch is for the next version"
  • Easy to clean up: after the upgrade, search for NextRails.next? and remove all branches
  • The standard: established dual-boot mechanism in the FastRuby.io methodology

Pattern

❌ WRONG — Do NOT use respond_to?:

if config.respond_to?(:fixture_paths=)
  config.fixture_paths = ["#{::Rails.root}/spec/fixtures"]
else
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
end

✅ CORRECT — Use NextRails.next?:

if NextRails.next?
  config.fixture_paths = ["#{::Rails.root}/spec/fixtures"]
else
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
end

When to Apply

Use NextRails.next? branching for:

  • Configuration changes (e.g., fixture_path → fixture_paths)
  • API changes (e.g., method renames, changed signatures, removed methods)
  • Gem version differences (e.g., different gem APIs across dependency versions)
  • Initializer changes (e.g., different middleware, different default settings)
  • Ruby version differences (e.g., syntax changes, stdlib removals)

Trigger Patterns

Claude should activate this skill when user says:

  • "Set up dual boot for my Rails app"
  • "Help me dual-boot Rails [x] and [y]"
  • "Dual-boot Ruby [x] and [y]"
  • "Set up dual boot for upgrading [dependency]"
  • "Add next_rails to my project"
  • "Configure dual-boot CI"
  • "Clean up dual-boot code"
  • "Remove next_rails after upgrade"
  • "How do I use NextRails.next?"
  • "Set up Gemfile for two Rails versions"
  • "Set up Gemfile for two Ruby versions"

Core Workflows

Workflow 1: Set Up Dual-Boot

See workflows/setup-workflow.md for the complete step-by-step process.

Summary: 0. Verify deprecation warnings are not silenced (see references/deprecation-tracking.md)

  1. Check if dual-boot is already set up (look for Gemfile.next)
  2. Add next_rails gem to Gemfile
  3. Run bundle install
  4. Run next_rails --init (only if Gemfile.next does NOT exist)
  5. Configure Gemfile with next? conditionals for the dependency being upgraded
  6. Install dependencies for both versions:

- Current: bundle install - Next: cp Gemfile.lock Gemfile.next.lock && BUNDLE_GEMFILE=Gemfile.next bundle install

  1. Verify both versions work

Workflow 2: Add Version-Dependent Code

When proposing code changes that need to work with both dependency sets:

  1. Verify next_rails is set up (check for Gemfile.next)
  2. Use NextRails.next? for branching — never respond_to?
  3. Keep the next? branch (new version code) on top
  4. Keep the else branch (old version code) below

See references/code-patterns.md for examples.

Workflow 3: Configure CI

See references/ci-configuration.md for CI setup with GitHub Actions, CircleCI, and Jenkins.

Workflow 4: Clean Up After Upgrade

See workflows/cleanup-workflow.md for the complete post-upgrade cleanup process.

Summary:

  1. Search for all NextRails.next? references
  2. Keep only the NextRails.next? (true) branch code
  3. Remove all else branches
  4. Remove next? method from Gemfile
  5. Remove next_rails gem if no longer needed
  6. Remove Gemfile.next and replace Gemfile.lock with Gemfile.next.lock
  7. Update CI to remove dual-boot configuration
  8. Run full test suite
  9. Commit cleanup changes

Available Resources

Core Documentation

  • SKILL.md - This file (entry point)

Reference Materials

  • references/deprecation-tracking.md - Detecting silenced deprecations and configuring tracking (Rails 3.0+)
  • references/code-patterns.md - NextRails.next? usage examples in application code
  • references/ci-configuration.md - CI setup for dual-boot (GitHub Actions, CircleCI, Jenkins)
  • references/gemfile-examples.md - Gemfile configuration patterns for dual-boot

Workflows

  • workflows/setup-workflow.md - Step-by-step dual-boot setup
  • workflows/cleanup-workflow.md - Post-upgrade dual-boot removal

Examples

  • examples/basic-setup.md - Basic dual-boot setup example

Key Principles

  1. Ensure deprecation warnings are visible — silenced deprecations mean you can't track upgrade progress
  2. Never run next_rails --init if Gemfile.next exists — it will duplicate the next? method
  3. Always use NextRails.next? for version-dependent code — never respond_to?
  4. Test both versions using the project's own test runner. Detect it before running anything: check the Gemfile for rspec-rails, parallel_tests, turbo_tests, or minitest-parallel_fork, check whether the app has spec/ or test/, and prefer wrappers like bin/test when they exist. Every bundle exec rspec in the workflows, examples, and CI reference is illustrative; substitute the detected command (e.g. bin/rails test, bundle exec parallel_rspec spec/, bin/test) and prefix with BUNDLE_GEMFILE=Gemfile.next (or the next CLI) to run it against the next dependency set.
  5. Clean up after upgrade — search for and remove all NextRails.next? branches
  6. Add next_rails at the Gemfile root level — not inside a :development or :test group

Quick Reference

CommandPurpose
next_rails --initInitialize dual-boot (creates Gemfile.next symlink)
next bundle installInstall gems for the next dependency set
next bundle exec rspecRun tests with the next dependency set
BUNDLE_GEMFILE=Gemfile.next bundle exec rails serverStart server with next version
BUNDLE_GEMFILE=Gemfile.next bundle exec rspecAlternative to next command

See CHANGELOG.md for version history and current version.

平台分布

Codex

34.09%
按下载量换算21

Claude

32.33%
按下载量换算20

Cursor

17.25%
按下载量换算11

Gemini CLI

9.27%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills