Clean up after (or abandon) a Rails upgrade. Drop NextRails.next? and NextRails.current? branches and retire dual-boot scaffolding (Gemfile.next, Gemfile.next.lock, conditional Gemfile groups), keeping either the next or the current version. Trigger when the user says they are done with the upgrade, want to clean up dual-boot, want to drop NextRails branches, want to finish the upgrade, want to abandon or revert the upgrade attempt, want to roll back to the current Rails version, or want to pause this upgrade hop. Based on FastRuby.io's "Finishing an Upgrade" methodology, extended with an abandon/pause path.
$npx -y skills add ombulabs/claude-code_rails-upgrade-skill --skill upgrade-cleanupInstalls into the current project.
Run `npx skills use "https://github.com/ombulabs/claude-code_rails-upgrade-skill" --skill "ombulabs/claude-code_rails-upgrade-skill/upgrade-cleanup"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/ombulabs/claude-code_rails-upgrade-skill" that are relevant to the current task. Run `npx skills add "https://github.com/ombulabs/claude-code_rails-upgrade-skill"` and select the relevant skills, then follow their instructions.