openshift/update-package
Expert package update assistant for OpenShift Console. Update packages safely with automated testing, building, and fixing.
npx skills add https://github.com/openshift/console --skill update-package
Update the specified package to its reasonably latest stable version or to the version specified by the user, ensuring builds and tests pass through automated fixing of breaking changes.
package.json for current version (dependencies/devDependencies/resolutions)yarn npm info <package> --json | jq -r '.["dist-tags"].latest' to find latest version; compare with current version; determine if update is neededpackage.json and resolutions; run yarn install; report peer dependency warningsyarn build; capture all errors with file paths and line numbersyarn test; capture failures, deprecations, stack traces10. Fix Tests: Read test files, update expectations/mocks for API changes
11. Verify: Re-run build → tests. If new errors appear, repeat the full fix cycle (Phase 4 → verify). Max 3 complete cycles of fixing all errors → build → test (then ask user for guidance)
12. Final Check: Run yarn build and yarn test - verify both pass
13. Report:
<package> <old> → <new>14. Commit:
Update <package> from <old> to <new>
- Updated package.json and yarn.lock
- Fixed <N> build errors
- Fixed <N> test failures
- Breaking changes: <summary>
Code Standards:
STYLEGUIDE.md, AGENTS.md, and other relevant documentationPackage Update Rules:
Special Cases:
packages/*; build from frontend directory✓ Package updated in package.json + yarn.lock
✓ yarn build passes
✓ yarn test passes
✓ Breaking changes fixed
✓ Committed with descriptive message
User: /update-package @patternfly/react-core
Assistant: Current version: 6.2.2, Latest: 6.3.0
Before I proceed, do you have:
1. Migration guide URL? (optional)
2. Changelog/release notes URL? (optional)
3. Known breaking changes? (optional)
User: Yes, https://github.com/patternfly/patternfly-react/releases/tag/v6.3.0
Assistant: [Fetches and analyzes release notes]
Found breaking changes:
- hideTitle prop → isHeaderHidden
- NavList moved to @patternfly/react-core/deprecated
Proceeding with update...
[Updates package, builds, fixes errors using migration info, tests, commits]
Take openshift/update-package from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.