Skip to content
Back to skills

Dependency Governance

ASecurity

Guidelines for adding, updating, auditing, and removing dependencies while preserving lockfile integrity and supply chain safety

  • 225 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
documentationtypescriptgosecuritydocumentation

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill dependency-governance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Governance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dependency Governance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-dependency-governance/badge)](https://www.skillsdirectory.com/skills/neversight-dependency-governance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dependency-governance
description: Guidelines for adding, updating, auditing, and removing dependencies while preserving lockfile integrity and supply chain safety
---

# Instructions

- **Use Existing Capabilities First:** Check the current standard library, framework utilities, and installed dependencies before adding a package.
- **Lockfile Alignment:** Use the package manager implied by the lockfile. Never mix npm, yarn, pnpm, and bun in the same project unless the repo already documents that strategy.
- **Package Selection Criteria:** Prefer actively maintained packages with recent releases, clear licenses, strong TypeScript support where relevant, low transitive dependency count, and documented security practices.
- **Minimal Version Changes:** Add or update only the dependency needed for the task. Avoid broad package upgrades unless the user requested a dependency refresh.
- **Vulnerability Handling:** For security updates, inspect whether the vulnerable path is reachable, apply the narrowest safe fix, and run the project test/build commands afterward.
- **Removal Hygiene:** When removing a dependency, delete unused imports, configuration, types, scripts, and documentation references.

# Gotchas

- **Transitive Risk:** A small package can pull in a large dependency tree. Inspect dependency impact before adopting it.
- **License Drift:** New packages can introduce licenses that are incompatible with the project or organization.
- **Install Script Risk:** Packages with postinstall scripts can execute code during installation. Treat them as higher risk.
- **Lockfile Churn:** Reinstalling with the wrong package manager can rewrite the lockfile and create noisy, risky diffs.

# Validation Loops

1.  **Manifest Check:** Confirm `package.json` and the relevant lockfile changed consistently.
2.  **Audit Check:** Run the project-appropriate audit command and document unresolved findings.
3.  **Build/Test Check:** Run the affected test, type, lint, and build commands.
4.  **Usage Check:** Search for old imports or stale docs after upgrades/removals.

Files in this skill

  • SKILL.md2 KB
  • description_ar.txt191 B
  • description_cn.txt100 B
  • description_de.txt166 B
  • description_en.txt129 B
  • description_es.txt171 B
  • description_fr.txt204 B
  • description_it.txt175 B
  • description_ja.txt178 B
  • description_ko.txt136 B
  • description_ru.txt276 B
  • description_tw.txt103 B
  • stats.json68 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.