From upgrade-cleanup
Removes NextRails dual-boot scaffolding and cleans up Gemfile.next* after a Rails upgrade, preserving either the next or current version.
How this skill is triggered — by the user, by Claude, or both
Slash command
/upgrade-cleanup:upgrade-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Companion to the `rails-upgrade` plugin. Runs the cleanup pass that removes dual-boot scaffolding and aligns the codebase to the new version baseline.
Companion to the rails-upgrade plugin. Runs the cleanup pass that removes dual-boot scaffolding and aligns the codebase to the new version baseline.
When activated, follow the workflow in workflows/upgrade-cleanup-workflow.md end-to-end. Before any destructive step, confirm direction with the user (Phase 0 Step 1): are they keeping the next version (finishing the upgrade) or keeping the current version (abandoning or pausing this hop)? Every subsequent step branches on that answer. To detect the next version, read the Gemfile (look for the if NextRails.next? / else block; the next? branch holds the upgraded-to version) or Gemfile.next.lock. Do NOT rely on Gemfile.lock alone, since during dual-boot it still pins the current version.
Run when the user has explicitly decided to end the dual-boot phase in one of two directions:
else / current branches.if NextRails.next? / next branches and Gemfile.next*.Either way the previous parallel branch must no longer be needed (no rollback window). Deployment to production is not a hard prerequisite.
This skill owns the cleanup. Phase 1 below is the step list to follow. The dual-boot skill's workflows/cleanup-workflow.md is older optional reading; if it drifts from this workflow, this workflow wins.
load_defaults alignment: out of scope. The rails-upgrade skill handles this via its rails-load-defaults step before cleanup runs.NextRails.next? or NextRails.current? branches in the tree. That is the failure mode this skill exists to prevent.See workflows/upgrade-cleanup-workflow.md for the full process: a pre-flight check, dual-boot scaffolding removal, old-version code retirement, CI and Ruby pin alignment, final verification, and the cleanup PR.
workflows/upgrade-cleanup-workflow.md, full workflowdual-boot plugin's workflows/cleanup-workflow.md, optional reading for context. This skill's Phase 1 is the step list to follow, do not use dual-boot's version when it conflicts.npx claudepluginhub ombulabs/claude-skills --plugin upgrade-cleanupAnalyzes Rails applications and generates upgrade reports with breaking changes, deprecations, and migration guides for Rails 2.3 through 8.1. Useful when upgrading Rails apps or planning multi-hop upgrades.
Upgrades Rails applications between versions 5.2 and latest, assessing readiness, planning multi-hop paths, and handling breaking changes, deprecations, and config.load_defaults transitions.
Orchestrates fully automated, phased Ruby and optional Rails upgrades to target versions via task lists, fix delegation, verification gating, and failure handling with continue/retry/abort options.