From cook
Safely updates Node.js project dependencies by analyzing risk levels (patch/minor/major), creating backups, running tests, and providing structured upgrade plans. Supports npm, yarn, pnpm.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cook:update-node-depsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Node.js プロジェクトの依存関係を安全に更新します。
Node.js プロジェクトの依存関係を安全に更新します。
# 依存関係の状態を確認して Claude に依頼
npm outdated
「package.json の依存関係を最新バージョンに更新して」
# 現在の依存関係を確認
cat package.json
「この Node.js プロジェクトの依存関係を分析して更新可能なパッケージを教えて」
# アップデート可能な一覧を確認
npm outdated
「これらのパッケージの更新における危険度を分析して」
# 包括的な依存関係更新
cat package.json
「Node.js の依存関係を分析し、以下を実行して:
1. 各パッケージの最新バージョンを調査
2. 破壊的変更の有無を確認
3. 危険度を評価 (安全・注意・危険)
4. 必要なコード変更を提案
5. 更新版 package.json を生成」
# 安全な段階的更新
npm outdated
「メジャーバージョンアップを避けて、安全にアップデート可能なパッケージのみ更新して」
# 特定パッケージの更新影響分析
「express を最新バージョンに更新した場合の影響と必要な変更を教えて」
# Release Notes を含む詳細分析
cat package.json && npm outdated
「依存関係を分析し、各パッケージについて:
1. 現在 → 最新バージョン
2. 危険度評価 (安全・注意・危険)
3. 主な変更点 (CHANGELOG から)
4. 必要なコード修正
をテーブル形式で提示して」
# TypeScript プロジェクトの型定義考慮
cat package.json tsconfig.json
「TypeScript の型定義も含めて依存関係を更新し、型エラーが発生しないように更新計画を立てて」
安全 (🟢):
- パッチバージョンアップ (1.2.3 → 1.2.4)
- バグ修正のみ
- 後方互換性保証
注意 (🟡):
- マイナーバージョンアップ (1.2.3 → 1.3.0)
- 新機能追加
- 非推奨警告あり
危険 (🔴):
- メジャーバージョンアップ (1.2.3 → 2.0.0)
- 破壊的変更
- API の削除・変更
# バックアップ作成
cp package.json package.json.backup
cp package-lock.json package-lock.json.backup
# 更新実行
npm update
# 更新後の確認
npm test
npm run build
npm audit
更新後は必ず動作確認を実施してください。問題が発生した場合は以下で復元:
cp package.json.backup package.json
cp package-lock.json.backup package-lock.json
npm install
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cookSafely updates Node.js dependencies by analyzing risk, checking changelogs, and suggesting version bumps. Invoked via "npm 패키지 업데이트해줘" or "Node.js 의존성 업데이트".
Safely updates Node.js dependencies with risk analysis (patch/minor/major) and automatic backup/restore. Handles npm, yarn, and pnpm projects.
Updates Node.js dependencies safely by analyzing risk levels (patch/minor/major), checking changelogs, and creating backups before applying changes.