/pf-migration:pf-release-candidate-updatefrom pf-migration
Updates @patternfly/* npm dependencies to latest release candidate versions and verifies build/tests pass. Use when testing upcoming PatternFly releases or upgrading to RC packages.
Ships in pf-migration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Update a consumer project's package.json to the latest PatternFly release candidates (e.g. patternfly, patternfly-react, etc.) on npm, install dependencies, verify the project builds and tests pass, and fix any failures introduced by the upgrade.
Node.js is required to run the bundled script (for JSON parsing and package.json updates).
command -v node >/dev/null 2>&1 || { echo "Error: This skill requires Node.js." >&2; exit 1; }
package.json), not from ai-helpers.npm view and package install.$CLAUDE_SKILL_DIR/scripts/latest-release-candidates.sh.- [ ] Step 1: Resolve latest release candidate versions
- [ ] Step 2: Update package.json
- [ ] Step 3: Install dependencies
- [ ] Step 4: Build
- [ ] Step 5: Run tests
- [ ] Step 6: Fix build/test failures (loop until green)
- [ ] Step 7: Summarize changes
Run the script to fetch the latest release candidate for each canonical PatternFly package:
bash "$CLAUDE_SKILL_DIR/scripts/latest-release-candidates.sh" --json
The script queries npm's prerelease dist-tag, then falls back only to the highest published version whose prerelease identifier is an approved RC channel (prerelease or rc). If no RC exists, report and skip that package. Packages covered:
@patternfly/patternfly, @patternfly/react-charts, @patternfly/react-code-editor, @patternfly/react-core, @patternfly/react-drag-drop, @patternfly/react-icons, @patternfly/react-styles, @patternfly/react-table, @patternfly/react-templates, @patternfly/react-tokens, @patternfly/react-topology, @patternfly/react-virtualized-extension, @patternfly/quickstarts, @patternfly/react-user-feedback, @patternfly/react-console, @patternfly/react-log-viewer, @patternfly/react-catalog-view-extension, @patternfly/react-component-groups, @patternfly/react-data-view, @patternfly/chatbot
If the user provided specific versions, use those instead and skip the script.
Update only PatternFly packages. Do not change unrelated dependencies.
In every package.json at the project root (and in workspaces if the repo is a monorepo):
dependenciesdevDependenciespeerDependenciesoptionalDependenciesresolutions (Yarn)overrides (npm)For each @patternfly/* entry that appears in the canonical list above, set the version to the resolved release candidate. Leave version prefixes (^, ~) off — use exact candidate versions (e.g. "6.6.0-prerelease.16").
Automated update (root package.json only):
bash "$CLAUDE_SKILL_DIR/scripts/latest-release-candidates.sh" --update package.json
For monorepos, run --update on each workspace package.json that contains PatternFly deps, or update them manually using the --json output.
Do not add packages the project does not already use unless the user explicitly asks.
Detect the package manager from lockfiles:
| Lockfile | Install command |
|---|---|
pnpm-lock.yaml | pnpm install |
yarn.lock | yarn install |
package-lock.json | npm install |
| none | npm install |
If install fails on peer dependency conflicts, retry with the project's usual workaround (--legacy-peer-deps for npm, yarn install --ignore-engines only if the project already uses it). Prefer fixing version alignment over forcing installs.
Run the project's build script:
npm run build # or yarn build / pnpm build
If there is no build script, run whatever compile step the project uses (tsc, vite build, webpack, etc.) and note the command used.
Build must pass before moving on.
npm test # or yarn test / pnpm test
If the project separates unit and integration tests, run the full suite the CI runs (check .github/workflows or package.json scripts).
All tests must pass before finishing.
When build or tests fail after the upgrade, fix the project code — do not pin back to older versions unless the failure is an upstream bug with no workaround.
@patternfly/* import paths (charts, chatbot, component-groups dynamic paths, missing CSS).pf-c-*, pf-v5-*, or hardcoded values.build → fail? → fix → build
test → fail? → fix → test
Repeat until both build and tests pass. Keep fixes minimal and scoped to what the upgrade broke.
Report to the user:
@patternfly/* packagepackage.json that lists PatternFly deps; keep versions consistent across workspaces.| Symptom | Likely fix |
|---|---|
Module not found: @patternfly/... | Wrong import path; scan for invalid @patternfly/* import paths |
| Peer dependency warnings on install | Align all @patternfly/* packages to the same release candidate set |
| Type errors on removed props | Check PatternFly component API / migration docs for replacement props |
| CSS/layout regressions | Verify base.css and feature CSS imports; scan for legacy classes |
| Test snapshot failures | Review diff; update only if PF change is expected |
eval/cases/basic-rc-update/annotations.yaml (opens in a new tab)eval/cases/basic-rc-update/input.yaml (opens in a new tab)eval/cases/basic-rc-update/package.json (opens in a new tab)eval/cases/pnpm-project/annotations.yaml (opens in a new tab)eval/cases/pnpm-project/input.yaml (opens in a new tab)eval/cases/pnpm-project/package.json (opens in a new tab)eval/cases/pnpm-project/pnpm-lock.yaml (opens in a new tab)eval/cases/user-provided-versions/annotations.yaml (opens in a new tab)eval/cases/user-provided-versions/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)scripts/latest-release-candidates.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
patternfly, release-candidate, dependency-update, npm-update, prerelease
3 skills in this plugin
/pf-css-migration-scanScan code for legacy PatternFly CSS classes and recommend PF6-safe replacements. Use when upgrading from PF4/PF5 or auditing a codebase for deprecated class names./pf-react-migration-scanScan code for @patternfly/react-* API breaking changes and produce a markdown report. Use when upgrading PatternFly React versions, auditing component API usage, or checking for removed props, renamed components, or import path changes.npx claudepluginhub rh-uxd/ai-helpers --plugin pf-migrationOther plugins' skills for the same job