Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

dte-migrate

/dte-migrate

Planuje i wykonuje bezpieczną aktualizację Rails, gemów albo migrację schematu i danych, krok po kroku, z możliwością cofnięcia.

Repozytorium
dte-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Planuje i wykonuje bezpieczną aktualizację Rails, gemów albo migrację schematu i danych, krok po kroku, z możliwością cofnięcia.

Wyzwalacze z opisu

upgrade Rails/this gembump dependenciesmigrate the schema/databackfill this columnzero-downtime migrationupdate our dependencies
Oryginalny opis (EN)

Plan and execute a safe upgrade or migration — a Rails version bump, gem upgrades, or a schema/data migration — incrementally, reversibly, gated at every step. Composes gemfile-upgrade + gemfile-organize (dependency moves), database-admin + database-optimizer (schema/data), gem-research (is an upgrade safe/maintained), ce-plan/ce-work, and the project gate after each step. Use when the user says "upgrade Rails/this gem", "bump dependencies", "migrate the schema/data", "backfill this column", "zero-downtime migration", or "update our dependencies". Loops over a list of upgrades. Not for an arch

Jak działa

  1. Input
  2. Establish the gate FIRST
  3. Procedure (per migration)
  4. For a list of migrations
  5. Degrade gracefully
  6. Guardrails
  7. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 504 słów
Podgląd SKILL.md
---
name: dte-migrate
description: Plan and execute a safe upgrade or migration — a Rails version bump, gem upgrades, or a schema/data migration — incrementally, reversibly, gated at every step. Composes gemfile-upgrade + gemfile-organize (dependency moves), database-admin + database-optimizer (schema/data), gem-research (is an upgrade safe/maintained), ce-plan/ce-work, and the project gate after each step. Use when the user says "upgrade Rails/this gem", "bump dependencies", "migrate the schema/data", "backfill this column", "zero-downtime migration", or "update our dependencies". Loops over a list of upgrades. Not for an architecture/structure migration (use dte-arc-work from a dte-arc-auditor roadmap) or a code bug (use dte-debug).
---

# dte-migrate — safe, incremental, reversible upgrades & data migrations

Read `../../references/conventions.md` first (**Planning is mandatory and validated**, **Runnable gate**,
**Progress: report every phase**). This skill **changes dependencies, schema, or data** — the riskiest,
hardest-to-reverse work. So: one change per step, the gate green before each commit, reversible by design.
It composes the upgrade/DB tools; it does not free-hand a mass version bump.

## Input
- A migration: a Rails/Ruby version bump, a set of gem upgrades, or a schema/data migration (add/rename
  column, backfill, change type, move data).
- Or a **list** → handle each (serial by default — dependency/schema changes are not independent).
- Read the project `CLAUDE.md`/`AGENTS.md`; note the DB, deploy model, and whether deploys are test-gated.

## Establish the gate FIRST
Confirm the runnable gate (full test suite + boot/`zeitwerk:check`; for DB work add a migrate↔rollback
round-trip and a seed/load check) is **green on the current tree** before touching anything. It runs before
every commit; a red gate after a step = **revert that step**, never push through.

## Procedure (per migration)
1. **Research safety first.** For an upgrade, run **`gem-research`** — is the target version maintained,
   what breaks, what's the changelog/deprecation path? For a Rails bump, identify the upgrade guide steps.
   Don't bump blind.
2. **Plan it (validated).** Run **`dte-arc-plan`** / `ce-plan` → a validated, **stepwise** plan: smallest
   reversible increments (one major gem at a time; dual-write/backfill/verify/cutover for data; deprecation
   warnings cleared before the bump). Every step has its own rollback.
3. **Execute step by step** via `ce-work`:
   - **Deps:** **`gemfile-upgrade`** for the bump, **`gemfile-organize`** to keep the Gemfile clean;
     `bundle update <gem>` one at a time, run the gate, fix deprecations.
   - **Schema/data:** **`database-admin`** for the migration (reversible `up`/`down`, safe for large tables —
     add column nullable → backfill in batches → add constraint), **`database-optimizer`** to check the new
     index/query shape. Keep migrations **idempotent and reversible**.
4. **Gate after EVERY step.** Run the gate (incl. migrate→rollback→migrate round-trip for DB steps). Green →
   commit + **report the step**. Red → **revert the step, log why, stop.**
5. **Report + pause** per step — what changed, gate result, what's next, the rollback if it goes wrong.

## For a list of migrations
Serial; or hand the stepwise plan/INDEX to **`dte-loop`** to run gated + autonomous. One branch per
migration unless coupled. Report + pause per step.

## Degrade gracefully
- No `gemfile-upgrade`/`gemfile-organize` → bump with `bundle update <gem>` + manual Gemfile edits, noted.
- No `database-admin`/`database-optimizer` → hand-write reversible migrations + `EXPLAIN` by hand, noted.
- No `gem-research` → check the changelog/release notes manually; never bump blind regardless.

## Guardrails
- **Reversible or it doesn't ship.** No data migration without a tested rollback / backfill-verify.
- Stop-and-ask before anything irreversible (a destructive `down`, dropping a column, prod data change)
  unless explicitly authorized. Never run a big bump as one commit.

## Done when
The migration is done in **small reversible steps**, each **gate-green** (incl. rollback round-trip for DB),
deprecations cleared, dependencies clean, with a step-by-step report and the rollback path documented.

Wersje

W bazie nie ma innych skilli o nazwie dte-migrate.

Migawka bazy z 13.11.2026 · wersja paczki 82502eb895ed (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100migrate
    Prowadzi bezpieczną migrację obejmującą migracje schematu EF Core, aktualizacje wersji .NET i pakietów NuGet, każdą ze strategią wycofania i krokami weryfikacji.
  • 95migrate
    Planuje migrację kodu i aktualizację frameworka, ocenia ryzyko i zabezpiecza testy kontraktowe API.
  • 95migrate
    Planuje i wykonuje migracje: aktualizacje frameworka, wersji API i usuwanie przestarzałych elementów.
  • 100cursor-upgrade-migration
    Prowadzi przez aktualizację wersji Cursor i migrację ustawień.
  • 100upgrade-dependencies
    Podnosi wszystkie zależności gemów Ruby do najnowszych wersji z przeglądem notatek wydań i sprawdzeniem zgodności z kodem.
  • 100rails-upgrade
    Analizuje aplikację Rails i pisze raport aktualizacji ze zmianami łamiącymi, deprecjacjami i krokami migracji od wersji 2.3 do 8.1.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.