Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

phx-deps-update

/phx-deps-update

Bezpiecznie aktualizuje zależności Hex w projekcie Elixir, zwłaszcza przy większych skokach wersji.

Licencja
MIT
Ostatnia zmiana repozytorium
22.10.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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
5
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.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

Bezpiecznie aktualizuje zależności Hex w projekcie Elixir, zwłaszcza przy większych skokach wersji.

Oryginalny opis (EN)

Update Hex dependencies safely. Use for upgrades; use $elixir-phoenix:phx-investigate for deps.get failures.

Jak działa

  1. Usage
  2. Iron Laws
  3. Workflow
  4. Integration
  5. References
Sekcje z nagłówków SKILL.md, w oryginale · 117 linii, 643 słów
Podgląd SKILL.md
---
name: phx-deps-update
description: Update Hex dependencies safely. Use for upgrades; use $elixir-phoenix:phx-investigate
  for deps.get failures.
---

# Dependency Update (Freshness)

Inventory → update → fix breaks → grouped PRs. This is the only MUTATING
deps skill: it edits `mix.exs`, `mix.lock`, and source. Security scanning
stays in `$elixir-phoenix:phx-deps-audit`; the vet ledger stays in `$elixir-phoenix:phx-deps-vet`.

## Usage

```
$elixir-phoenix:phx-deps-update                       # inventory + interactive scope pick
$elixir-phoenix:phx-deps-update --scope patch         # bundle all patch bumps, one PR
$elixir-phoenix:phx-deps-update --pkg phoenix_live_view   # one package (+ coupled group)
$elixir-phoenix:phx-deps-update --dry-run             # inventory only, no changes
```

## Iron Laws

1. **NEVER cross a major version without an explicit `mix.exs` edit** —
   `mix deps.update` stays within requirements. Edit the constraint first;
   add `override: true` only when `mix hex.outdated <pkg>` shows a
   transitive consumer blocking. One major per PR
2. **ALWAYS snapshot the changelog delta BEFORE updating** — capture
   `deps/<pkg>/CHANGELOG.md`, then delta via `mix hex.package diff`. Never
   update blind
3. **NEVER claim an update is safe without verification** — run
   `$elixir-phoenix:phx-verify` (compile --warnings-as-errors + test). "Compiles" ≠ "works"
4. **ALWAYS move coupled packages together** — Phoenix core, Ecto, Ash,
   Oban, telemetry families update in the SAME step/commit (see
   `references/coupled-groups.md`)
5. **NEVER commit a partial bump** — `mix.lock` + `mix.exs` edits + (for
   Phoenix-family) `assets/package-lock.json` in ONE commit
6. **HAND OFF security to `$elixir-phoenix:phx-deps-audit`** — run it on the lock diff
   before any PR; don't reimplement audit rules
7. **`hex.outdated` exit 1 is normal** — it means "deps are outdated", not
   failure. Capture with `|| true`

## Workflow

### Phase 0: Discover

Read `mix.exs`: deps list, umbrella (`apps_path:`), git/path deps, private
orgs (`organization:`/`repo:` in tuples), Phoenix/Ash presence. Create
scratch dir `.claude/deps-update/{YYYY-MM-DD}/`.

### Phase 1: Inventory

`mix hex.outdated --all || true` — parse the text table (no JSON exists;
see `references/update-mechanics.md`). Classify each
row patch/minor/major by semver delta; `Update not possible` = blocked
major (mix.exs constraint). Write `inventory.md` to scratch. Render
grouped table: Patch / Minor / Major / Blocked / Git-deps (manual).
`--dry-run` stops here.

### Phase 2: Scope (AskUserQuestion)

Present groups with counts and risk. Default recommendation: "Patches (N)
— low risk, bundle into one PR". `--scope`/`--pkg` flags skip the prompt.
When ≥2 members of a coupled group are outdated, force them into one step
even under a narrower scope.

### Phase 3: Per-Package Update Loop

For each selected package, in coupled-group order:

1. Snapshot `deps/<pkg>/CHANGELOG.md` → `scratch/before/`
2. Update — patch/minor: `mix deps.update <pkg> [coupled...]`;
   major: edit `mix.exs` constraint (+ `override: true` if needed), then
   `mix deps.update <pkg>`
3. `git diff mix.lock` → the REAL `{pkg, old, new}` set (hex.outdated says
   what could change; the lock diff says what did)
4. Changelog delta: `mix hex.package diff <pkg> <old>..<new>` — keep the
   CHANGELOG hunk. Empty → `gh api repos/{o}/{r}/releases` fallback →
   compare-URL note (see `references/changelog-sources.md`)
5. Write `scratch/{pkg}-{old}-{new}.md`
6. Phoenix-family in the diff + `assets/package.json` exists →
   `npm install --prefix assets`, stage `assets/package-lock.json` with
   the same commit

### Phase 4: Verify

Run `$elixir-phoenix:phx-verify`. On failure → Phase 5; else Phase 6.

### Phase 5: Breaking-Change Fixes

Read the changelog deltas for "breaking"/"removed"/"deprecated" + the
compile/test errors. Fix source (apply the sibling-file check). Re-verify.

### Phase 6: Security Handoff

Run `$elixir-phoenix:phx-deps-audit` on the working `mix.lock` diff (its Mode B default).
BLOCK findings → surface and offer `$elixir-phoenix:phx-deps-vet <pkg> <ver>` for
accepted risks. Never skip this before a PR.

### Phase 7: Group, Commit, PR

Apply the splitting strategy (`references/pr-strategy.md`):
patches bundled, minors by area, majors solo, coupled groups always
together. PR bodies cite the changelog excerpt, the
`https://diff.hex.pm/diff/<pkg>/<old>..<new>` link, verification result,
and the deps-audit risk band. Stage lock + mix.exs + package-lock together.

## Integration

```text
$elixir-phoenix:phx-deps-update (mutating) → $elixir-phoenix:phx-deps-audit (security, Mode B)
        │                              │ BLOCK → $elixir-phoenix:phx-deps-vet (ledger)
        └→ $elixir-phoenix:phx-verify (gate) → grouped commits / PRs
```

## References

- `references/update-mechanics.md` — hex.outdated parsing, update vs unlock+get, majors, lock-diff
- `references/changelog-sources.md` — hex.package diff, gh fallbacks, private orgs
- `references/coupled-groups.md` — must-move-together groups + edge cases
- `references/pr-strategy.md` — grouping rules, area buckets, PR template, scratch layout
Pliki w paczce (5)
  • SKILL.md 5 KB
  • references/changelog-sources.md 2 KB
  • references/coupled-groups.md 3 KB
  • references/pr-strategy.md 2 KB
  • references/update-mechanics.md 3 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT

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

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 100phx-research
    Bada tematy Elixir, Phoenix i Ecto oraz ocenia biblioteki Hex, gdy poznajesz biblioteki i wzorce.
  • 100deps-update
    Podbija nieaktualne zależności Hex w Elixirze: inwentaryzacja, zapis changelogów, aktualizacja, naprawa zepsutego kodu i podział na przeglądalne PR-y (patche razem, majory osobno).
  • 100update-deps
    Bezpiecznie podnosi zależności Elixira z Mix i Hex: poprawki i wersje minor, migracje wersji major z researchem changelogów oraz weryfikacja po aktualizacji.
  • 100deps-update
    Aktualizuje zależności Pythona do najnowszych wersji za pomocą uv, odtwarza lock i requirements.txt, sprawdza lint i testy oraz naprawia problemy po zmianach API.
  • 100update-go-deps
    Aktualizuje bezpośrednie zależności modułów Go do najnowszych wersji, porządkuje graf modułów, uruchamia testy i zapisuje commit.

Uwagi i zgłoszenia

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