update-package

Automate dependency updates in package.json with build and test verification.

459|737|Updated Apr 13, 2018
One-click install
npx skills add https://github.com/openshift/console --skill update-package-openshift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-package
Source: https://github.com/openshift/console/tree/main/.claude/skills/update-package
Command: npx skills add https://github.com/openshift/console --skill update-package-openshift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Open-source and enterprise projects often accumulate drift in package dependencies, causing security risks, build failures, and maintenance overhead. This skill provides a systematic, automated approach to update dependencies with safety checks, reducing manual toil and preventing breaking changes from going unnoticed.

Core Features & Use Cases

  • Dependency analysis: reads package.json including dependencies, devDependencies, and resolutions to determine current versions.
  • Smart upgrades: fetches latest stable versions, suggests compatible upgrades, and applies changes with optional migration guidance when available.
  • Build & test verification: runs yarn install, builds, and executes tests to ensure updates do not break the project.
  • Automated fix cycle: if build or test failures occur, the tool auto-fixes where possible or guides follow-up actions, repeating until success.
  • Commit & report: reports changes, breaking changes, and commits with a descriptive message.

Quick Start

Provide the package name and run the update-package workflow to automatically analyze, update, build, and test.

Frequently Asked Questions about update-package

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely update package dependencies without breaking builds?

To safely update package dependencies, you need a workflow that reads package.json, applies compatible version bumps, and runs builds with tests. This process coordinates analysis and verification to ensure updates do not break the project.

What happens if a dependency update causes tests to fail?

When a dependency update causes test failures, an automated fix cycle attempts to resolve the issues. The tool auto-fixes where possible or guides follow-up actions, repeating until build and test success.

Can I automatically analyze package.json for dependency drift and migration guides?

Yes, you can analyze package.json dependencies, devDependencies, and resolutions to detect version drift. The process fetches latest stable versions and applies changes with optional migration guidance when available.

What is the best way to automate dependency bumps and commit the changes?

The best way to automate dependency bumps is to use a coordinated workflow that updates versions, verifies builds, and commits the changes. This ensures updates are committed with a descriptive message reporting any breaking changes.

Does updating devDependencies require the same build and test verification as regular dependencies?

Yes, updating devDependencies requires the same build and test verification. The workflow reads both dependencies and devDependencies, applying safe version bumps and running tests across the entire project to prevent unnoticed breaking changes.

Why should I use an automated workflow instead of manually updating package versions?

Automated dependency updates reduce manual toil and prevent security risks caused by package drift. By systematically analyzing, building, and testing updates, the workflow catches breaking changes that manual updates often miss.