Dep major

From jellyrock/jellyrock · View interactive version

Dep major is an AI agent skill from the GitHub repository jellyrock/jellyrock. Walk a major dependency-version bump (a Renovate major PR, possibly a grouped one carrying several deps, or a package you name) through JellyRock's major-bump SOP so the judgment steps run the same way every time. Resolves each package and its from and to versions, fetches the upstream changelog/mig

How to use this skill

Skill file

`/dep-major <PR# | package>`: walk a major dependency bump through the SOP

Majors never merge automatically under the org Renovate config (renovate/default.json in jellyrock/.github, which this repo's renovate.json extends): a major is always reviewed by a person, because a breaking change can pass a green build and still break at runtime. This skill makes that review consistent: the model does the judgment (read the changelog, decide which breaks hit us, propose the migration), and the mechanical gate is the existing npm scripts, not a copy of them.

Scope: one major-bump PR. That is usually one dependency, but a Renovate grouped PR can carry several: the groups in this repo's renovate.json (brighterscript, roku runtime, roku deploy & test, docs lint, git hooks) group majors too. A GitHub Actions major always gets its own PR (the org config). Review each dependency in a group on its own (Steps 2 and 3 per dependency), then run the gate (Steps 4 and 5) once over the combined branch. Not patch or minor bumps (those merge automatically after a soak), and not Jellyfin server releases (that is CODE6).

Step 1: Resolve the bump (the package, and its from and to versions)

From the arguments:

Confirm it is a major bump, and that it has soaked: the org config holds a major 7 days, shown by the renovate/stability-days status on Renovate's commit (gh api repos/{owner}/{repo}/commits/<sha>/status). It is a major when the first version segment increases, or for 0.x the second, which is breaking by convention. If it is only a patch or minor, stop and say so: those follow the automatic-merge policy, and this skill is for majors. Record pkg, fromVer, toVer, and (if any) branch.

Step 2: Fetch the upstream changelog or migration guide for the range

Find the changelog for the fromVer..toVer range. In order of preference:

  1. The PR body: Renovate embeds a "Release Notes" section with per-version notes; read it first (gh pr view <N> --json body).
  2. The upstream repo's CHANGELOG.md (most rokucommunity and npm packages keep one). Resolve the repo from npm view <real-name> repository.url (for an action, the uses: owner and name), then gh api repos/<owner>/<repo>/contents/CHANGELOG.md --jq .content | base64 -d and read the entries between fromVer and toVer.
  3. GitHub Releases: gh release list --repo <owner>/<repo> and gh release view <tag> --repo <owner>/<repo> for each major tag in range.
  4. Fallback: WebFetch the package's npm page or docs site.

Summarize only the breaking changes in the range (ignore features and fixes unless they change behavior we rely on). For each one, note the symbol or API affected, what changed, and the migration upstream prescribes.

Step 3: Map the breaks to our call sites

For each breaking change, grep the codebase for where we actually use the affected API:

Produce a concrete list: each break, the files and functions it hits, and the change each needs, or "not used here" when a break doesn't touch our code. This is the core judgment output: be specific, and cite the code.

Step 4: Run the mechanical gate that fits the dependency's type

There is no single gate. The BrightScript build (validate, build, lint:bs) exercises only a dependency the app compiles or bundles. For a GitHub Action or a dependency only Node scripts use, it runs green while touching nothing the bump changed, which is worse than no gate because it looks like coverage. Pick the gate by what executes the dependency. Reuse the existing npm scripts; don't copy them.

Get the new version into the tree first:

Then run the matching gate:

Step 5: Did the gate exercise the change? (the latent-break check)

A green gate counts only if it ran the code the bump touched. Before calling it a go, name at least one path the bump changes and confirm the gate hit it. A major bump often changes a conditional path the PR's own CI never runs:

If such a path exists and the gate didn't cover it, treat the change as unverified (a latent break): reason it through from the changelog and call it out. Don't let the green tick stand in for coverage it doesn't have.

Report each step's result. A red gate, or an unverified latent path, is a no-go until the migration in Step 6 resolves it.

Step 6: The verdict and the migration

Emit a go / no-go with the SOP checklist ticked:

If a migration is needed and the user approves, apply it with Edit on the affected files (cite the changelog rationale), then re-run the relevant gate step to confirm green. Leave the merge to the user: this skill reviews and prepares; it never merges.

If anything was deferred (a device run that couldn't happen, for example), record it with CODE0 so it isn't lost.

When not to use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.