package-dependency-management

Govern package-manager and dependency changes across lockfiles, licenses, and vulnerabilities.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill package-dependency-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-dependency-management
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/package-dependency-management
Command: npx skills add https://github.com/machenjie/rd-skills --skill package-dependency-management

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents risky dependency changes by enforcing lockfile discipline, transitive risk review, license compatibility checks, and supply-chain security guardrails across ecosystems.

Core Features & Use Cases

  • Dependency governance: Choose and change package-manager behavior, lockfiles, workspaces, and resolution rules with explicit justification.
  • Reproducible installs: Require deterministic CI installs (e.g., npm ci, frozen installs, locked builds) to avoid “works on my machine” drift.
  • Supply-chain + compliance checks: Review transitive graphs, install-script risk, SBOM generation, vulnerability scanning, and license compatibility before merge.
  • Runtime compatibility control: Detect when a dependency change implies runtime shifts and escalate accordingly.

Quick Start

Use the package-dependency-management skill to vet a proposed dependency upgrade by checking lockfile reproducibility, transitive impact, license compatibility, SBOM requirements, and vulnerability posture before approving the change.

Frequently Asked Questions about package-dependency-management

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

FAQPage Schema
How do I prevent lockfile drift when upgrading dependencies?

To prevent lockfile drift when upgrading dependencies, enforce reproducible CI install commands like frozen installs or locked builds. This ensures deterministic installations across environments and stops unverified transitive package updates from altering the dependency graph unexpectedly.

What is transitive supply-chain risk in a dependency graph?

Transitive supply-chain risk in a dependency graph refers to vulnerabilities introduced by indirect packages pulled in by your direct dependencies. Managing this risk requires reviewing the full transitive graph, auditing install-script behavior, and running vulnerability scanning before merging changes.

How do I check license compatibility before adding a new package?

To check license compatibility before adding a new package, review the transitive dependency graph and enforce supply-chain compliance checks. This process verifies that all indirect packages meet legal requirements and generates an SBOM to document the approved licenses.

When do I need to generate an SBOM for dependency changes?

You need to generate an SBOM for dependency changes whenever you add, upgrade, or remove packages to maintain supply-chain security. Generating an SBOM documents the exact dependency graph, enabling vulnerability scanning and license compatibility verification before merge.

Does dependency management work for monorepo and workspace setups?

Yes, dependency management works for monorepo and workspace setups by governing package-manager behavior and resolution rules across the dependency graph. It controls workspace dependency changes, enforces lockfile discipline, and escalates runtime compatibility shifts accordingly.

Why should I review install-scripts when vendoring dependencies?

You should review install-scripts when vendoring dependencies because malicious scripts can execute arbitrary commands during installation, introducing supply-chain risk. Auditing install-scripts ensures that vendored packages do not compromise your environment before the lockfile is finalized.