Skip to content
Back to skills

Upgrade

DSecurity

Guide users through `pulp upgrade` — discover new CLI releases, interpret migration notes for the hop they're performing, and apply breaking-change fixes (CMake macro renames, API surface changes, config file moves). Handles "upgrade pulp", "what's new", "migrate my project", "show breaking changes", and the `/upgrade` slash command. Pairs with the embedded migration index shipped in the CLI binary.

  • 23 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 11, 2026
documentationrustgoc++shellbashexpressawstestinggitapi

Works with

  • claude code
  • cli
  • api

Security analysis

D42/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add danielraffel/pulp --skill upgrade --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Upgrade?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Upgrade
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/danielraffel-upgrade/badge)](https://www.skillsdirectory.com/skills/danielraffel-upgrade)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: upgrade
description: |
  Guide users through `pulp upgrade` — discover new CLI releases, interpret
  migration notes for the hop they're performing, and apply breaking-change
  fixes (CMake macro renames, API surface changes, config file moves).
  Handles "upgrade pulp", "what's new", "migrate my project", "show
  breaking changes", and the `/upgrade` slash command. Pairs with the
  embedded migration index shipped in the CLI binary.
requires:
  tools:
    - pulp
---

# upgrade

## When this skill applies

- User asks to upgrade, update, or bump the Pulp CLI.
- User runs `/upgrade` in Claude Code.
- User asks "what changed", "what's new", "what breaks", or "how do I
  migrate" after bumping an SDK / CLI version.
- A `pulp doctor --versions` run surfaces CLI-vs-SDK skew the user wants
  to resolve.

This skill does NOT cover:

- Pinning the **project's** SDK version — that's the
  `cli-maintenance` skill + `pulp project pin`.
- Bumping the Pulp framework/source checkout version — that's
  `pulp version bump` plus the release workflow.
- Shipping a PR from a dev branch — that's the `ci` skill via `pulp pr`.
- Updating the Shipyard pin — that's the Dependency Update Workflow in
  `CLAUDE.md` (runs through `tools/deps/audit.py`).

## Mental model

Four independently-versioned surfaces, two of which this skill acts on
directly and one of which it may hand off to `pulp project pin`:

| Surface | Source of truth | How to upgrade |
|---------|----------------|----------------|
| Pulp CLI / SDK | `~/.pulp/bin/pulp` (installed binary) | `pulp upgrade` |
| Consumer project SDK pin | project `pulp.toml` `sdk_version` + `find_package(Pulp X.Y.Z ...)` | `pulp project pin` |
| Pulp source checkout version | Pulp repo `CMakeLists.txt` / release metadata | `pulp version bump` + release workflow |
| Claude plugin | `.claude-plugin/plugin.json` | `/plugin install pulp` in Claude Code |
| Shipyard pin | `tools/install-shipyard.sh` | Dependency Update Workflow (out of scope) |

`pulp upgrade` downloads the new CLI binary and replaces the installed
one. After the Phase 8 Rust cutover, release archives are dual-binary:
Rust `pulp` is the user-facing CLI and sibling `pulp-cpp` is installed
as the C++ fallthrough delegate. A healthy install has both
`~/.pulp/bin/pulp` and `~/.pulp/bin/pulp-cpp`; use `PULP_USE_CPP=1
pulp <args>` or direct `pulp-cpp <args>` only for rollback/debug
comparisons. Do not hand-swap binaries in user/system locations.
The C++ `cmd_upgrade.cpp` path still matters for pre-cutover users
upgrading into a Rust release: it must copy the archive's sibling
payloads, including `pulp-cpp`, before replacing the running `pulp`
binary.

## Release archives are verified against `SHA256SUMS` before extraction

Both upgrade paths (Rust `install.rs`, which the shipped `pulp` runs, and
C++ `cmd_upgrade.cpp` for pre-cutover CLIs) and `pulp sdk install`
(`cli_sdk.cpp`) fetch the release's `SHA256SUMS` beside the archive and
refuse to run `tar` unless the archive's digest equals its manifest entry
(exact basename match, no substring). Expect `Verified SHA-256: <digest>`
on success. Refusals name the expected and observed digests, or say the
manifest had no entry / could not be fetched.

- The floor is `checksum_manifest_floor` in
  `tools/scripts/release_product_matrix.json`, the only place it is written:
  C++ gets it through `tools/cmake/PulpReleaseMatrix.cmake` into the generated
  `release_floors_gen.h`; Rust embeds the matrix with `include_str!`. At or
  above the floor a missing manifest is refused; below it the archive
  installs with a `WARNING: ... was NOT verified` line. The manifest is
  verified whenever it is present (it has shipped since v0.619.0); the floor
  governs only absence: 0.663.1 is the first release whose publish step
  guaranteed the manifest (`--exact-required`), so from there a missing one
  is a refusal rather than a warning. Releases 0.653.0 and 0.654.0 shipped
  without a manifest and still install with the warning.
- A refusal on a current release is not a reason to pass anything: nothing
  bypasses the check. Re-download, or check the release page's asset digests.
- The verifier is header-only (`tools/cli/release_checksum.hpp`) and covered by
  `pulp-test-cli-release-checksum`; the Rust twin lives in
  `install/tests.rs`. Keep their messages and rules identical when editing one.

Darwin releases at or above the control-broker floor also carry sibling
`pulp-control-broker`. The running CLI verifies the staged broker before any
binary replacement, retains the prior broker until the health-only LaunchAgent
reaches `reachable-unverified`, and rolls the binary, plist, and service back
together on failure. The first broker-bearing release has one transition
exception: an older CLI cannot preserve an archive member it does not know.
The replacement CLI therefore performs one bounded exact-version recovery on
its next invocation when the canonical sibling is missing, records the result,
and does not retry a hard failure on every command. This recovery never claims
trusted identity, consent, admission, or operation authority; retry explicitly
with `pulp upgrade --install --to <current-version>` after correcting a reported
failure. Custom install roots require explicit first-install acceptance rather
than being activated merely because `PULP_INSTALL_DIR` was set.

`pulp upgrade --notes` prints migration notes for the hop without
downloading anything. `pulp upgrade --notes --json` emits the same data
as a stable-shape JSON document for agent consumption (the `/upgrade`
slash command is the primary consumer).

### Agent pre-flight on an SDK pin change (inherit breaks before you hit them)

When you (an agent) are about to work in a project whose pinned Pulp SDK
version has moved — or you are the one moving it — run this FIRST, before
editing or building code against the new pin:

```bash
pulp upgrade --notes --json --from <OLD> --to <NEW>
```

The top-level `has_breaking` (bool) and `breaking_count` (int) are the signal
to branch on without parsing every entry:

- `has_breaking: false` → nothing to inherit; proceed normally.
- `has_breaking: true` → read each `breaking: true` entry's `body` and adapt
  the code (renamed CMake macros, changed APIs, moved config) BEFORE building,
  instead of waiting to hit the break as a compile error.

`pulp project bump` already prints these notes after a pin change and, when the
hop crosses a breaking note, shows a banner pointing here. The banner is on by
default; a user can silence it with `pulp config set upgrade.breaking_notes
false` or `PULP_NO_BREAKING_NOTES=1`. The JSON `has_breaking` / `breaking_count`
fields are always present regardless of that setting — only `breaking = true`
notes raise them, so a normal feature release is silent (low-noise by design).

Use `pulp project pin` only after deciding a consumer project should
move its SDK pin. It operates on the active project or the registry
(`--all`); it does not upgrade the global CLI and it refuses to treat
the Pulp source checkout as a consumer project.

### `pulp upgrade` updates BOTH CLI and SDK by default

Older `pulp upgrade` releases only swapped the CLI binary. Users who ran them
then built a project that still resolved its months-old SDK and silently missed
framework fixes. Current behavior:

- Default: fetch latest CLI binary + run `pulp sdk install --version
  <new>` immediately after the swap, so the matching SDK lands at
  `~/.pulp/sdk/<new>/` in the same invocation.
- `--cli-only` flag keeps the CLI-only behavior for the rare case
  where a user wants the new CLI paired with their current SDK.
- The SDK install is best-effort: a transient network failure logs a
  warning and tells the user to retry with `pulp sdk install`. The CLI
  swap is not rolled back — the user can always retry SDK install.
- When run from inside a project whose `pulp.toml` pins an explicit
  SDK version, the SDK install happens (so the new version is
  available globally) but the project's pin is left ALONE. A clear
  notice prints — "Project X stays on pinned SDK Y.Y.Y; latest
  available is Z.Z.Z — `pulp project unpin` to start tracking latest."
  Pinning is sacred when the user has explicitly pinned.

`pulp project pin <version>` is the new primary name for what
`pulp project bump` did. `bump` survives as a deprecated alias for
one minor release. New docs and skill examples should use `pin`.
`pulp project unpin` (new) flips a project back to floating mode
(`sdk_version = "latest"` in pulp.toml).

New projects created via `pulp create` default to floating mode
(`sdk_version = "latest"`), so they pick up framework fixes
automatically. `pulp create --pin` writes the exact version instead
for users who want reproducibility from day one.

## Discovery workflow (`pulp` on PATH is assumed)

The skill shells out to `pulp` — no hardcoded paths, no env-var
requirement. If `pulp` is not on PATH, tell the user to install first
(`curl -fsSL https://www.generouscorp.com/pulp/install.sh | sh`)
and stop.

Note: a successful `pulp upgrade` now **self-heals PATH** — after the
binary swap it appends the CLI's own directory to the user's shell
profile when it isn't already on `$PATH` (honoring `PULP_NO_MODIFY_PATH`).
This closes the gap where a CLI first installed via a source / SDK-prefix
install (`cmake --install --prefix ~/pulp-sdk` → `~/pulp-sdk/bin/pulp`)
could upgrade successfully yet still be "command not found" in a fresh
shell. So after an upgrade the user may need to restart their shell or
`source` the named profile, but no longer has to add PATH by hand. See
the `cli-maintenance` skill for the implementation
(`upgrade_install::ensure_dir_on_path`).

### Plugin ↔ CLI skew banner

Before running any `pulp` command, source the shared skew-check helper
so the user sees a single-line hint when the installed CLI is older
than the plugin's declared `min_cli_version`:

```bash
source "$(git rev-parse --show-toplevel 2>/dev/null || echo .)/tools/scripts/cli_version_check.sh"
pulp_cli_version_check   # no-ops silently if already checked this session
```

Behaviour:

- Banner (stderr, at most once per session):
  `[pulp] Claude plugin requires CLI >= v<MIN> but installed CLI is v<HAVE>. Run \`pulp upgrade\` or \`/upgrade\` in Claude Code.`
- Silent when CLI ≥ min, when the plugin manifest omits
  `min_cli_version` (older plugin builds), or when either version is
  non-numeric (dev builds).
- Overrides: `PULP_SKEW_CHECK_DISABLE=1` turns it off;
  `PULP_SKEW_CHECK_CACHE` overrides the session-marker directory.

The same skew logic is surfaced by `pulp doctor --versions` inline, so
users who prefer running the diagnostic directly see the finding there
too — the helper is a convenience for skill authors, not a second
source of truth.

1. **Identify the active plugin directory** (so the skill can resolve
   `docs/migrations/` for full-body lookups):

   ```bash
   pulp doctor --versions --json
   ```

   The JSON output contains `plugin_json_path` — walk up two levels
   (`dirname $(dirname $plugin_json_path)`) to reach the plugin root.

2. **Report the version skew at a glance** so the user sees where they are
   before deciding what to do. The JSON response also includes `cli`,
   `plugin`, `project_sdk`, and `findings[]` — surface those in a
   compact table.

3. **Fetch applicable migration notes** for the current hop.

   **Important:** user-invoked `pulp upgrade` and `pulp upgrade
   --install` force a synchronous release refresh instead of trusting
   the 24h cache. This is deliberate: v0.78.3 showed that a cache
   written minutes before a release can make a just-published version
   invisible. `pulp upgrade --check-only` remains the lightweight
   cache-aware probe; if you need release-fresh notes, capture the
   `Latest:` value from a refreshed/default `pulp upgrade` run and
   forward it as `--to "$LATEST"`.

   In CI / sandbox lanes, `PULP_UPDATE_CHECK_DISABLED=1` makes
   `--check-only` network-free. If the cache is empty in that mode, the
   command reports the installed CLI version plus an explicit
   disabled/not-queried latest line instead of querying GitHub Releases.

   ```bash
   pulp upgrade --notes --json                  # defaults: from = installed CLI, to = cached latest
   pulp upgrade --notes --json --to "$LATEST"   # recommended — use value captured from refreshed upgrade check
   pulp upgrade --notes --json --from X --to Y  # explicit hop
   ```

## Release verification gotcha

When verifying a newly published release, test from the previously
published CLI with a deliberately fresh cache that still names the old
release:

```bash
PULP_HOME="$(mktemp -d)" pulp upgrade --check-only --json
# seed/update-cache.json to latest_version=<previous> with a current timestamp
pulp upgrade
```

The default `pulp upgrade` path must refresh through GitHub and report
the new tag immediately. Then run `pulp upgrade --install --to X.Y.Z`
in an isolated install directory and confirm a follow-up `pulp upgrade`
reports both `Installed` and `Latest` as the new version. This catches stale
release-cache failures before the release is announced.

   Stable-shape output (do NOT rename these keys — they are a public
   surface the skill depends on, see `tools/cli/migration_index.hpp`):

   ```json
   {
     "from": "0.27.0",
     "to":   "0.30.0",
     "entries": [
       {
         "version":   "0.28.0",
         "breaking":  false,
         "summary":   "…",
         "applies_if":"cli_version_from < 0.28.0 && cli_version_to >= 0.28.0",
         "body":      "…"
       }
     ]
   }
   ```

4. **Render the notes inline in the chat**. For each entry:
   - If `breaking == true`, prefix with a loud tag (e.g. "BREAKING").
   - Print the `summary` on the first line.
   - Include the `body` verbatim — it's already Markdown.

## Interpreting migration notes

Each note describes one release's visible behaviour shift. Read them
like a pro-developer changelog, not a marketing blurb.

### Rendering-only notes still need an old/new proof

A non-breaking SDK hop can legitimately change pixels without changing an
API. In particular, the v0.773.1 Skia update corrected interpolation toward a
fully transparent gradient stop, so snapshots containing fades, washes, or
vignettes can change while opaque-to-opaque gradients remain identical. Do
not bless or re-record those baselines from the digest alone: amplify the
image diff, confirm it is confined to the gradient, and render the same source
against the preceding SDK when available. The applicable migration note under
`docs/migrations/` carries the expected-value probe and the exact scope.

### Breaking vs non-breaking

- `breaking: true` — requires user action: code change, config edit,
  habit change. Do not skip. Offer to grep the project for the affected
  symbols as a follow-up.
- `breaking: false` — informational. The upgrade works without
  intervention, but something worth knowing has changed.

### `applies_if` expressions

The filter runs in the CLI — by the time the skill receives JSON,
non-applicable entries are already stripped. You'll only see entries
whose `applies_if` matched the hop. Still: print the expression alongside
the note so a curious user can verify why it applied.

Grammar: Boolean combinations (`&&`, `||`, parentheses) over comparisons
of `cli_version_from` / `cli_version_to` against a literal semver. Six
operators: `<`, `<=`, `>`, `>=`, `==`, `!=`. See
`docs/migrations/README.md` for full details. The evaluator accepts the
whole grammar, but a note in `docs/migrations/` may only carry the canonical
`cli_version_from < X && cli_version_to >= X` for its own version `X`: the
index generator refuses anything else, because an extra `||` arm can show a
note for an unrelated upgrade while still passing a probe of the boundary
hops.

**`X` must be the version whose tag first contains the change, not the
version on `main` when the note was written.** Pulp bumps the version at
land, so a note authored against the current `CMakeLists.txt` version names a
release that is already tagged. Its `cli_version_from < X` then excludes every
user already on `X` or later who is upgrading into the real release, and the
note is never shown, while the index generator, which only checks that the
file name matches the `version` field, stays green. Guessing the next version
instead goes stale whenever another release lands first, and two PRs guessing
the same one collide on `vX.Y.Z.md`. So a PR never picks `X` (`tools/scripts/migration_note_guard.py` refuses a
hand-added `vX.Y.Z.md`): it writes
`docs/migrations/unreleased/<topic>.md` with only `breaking` and `summary`, and
the version-at-land bump that assigns the SDK version folds it into
`v<assigned>.md` with the canonical `applies_if`
(`tools/scripts/fold_migration_notes.py`). A change merged while a bump PR
waited ships in the release tagged on that bump's merge, so the next fold keys
its note to that earlier release (the earliest `vX.Y.Z` tag containing the
commit that added the note), appending to its `vX.Y.Z.md`. A note sitting in
`unreleased/` is not shown by `pulp upgrade --notes` until that fold; confirm
after release that `v<assigned>.md` exists and that `git merge-base --is-ancestor <merge> vX.Y.Z`
is true against that tag and false against the previous one.

## Common breaking-change patterns

These are the patterns that have shown up in Pulp migration notes. When
you spot one, suggest the exact grep / replacement to the user instead
of leaving them to figure it out from a prose paragraph.

### Link-target splits (a module's code moves to a new imported target)

**Pattern.** Code that used to live inside one installed archive moves to a
new `Pulp::*` target, e.g. the design importers leaving `Pulp::view-core` for
`Pulp::design-import`. Umbrella targets (`Pulp::view`) usually keep linking the
new target, so only consumers that link the narrower target directly break,
and they break at LINK time with undefined `pulp::...` symbols, not at compile
time.

**What to do.** Find the consumer's direct links to the narrowed target and add
the new one (or switch to the umbrella):

```bash
grep -rn "Pulp::view-core" --include=CMakeLists.txt --include=*.cmake .
```

**Authoring such a note.** Versions are assigned after merge
(`post_merge_assignment`), so the release number a split lands in is unknown
while its PR is open. Write the note in a follow-up once the split has merged
and the number is predictable from the pending bump, and verify it with
`pulp upgrade --notes --json --from <prev> --to <next>`.

### A transitive link edge removed (a target stops bringing another one)

**Pattern.** A target keeps its name and its code, but stops linking a
dependency it used to pass through. For example, 0.946.0 `Pulp::gpu-audio`
links `Pulp::gpu-device` instead of `Pulp::render`. A consumer that leaned on
the old edge still compiles, because the headers sit on a shared include
directory, and then fails at LINK time with undefined symbols from the
dependency it never named.

**What to do.** Find code that uses the dependency's types while linking only
the narrowed target, and link the dependency explicitly:

```bash
grep -rln "pulp/render/\(skia_surface\|headless_surface\|render_loop\|renderer3d\)" --include=*.cpp --include=*.hpp .
```

### Umbrella headers narrowed (an include stops arriving transitively)

**Pattern.** An umbrella header drops an `#include` that most of its users
never needed. For example, 0.943.0 `<pulp/view/widgets.hpp>` stopped
including `<pulp/view/visualizers.hpp>`. Unlike a link split, this breaks at
COMPILE time with an undeclared identifier, and the fix is an `#include`, not
a CMake edit.

**What to do.** Grep for the types the note names and add the header it lists:

```bash
grep -rln "SpectrogramView\|MultiMeter\|CorrelationMeter" --include=*.cpp --include=*.hpp .
```

### An always-present service becomes opt-in (an accessor turns into an installer)

**Pattern.** A member accessor that always returned an object is removed, and
the object is built only when a process-wide installer ran first. For example,
0.960.0 replaces `ScriptedUiSession::script_inspector()` with
`pulp::view::script_inspector(session)`, which is null unless
`pulp::view::install_script_inspector_bridge()` ran before the session was
constructed. The call site breaks at COMPILE time; a host that only swaps the
spelling then gets null at run time.

**What to do.** Find the old accessor, switch to the free function, and add the
installer where the host builds its UI:

```bash
grep -rn "script_inspector()" --include=*.cpp --include=*.hpp --include=*.mm .
```

### A link default narrows (code a build used to carry must now be declared)

**Pattern.** A default changes what a target links, so a capability the binary
carried silently is gone unless the project declares it. Nothing fails to
compile or link; the symptom is at run time. For example, macOS plug-ins now
link the lite editor stack (no Skia, Dawn or Tint) unless they declare
`UI_SCRIPT`, `GPU_UI` or `FULL_EDITOR`. A C++ editor whose view sets
`requires_gpu_host()` then opens on the CoreGraphics host, logs one
`[plugin-gpu-host] ... lite editor stack` warning, and draws its GPU-only
content blank.

**What to do.** Find the code that needs the dropped capability and declare it
in the build, then open the editor once and confirm the warning is gone:

```bash
grep -rn "set_requires_gpu_host(true)\|requires_gpu_host() const override" --include=*.cpp --include=*.hpp --include=*.mm .
```

Add `GPU_UI` to each matching plug-in's `pulp_add_plugin(...)`.

### CMake macro renames

**Pattern.** A `pulp_add_*` function in `tools/cmake/Pulp*.cmake` is
renamed, folded into `pulp_add_plugin(FORMATS ...)`, or split out of
one macro into several.

**What to do.**

```bash
# Find every call site.
grep -rn "pulp_add_ios_auv3\|pulp_add_auv3\|pulp_add_vst3_only" .
```

Propose the replacement form explicitly; do NOT rewrite the user's
CMakeLists.txt without confirmation. For unified-form migrations, show
a diff like:

```diff
- pulp_add_ios_auv3(MyPlugin …)
+ pulp_add_plugin(MyPlugin FORMATS AUv3 …)
```

### API surface changes

**Pattern.** A public C++ header under `core/*/include/pulp/**` adds,
removes, or renames a symbol that processors / view code use.

**What to do.**

```bash
# Find call sites of the old symbol.
grep -rn "OldProcessorAPI\|deprecated_function_name" .
```

Read the migration body for the replacement signature. If the change is
a deprecation (old API still works, emits a warning), flag that —
teams may want to migrate at their own pace.

#### VisualizationBridge polling ownership (0.807.0)

`VisualizationBridge::process()` no longer performs FFT/waveform analysis or
publishes those snapshots. When upgrading a consumer that reads spectrum or
waveform data, find the bridge reads and ensure exactly one non-audio-thread
owner calls `poll()` first:

```bash
rg -n "VisualizationBridge|read_spectrum|read_waveform" .
```

The usual owner is the editor frame clock. Keep `read_spectrum()` and
`read_waveform()` as cheap snapshot reads; do not move `poll()` onto the audio
callback or call it concurrently from multiple UI/worker paths. Treat
`configure()` and `reset()` as quiescent control-thread operations.

### Config file / path moves

**Pattern.** A file Pulp reads (e.g. `~/.pulp/config.toml`,
`pulp.toml`, `.pulp/projects.json`) changes location or key shape.

**What to do.** Most config moves are handled by the CLI on first run
(it migrates the old location to the new one and prints a one-line
notice). The note tells you whether manual action is needed. If it is,
quote the exact `pulp config set` / `pulp config unset` commands from
the body.

### CLI flag / subcommand changes

**Pattern.** A subcommand is renamed (e.g. `pulp check` → `pulp doctor`),
a flag changes shape (`--sign-key` → `--ed25519-key`), or an exit code
semantic changes (for example, silent-success → loud-failure).

**What to do.** If the user has CI scripts (`ci/`, `.github/workflows`,
`tools/local-ci/`, team-specific shell scripts), grep those for the
old invocation first — those are the scripts that'll silently break.

```bash
grep -rn "pulp <old-command>\|--<old-flag>" ci/ .github/ tools/ || true
```

## Bypass trailers

This flow does not add new bypass trailers, but users will ask about trailers
around upgrade-triggered PRs, so keep
the syntax handy (full table in `CLAUDE.md` → "Versioning & Skill-Sync
Policy"):

| Gate | Trailer (tip commit only, NEVER PR body) |
|------|-------------------------------------------|
| Version bump | `Version-Bump: <surface>=<patch\|minor\|major\|skip> reason="..."` |
| Skill update | `Skill-Update: skip skill=<name> reason="..."` |
| Auto-release | `Release: skip reason="..."` |

Trailer blocks must be **contiguous** — no blank lines between
trailers, or `git interpret-trailers --parse` stops reading. When
amending, rewrite the whole block, don't append.

## Decision tree (used by the `/upgrade` slash command)

```
pulp doctor --versions --json   → parse cli / plugin / project_sdk / findings
pulp upgrade --notes --json     → parse entries[]

present table:  CLI   vX.Y.Z → vA.B.C    (<hop>)
                plugin vP.Q.R → vP'.Q'.R' (if drift)
                project SDK vS.T.U  (skew warn from findings)

list applicable notes (inline, breaking flagged)

ask via AskUserQuestion:
  - "Upgrade CLI + pin project SDK" → `pulp upgrade` + `pulp project pin` in the active project
  - "Upgrade CLI only"            → `pulp upgrade`
  - "Pin project SDK only"        → `pulp project pin` in the active project or `--all` when explicitly requested
  - "Dismiss"                     → no action, remind user they can re-run `/upgrade`
```

## Testing the slash command

The `/upgrade` command shells out to `pulp upgrade --notes --json`.
A regression test lives in `test/test_cli_shellout.cpp` (the
`[issue-549]` tag) — it asserts that a synthetic hop produces the keys
the slash command depends on. If you add or rename a key in
`render_notes_json` (`tools/cli/migration_runtime.cpp`), update this
skill AND the slash command AND the test in the same PR.

## References

- Design: `planning/release-discovery-ux-design-2026-04-20.md` Section C
- CLI surface: `tools/cli/cmd_upgrade.cpp`, `tools/cli/migration_index.hpp`
- Migration doc schema: `docs/migrations/README.md`
- Diagnostics: `pulp doctor --versions`
- Update check: `pulp upgrade --check-only`
- Migration index: `pulp upgrade --notes --json`
- Plugin ↔ CLI skew: `min_cli_version`,
  `tools/scripts/cli_version_check.sh`, and the `plugin_min_cli` JSON field

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.