upgrade-cleanup
/upgrade-cleanup
Sprząta po aktualizacji Rails: usuwa gałęzie NextRails i scaffolding dual-boot, zostawiając wybraną wersję, albo porzuca nieudaną próbę.
- Autor
- ombulabs ↗
- Repozytorium
- claude-code_rails-upgrade-skill ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 12.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Sprząta po aktualizacji Rails: usuwa gałęzie NextRails i scaffolding dual-boot, zostawiając wybraną wersję, albo porzuca nieudaną próbę.
Wyzwalacze z opisu
Oryginalny opis (EN)
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 aban
Jak działa
- When to Run
- Ownership and Delegations
- Critical Rules
- Workflow
- Reference
Podgląd SKILL.md
--- name: upgrade-cleanup description: 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. --- # Upgrade Cleanup 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. 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. ## When to Run Run when the user has explicitly decided to **end the dual-boot phase** in one of two directions: - **Keep next**: upgrade is done (final hop or stopping point), drop the `else` / current branches. - **Keep current**: abandoning or pausing this hop, drop the `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. ## Ownership and Delegations 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. - **Dual-boot scaffolding removal**: performed here in Phase 1. - **`load_defaults` alignment**: out of scope. The `rails-upgrade` skill handles this via its `rails-load-defaults` step before cleanup runs. ## Critical Rules - **Do NOT leave `NextRails.next?` or `NextRails.current?` branches in the tree.** That is the failure mode this skill exists to prevent. - **Do NOT start removing branches before confirming direction.** Keeping the wrong side throws away the work the user wants to keep. If the user has not stated next vs current, ask. ## Workflow 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. ## Reference - [Finishing an Upgrade, FastRuby.io](https://www.fastruby.io/blog/finishing-an-upgrade.html) - `workflows/upgrade-cleanup-workflow.md`, full workflow - The `dual-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.
Pliki w paczce (2)
- SKILL.md 3 KB
- workflows/upgrade-cleanup-workflow.md 14 KB
Wersje
W bazie nie ma innych skilli o nazwie upgrade-cleanup.
Migawka bazy z 13.11.2026 · wersja paczki 819e1fd29594 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100rails-upgrade
Analizuje aplikację Rails i pisze raport aktualizacji ze zmianami łamiącymi, deprecjacjami i krokami migracji od wersji 2.3 do 8.1. - 90dte-migrate
Planuje i wykonuje bezpieczną aktualizację Rails, gemów albo migrację schematu i danych, krok po kroku, z możliwością cofnięcia. - 90plan-upgrade
Planuje aktualizację głównej wersji frameworka, np. Rails, Laravel, Django czy Next.js, wskazując zmiany łamiące zgodność i wycofane API. - 100rails-load-defaults
Stopniowo podnosi config.load_defaults w Rails, przechodząc po kolei przez każdą nową opcję z new_framework_defaults. - 100rails-8-upgrade
Aktualizuje aplikację Rails 7 do Rails 8, wykonuje audyt przed migracją i naprawia niestabilne testy z LazyRouteSet, które pojawiają się przy równoległych uruchomieniach. - 100rails-security
Audytuje aplikację Rails pod kątem SQL injection, XSS, CSRF, mass assignment i podatności w Gemfile.lock albo przegląda nowe regresje bezpieczeństwa w pull requeście.