Skip to content
Back to skills

Dependency Update

ASecurity

Process for safely adding or updating npm dependencies

  • 60 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
ai-agentsexpressapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 12, 2026

npx -y skills add albinotonnina/echos --skill dependency-update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Update?

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

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

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-update
description: Process for safely adding or updating npm dependencies
disable-model-invocation: true
---

## Adding a new dependency

1. Check bundle impact — justify packages >50 KB
2. Verify licence: must be MIT, Apache-2.0, BSD-2-Clause, or BSD-3-Clause
3. Check maintainer activity: last publish within 12 months, >1 maintainer for critical packages
4. Pin to exact version for CLI tools; use `^` for library dependencies
5. Add to `package.json` in the correct section (`dependencies` vs `devDependencies`)
6. Run `npm install` and commit the updated lockfile

## Updating an existing dependency

1. Read the changelog between current and target version — note any breaking changes
2. Run the full test suite after the update: `npm test`
3. Run `npm audit` and resolve any new advisories before committing
4. Update in a separate commit from feature work: `chore(deps): bump express from 4.18 to 4.19`

## Never do

- Do not use `npm install --legacy-peer-deps` without a comment explaining why
- Do not add a dependency to solve a problem that already has a solution in the codebase
- Do not add polyfills for browser APIs if target environments already support them

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 ai-agents →

Comments

Loading comments…

Newsletter

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