sdcorejs-dep-update

Run safe npm/yarn/pnpm dependency upgrades with lockfile diff checks.

2|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill sdcorejs-dep-update
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sdcorejs-dep-update
Source: https://github.com/sdcorejs/sdcorejs-agent/tree/main/plugin/skills/sdcorejs-dep-update
Command: npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill sdcorejs-dep-update

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stops dependency upgrades from turning into lockfile sludge, breakage, or Sunday-night production incidents by enforcing incremental, reversible, testable upgrade steps.

Core Features & Use Cases

  • Safety gates: Blocks upgrades on main/master, requires clean working tree, and warns when no test suite exists.
  • Upgrade classification: Separates patch/minor/major risk, treats @sd-angular/core as pinned via _refs/angular-portal/core-version.md, and prioritizes Critical/High audit findings.
  • Deterministic workflow: Runs audit/outdated detection, upgrades one logical group at a time, sanity-checks diffs, then rebuilds, tests, lints, and performs a stack-appropriate smoke run.

Use Case: You review a Dependabot PR or run npm audit and need to refresh production dependencies while keeping changes reviewable and verifiable (Angular Portal / NestJS / Next.js).

Quick Start

Ask the AI to run a safe dependency upgrade workflow for your project after you request: "cập nhật dependency để sửa các lỗi bảo mật và cập nhật các package hiện outdated".

Frequently Asked Questions about sdcorejs-dep-update

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

FAQPage Schema
How do I safely upgrade npm dependencies without breaking my NestJS or Next.js app?

Safe dependency upgrades require classifying patch, minor, and major risks, then upgrading one logical group at a time with lockfile diff sanity checks and full test runs. This workflow prevents regressions and reduces lockfile churn across NestJS, Next.js, and Angular Portal projects.

What is the best way to handle Dependabot PRs and remediate npm audit vulnerabilities?

Handling Dependabot PRs and npm audit remediation involves prioritizing Critical and High security findings, applying incremental upgrades, and running stack-specific smoke verification. This ensures security patches are reviewable, reversible, and verifiable before merging into production.

Can I run a dependency update workflow directly on the main branch?

Dependency updates are blocked on main or master branches to enforce safety. The workflow requires a clean working tree and a dedicated branch, ensuring upgrades remain incremental, reversible, and isolated from production code until full test and lint validation passes.

How do lockfile diffs help when updating yarn or pnpm packages?

Lockfile diffs provide sanity checks during package updates by exposing unexpected version changes or transitively pulled dependencies. Reviewing these diffs after upgrading one logical group ensures you catch lockfile sludge and maintain deterministic builds across npm, yarn, and pnpm.

Does this dependency update workflow support pinned core constraints like @sd-angular/core?

Yes, the workflow treats @sd-angular/core as pinned by referencing _refs/angular-portal/core-version.md. It enforces pinned core constraints during semver classification, ensuring major version bumps do not accidentally break your Angular Portal stack during routine dependency refreshes.

What happens if I try to upgrade dependencies but my project has no test suite?

Upgrading dependencies without a test suite triggers a safety warning. The workflow enforces full test and lint runs to verify stack-specific smoke checks, so missing tests increase regression risk and prevent automated validation of your npm or yarn package updates.