Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

effected-renovate

/effected-renovate

Przenosi projekt na nowe wydanie zestawu @effected, odświeża lockfile i zamyka listę zmian z wydania.

Repozytorium
effected ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.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
27
Skrypty
4
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

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

Co sprawdzić przed instalacją
  • 4 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/applicable.mjs, scripts/bump-config-deps.mjs, scripts/outdated-direct.mjs, scripts/stale-edges.mjs

Co robi i kiedy

Przenosi projekt na nowe wydanie zestawu @effected, odświeża lockfile i zamyka listę zmian z wydania.

Argumenty

/effected-renovate [--no-upgrade] [--stop-after <step>] [--base <git-ref>]
Oryginalny opis (EN)

Use when the user runs /effected-renovate, or asks to move a repository onto a new @effected kit release or a new Effect version — bump the catalog plugin and the other config dependencies, regenerate the lockfile, get the build and tests green, then work through the release's upgrade ledger and align the remaining dependencies.

Jak działa

  1. Before you start
  2. Step 1: bump the config dependencies
  3. Step 2: regenerate the lockfile and install
  4. Step 3: confirm one effect
  5. Step 4: find what the release changed for you
  6. Step 5: build
  7. Step 6: test
  8. Fixing breakage (steps 5 and 6)
  9. Step 7: align the rest
  10. Step 8: changesets
Sekcje z nagłówków SKILL.md, w oryginale · 139 linii, 1 841 słów
Podgląd SKILL.md
---
name: effected-renovate
description: Use when the user runs /effected-renovate, or asks to move a repository onto a new @effected kit release or a new Effect version — bump the catalog plugin and the other config dependencies, regenerate the lockfile, get the build and tests green, then work through the release's upgrade ledger and align the remaining dependencies.
when_to_use: >-
  upgrade the effected kit, adopt a new @effected release, bump pnpm-plugin-effected,
  move to a new Effect patch or minor, silk-update-action stuck on a breaking kit release,
  regenerate the lockfile after a catalog bump, what changed in this effected release
disable-model-invocation: true
argument-hint: "[--no-upgrade] [--stop-after <step>] [--base <git-ref>]"
---

# /effected-renovate

Move this repository onto the newest `@effected` kit release: `$ARGUMENTS`

The kit reaches a repository through its catalog plugin, a pnpm config dependency that carries every `@effected/*` version, the Effect family's versions and graph-wide Effect pins. Bumping that one dependency is most of the upgrade. Everything else is finding where the release changed something this repository uses, and the release's **upgrade ledger** says exactly that: one entry per breaking change, behaviour change, security fix, tooling change or new surface worth adopting, each with the search that finds it in your code.

Invoking `/effected-renovate` is consent to rewrite `pnpm-workspace.yaml`, drop the lockfile, reinstall and edit manifests and source in this repository. It is not consent to commit, push or open a pull request; stop and report instead. `--no-upgrade` skips step 7's direct-dependency bump, `--stop-after <n>` halts after step n, and `--base <ref>` names the pre-upgrade commit for step 4.

Run every command from the repository root.

## Before you start

- **Work on a branch.** On the default branch, create `chore/effected-renovate-<YYYY-MM-DD>` first. Leave any uncommitted changes alone: never stash or stage them.
- **Check for an update already in flight** with `gh pr list`. If an update bot opened a dependency pull request, say so; building on its branch may beat duplicating it.
- **The repository's own instructions win.** Read its `CLAUDE.md` for build, test and lint commands and their traps.
- **Read [traps.md](references/traps.md) once.** It holds the traps this process has hit in real repositories.

## Step 1: bump the config dependencies

```bash
node "{{skill_dir}}/scripts/bump-config-deps.mjs" pnpm-workspace.yaml --dry-run   # what moves
node "{{skill_dir}}/scripts/bump-config-deps.mjs" pnpm-workspace.yaml             # rewrite
```

It rewrites every `configDependencies` pin to the latest release as a plain version, drops a legacy `+sha512-…` integrity suffix, and applies the renames the ledger declares, such as a catalog plugin republished under a new name. Exit 2 means the repository has no config dependencies; skip to step 2. Report each `old -> new`. A `0.x` minor on the catalog plugin is where the release's breaking changes come from, so name it.

## Step 2: regenerate the lockfile and install

```bash
NODE_OPTIONS= pnpm clean --lockfile --yes && NODE_OPTIONS= pnpm install --ignore-scripts
```

The empty `NODE_OPTIONS` is load-bearing too. A session started through a `pnpm run` script (a repository's `claude` script, say) inherits the workspace's `nodeOptions` as `NODE_OPTIONS`. With `--import=tsx` in it, an install with no `node_modules` dies before tsx is installed.

Dropping the lockfile is load-bearing. Its first document pins each config dependency independently of `pnpm-workspace.yaml`, and its body pins every resolved version, so a bumped pin plus a plain `pnpm install` reports the lockfile up to date and keeps the old versions. A `clean` script in the root `package.json` overrides the built-in `pnpm clean`: check `jq -r '.scripts.clean // empty' package.json` first, and if it does not remove `pnpm-lock.yaml` and every `node_modules`, delete them directly.

Verify by resolution, not by reading manifests:

```bash
pnpm why effect --depth 0
```

It must print the catalog's Effect version as an `effect@<version>` heading, with what depends on it beneath. It reads the installed graph of every workspace project, so it works from the root whichever package declares `effect`. `node -p "require('effect/package.json').version"` resolves from the current directory instead: it works only from a package that declares `effect`, and from a root that does not, it fails with `Cannot find module` after a good install.

## Step 3: confirm one `effect`

```bash
grep -nE "^  effect@[0-9]" pnpm-lock.yaml
```

Exactly one `effect` version must resolve. Two copies make every `Context.Service` tag two distinct tags, and the failure reads like an API change rather than a duplicate. A second copy usually comes from a build tool (a bundler, a test plugin, a linter) still published on an older Effect minor. Find which package pulls it with `pnpm why effect`, and check the ledger's tooling entries before you bridge anything by hand.

**Two versions of a kit package can be correct.** A tool installed here (a test plugin, a linter, a bundler) that was released on the previous kit release keeps its own copies of the kit packages it pinned. That is the tool owning its closure, and it is harmless: the tool shares no service, schema or brand with this repository. Do not override it onto the new versions.

It breaks only when a kit package resolved inside the tool takes a **peer** from the other release line. The tell is `does not provide an export named …` when the tool loads (a test run that cannot start, a CLI that dies at import). That happens when the tool publishes caret ranges on the kit, so a newer patch of one kit library lands beside an older peer. Bridge it at the stale parent edge only, never with a global pin:

1. List the split packages, the edges that pull each stale copy, and the override lines:

   ```bash
   node "{{skill_dir}}/scripts/stale-edges.mjs"          # --json for the same report as data
   ```

   It reads `pnpm-lock.yaml` (or a path you pass) and exits 0 when no kit package resolves at two versions, 2 when one does. The newest copy of each package is the target; every lower one is stale.
2. Read the edges. A **tool** parent gets an override line. A parent that is itself an `@effected/*` package gets none. When the stale child is its peer, it resolved inside the tool and the tool's line covers it. When it is a regular dependency, no printed line does: read the parent's manifest, and add a `"<parent>><child>"` override yourself if the split breaks it. An importer edge is this repository's own range on the old release; raise the range instead of overriding it.
3. Paste the override lines the tool edges need into `pnpm-workspace.yaml`'s `overrides`, leaving out any tool whose second copy is harmless.
4. Drop the lockfile and reinstall, as in step 2. Changing `overrides` in place can report the lockfile up to date.
5. Check that no kit package now resolves at two versions where it broke, and run each bridged tool once (its CLI, its test run). Forcing a newer kit release onto a tool can hit that release's breaking changes.
6. Comment the block as temporary, naming the tools, and delete each tool's lines once it releases on the new kit.

A tool that pins the kit exactly never needs this; when the tool is one this repository publishes, step 7 offers that fix.

## Step 4: find what the release changed for you

```bash
node "{{skill_dir}}/scripts/applicable.mjs"            # --base <ref> if the pre-upgrade lockfile is not on the merge-base
```

It compares the lockfile on the merge-base with the default branch against the working tree's, and lists only the ledger entries whose threshold your upgrade crossed. Each entry comes with the files where its search matched, in priority order: security fixes, then breaking changes the compiler finds, then ones only tests find, then behaviour, tooling and adoptions. A repository several releases behind gets every round it crossed; the script fetches earlier rounds from the plugin's release tags with `gh` (`--offline` skips the fetch and names the tag instead).

Read each listed entry before you touch the code it names. An entry states a shape, not a signature: check it against the installed `.d.ts` under `node_modules/<pkg>/` before relying on it.

## Step 5: build

```bash
pnpm build
```

Work the typed entries first; the compiler confirms them. Then check each package's `dist/prod/issues.json` when the repository builds with `effected package build`: read `buildOk` first, because a crashed build's empty buckets look like a clean one, then treat every `errors` entry and every `warnings` entry marked `ciFatal: true` as a failure. API Extractor findings are warnings locally and errors in CI.

## Step 6: test

```bash
pnpm test
```

Then the behavioural entries: a test that fails here is often one of them, and an entry with hits and no failing test is a gap in the suite, worth a test.

## Fixing breakage (steps 5 and 6)

Loop: read the first error, fix it, re-run only what it affects, repeat.

- **Verify every changed API against the installed source**, never memory: the package's `.d.ts`, its `CHANGELOG.md`, and any vendored reference tree the repository keeps. Kit releases ship as `0.x` minors, so "minor" does not mean compatible.
- **Fix the call site** to match the new API. Never pin a dependency back, add `@ts-ignore` or `as any`, skip or delete a test, or loosen lint or `tsconfig` to get green; if a fix seems to need one, stop and ask.
- **A failure that also fails on the default branch is not the upgrade's.** Say so and move on.

## Step 7: align the rest

```bash
node "{{skill_dir}}/scripts/outdated-direct.mjs"
```

It lists outdated dependencies pinned directly in a manifest, not through `catalog:` or `workspace:` (those already moved with step 1). Upgrade routine ones by editing the range and keeping its operator, then install once. Leave a deliberately held pin alone: check the repository's instructions and the line's history before bumping across a major, and ask when unsure.

Then the ledger's `adopt` entries: each names a hand-rolled pattern the kit or Effect now covers. Offer them; do not apply them unasked.

When this repository publishes a tool built on the kit (a package with a `bin`, a CLI or MCP server, a bundler or test plugin), check how its packages take the kit. A tool package that writes `catalog:effected` or a caret on an `@effected/*` dependency floats kit patches under its own version, and is the cause of the step-3 bridge in every repository that installs it. Offer to pin those dependencies exactly; the `design-patterns` skill's carrier-closure reference has the rule, what it seals and the test that holds it. Libraries keep their carets and peers. When the repository uses `@savvy-web/silk`, run `pnpm savvy init --yes` after the last install and keep what it rewrites.

## Step 8: changesets

When the repository versions with changesets: `pnpm savvy changeset deps regen` (or the repository's equivalent) once build and tests are green, so the dependency changesets describe the final manifests. Then one prose changeset for each published package whose own code changed, sized by what its consumers see: a call-site port that keeps the package's API is a patch.

## Finish

Report concisely:

- Config dependencies bumped and renamed, direct dependencies upgraded, and pins left alone with why.
- The ledger entries that applied, and for each what you changed, or why nothing needed to.
- Build and test results with the real counts, and every code change made to fix breakage (file and one line of why).
- Anything still failing, with its first error.
- Adoptions offered and not applied.

Then offer the next step, a commit and a pull request, rather than taking it.

## Additional resources

- [traps.md](references/traps.md): traps this process hit in real repositories. Load when: starting a run, or when a step behaves differently from what it describes.
- [ledger/](references/ledger/BASELINE.md): the release's upgrade entries, one file each; `applicable.mjs` selects them. Load when: `applicable.mjs` lists an entry, or it cannot run.
Pliki w paczce (27)
  • SKILL.md 12 KB
  • references/traps.md 4 KB
  • references/ledger/0001-behaviour-cli-wizard-argv.md 2 KB
  • references/ledger/0002-behaviour-testclock-finalizer-sleep.md 2 KB
  • references/ledger/0003-breaking-ai-openrouter-regenerated.md 2 KB
  • references/ledger/0004-behaviour-structured-output-null-branch.md 1 KB
  • references/ledger/0005-behaviour-ai-provider-failures.md 2 KB
  • references/ledger/0006-behaviour-schema-representation-output.md 2 KB
  • references/ledger/0007-behaviour-mcp-skills-older-revisions.md 1 KB
  • references/ledger/0008-adopt-httpapi-redacted-names.md 2 KB
  • references/ledger/0009-adopt-ai-workload-identity.md 2 KB
  • references/ledger/0010-behaviour-memfs-errno-gaps.md 3 KB
  • references/ledger/0011-breaking-bundler-helpers-are-effects.md 2 KB
  • references/ledger/0012-breaking-plugin-bundled-carrier.md 4 KB
  • references/ledger/0013-adopt-bundler-bundled-closure.md 2 KB
  • references/ledger/0014-breaking-npm-pnpm-split-no-yarn.md 2 KB
  • references/ledger/0015-breaking-workspaces-pnpm-split-no-yarn.md 2 KB
  • references/ledger/0016-breaking-lockfiles-manager-documents.md 1 KB
  • references/ledger/0017-breaking-changesets-pnpm-native-planning.md 2 KB
  • references/ledger/0018-breaking-github-actions-pnpm-12-only.md 1 KB
  • references/ledger/0019-breaking-commands-no-yarn.md 1 KB
  • references/ledger/0020-adopt-pnpm-and-npm-transport.md 2 KB
  • references/ledger/BASELINE.md 2 KB
  • scripts/applicable.mjs 22 KB
  • scripts/bump-config-deps.mjs 4 KB
  • scripts/outdated-direct.mjs 2 KB
  • scripts/stale-edges.mjs 8 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · spencerbeggs/effected100MIT
spencerbeggs/effected100MIT
spencerbeggs/effected100MIT

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

Pobrania w ostatnich 30 dniach: 0 · ranking

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

Podobne skille

  • 100effect-upgrade
    Prowadzi przejście zestawu narzędzi na nową wersję Effect 4.x, w tym przepięcie zależności na nowszy patch lub wersję minor.
  • 100effected-packages
    Opisuje 42 pakiety zestawu @effected i kiedy po nie sięgać, od parsowania JSONC, YAML i TOML po semver, SPDX i introspekcję monorepo.
  • 100deps-upgrade
    Aktualizuje zależności z wykrywaniem zmian łamiących i planem migracji, w tym podbicia wskazanych pakietów oraz przegląd PR-ów Dependabota i Renovate.
  • 100merge-renovate-prs
    Sprawdza otwarte pull requesty Renovate w repozytorium, raportuje ich stan i scala je po kolei, czekając na rebase przy konflikcie.
  • 100adopting-renovate
    Dodaje Renovate do repozytorium, przenosi renovate.json na wspólne presety i sprawdza, co bot otworzy przed scaleniem zmian.
  • 100pr-watch-fix-renovate
    Równolegle obsługuje wszystkie otwarte PR-y od Renovate, każdy w osobnym worktree, by zatwierdzić albo sklasyfikować aktualizacje zależności.

Uwagi i zgłoszenia

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