/update-node-deps
Safely update Node.js dependencies. Trigger with "update npm packages", "update Node.js dependencies", "upgrade package.json".
$ npx -y skills add wasabeef/claude-code-cookbook --skill update-node-deps --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/update-node-deps
Context preview
The summary Claude sees to decide when to auto-load this skill.
Safely update Node.js dependencies. Trigger with "update npm packages", "update Node.js dependencies", "upgrade package.json".
SKILL.md
update-node-deps.SKILL.mddescription: 'Safely update Node.js dependencies. Trigger with "update npm packages", "update Node.js dependencies", "upgrade package.json".'
allowed-tools:
- Bash(npm *)
- Bash(npx *)
- Bash(yarn *)
- Bash(pnpm *)
- Read
- Edit
Safely update Node.js dependencies
Safely update dependencies in your Node.js project.
Usage
# Check dependency status and request Claude's help
npm outdated
"Please update the dependencies in package.json to their latest versions"
Basic Examples
# Check current dependencies
cat package.json
"Analyze this Node.js project's dependencies and tell me which packages can be updated"
# Check list of updatable packages
npm outdated
"Analyze the risk level of updating these packages"
Integration with Claude
# Comprehensive dependency update
cat package.json
"Analyze Node.js dependencies and perform the following:
1. Research the latest version of each package
2. Check for breaking changes
3. Evaluate risk level (safe, caution, dangerous)
4. Suggest necessary code changes
5. Generate updated package.json"
# Safe, gradual update
npm outdated
"Update only packages that can be safely updated, avoiding major version upgrades"
# Impact analysis for specific package update
"Tell me the impact and necessary changes when updating express to the latest version"
Detailed Examples
# Detailed analysis including release notes
cat package.json && npm outdated
"Analyze dependencies and provide the following for each package in table format:
1. Current → Latest version
2. Risk evaluation (safe, caution, dangerous)
3. Main changes (from CHANGELOG)
4. Required code fixes"
# TypeScript project with type definitions consideration
cat package.json tsconfig.json
"Update dependencies including TypeScript type definitions and create an update plan that avoids type errors"
Risk Criteria
Safe (🟢):
- Patch version upgrade (1.2.3 → 1.2.4)
- Bug fixes only
- Backward compatibility guaranteed
Caution (🟡):
- Minor version upgrade (1.2.3 → 1.3.0)
- New features added
- Deprecation warnings
Dangerous (🔴):
- Major version upgrade (1.2.3 → 2.0.0)
- Breaking changes
- API removals or modifications
Execution of Update
# Create backups
cp package.json package.json.backup
cp package-lock.json package-lock.json.backup
# Execute update
npm update
# Verify after update
npm test
npm run build
npm audit
Notes
Always verify functionality after updates. If issues occur, restore with:
cp package.json.backup package.json
cp package-lock.json.backup package-lock.json
npm install
Read more
description: 'Safely update Node.js dependencies. Trigger with "update npm packages", "update Node.js dependencies", "upgrade package.json".' allowed-tools: - Bash(npm *) - Bash(npx *) - Bash(yarn *) - Bash(pnpm *) - Read - Edit
Safely update Node.js dependencies
Safely update dependencies in your Node.js project.
Usage
# Check dependency status and request Claude's help npm outdated "Please update the dependencies in package.json to their latest versions"
Basic Examples
# Check current dependencies cat package.json "Analyze this Node.js project's dependencies and tell me which packages can be updated" # Check list of updatable packages npm outdated "Analyze the risk level of updating these packages"
Integration with Claude
# Comprehensive dependency update cat package.json "Analyze Node.js dependencies and perform the following: 1. Research the latest version of each package 2. Check for breaking changes 3. Evaluate risk level (safe, caution, dangerous) 4. Suggest necessary code changes 5. Generate updated package.json" # Safe, gradual update npm outdated "Update only packages that can be safely updated, avoiding major version upgrades" # Impact analysis for specific package update "Tell me the impact and necessary changes when updating express to the latest version"
Detailed Examples
# Detailed analysis including release notes cat package.json && npm outdated "Analyze dependencies and provide the following for each package in table format: 1. Current → Latest version 2. Risk evaluation (safe, caution, dangerous) 3. Main changes (from CHANGELOG) 4. Required code fixes" # TypeScript project with type definitions consideration cat package.json tsconfig.json "Update dependencies including TypeScript type definitions and create an update plan that avoids type errors"
Risk Criteria
Safe (🟢): - Patch version upgrade (1.2.3 → 1.2.4) - Bug fixes only - Backward compatibility guaranteed Caution (🟡): - Minor version upgrade (1.2.3 → 1.3.0) - New features added - Deprecation warnings Dangerous (🔴): - Major version upgrade (1.2.3 → 2.0.0) - Breaking changes - API removals or modifications
Execution of Update
# Create backups cp package.json package.json.backup cp package-lock.json package-lock.json.backup # Execute update npm update # Verify after update npm test npm run build npm audit
Notes
Always verify functionality after updates. If issues occur, restore with:
cp package.json.backup package.json cp package-lock.json.backup package-lock.json npm install
A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.
Repo: wasabeef/claude-code-cookbook
Other skills on claude-code-cookbook.
- /analyze-dependencies
Analyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?", "check module coupling", "find layer violations". Generates dependency matrix, fan-in/fan-out analysis, and prioritized
Open skill - /analyze-performance
Performance analysis based on Core Web Vitals with UX scoring. Trigger with "analyze performance", "improve speed", "check Core Web Vitals", "page speed", "improve LCP", "identify performance issues".
Open skill - /check-fact
Verify information accuracy against codebase and documentation. Trigger with "is this correct?", "fact check", "verify this", "is this accurate?".
Open skill - /check-prompt
Evaluate and improve AI prompt quality. Trigger with "check this prompt", "evaluate prompt quality", "improve this prompt".
Open skill - /commit-message
Generate commit messages from staged changes. Trigger with "suggest commit message", "generate commit message", "what should the commit say?", "write commit message".
Open skill - /context7
Search technical documentation via Context7 MCP. Trigger with "check the docs", "look up documentation", "how to use this library?", "API reference".
Open skill

