← Back to list

managing-npm
by Git-Fg
⭐ 1🍴 0📅 Jan 18, 2026
SKILL.md
name: managing-npm description: "Manages npm, pnpm, and bun dependencies following strict protocols. Use when installing, updating, or auditing packages. Do not use for TypeScript configuration or build tooling." allowed-tools: [Read, Edit, Bash(npm:), Bash(pnpm:), Bash(bun:), Bash(npx:)]
Dependency Management Protocol
Core Principle
NEVER manually edit package.json for dependency changes. Always use package manager commands.
Dependency Operations
Adding Dependencies
# Production dependency
bun add <package>
pnpm add <package>
npm install <package>
# Dev dependency
bun add -d <package>
pnpm add -D <package>
npm install --save-dev <package>
Removing Dependencies
bun remove <package>
pnpm remove <package>
npm uninstall <package>
Updating Dependencies
# Check outdated
bun outdated
pnpm outdated
npm outdated
# Update specific package
bun update <package>
pnpm update <package>
npm update <package>
# Update all (interactive)
pnpm update --interactive
npx npm-check-updates -i
Security Audit
# Run audit
bun audit
pnpm audit
npm audit
# Auto-fix vulnerabilities
pnpm audit --fix
npm audit fix
# Force fix (breaking changes allowed)
npm audit fix --force
Lockfile Hygiene
- Commit lockfiles (
bun.lockb,pnpm-lock.yaml,package-lock.json) - Never delete lockfiles to resolve conflicts - regenerate properly
- Use
--frozen-lockfilein CI environments
# CI install (no lockfile changes)
bun install --frozen-lockfile
pnpm install --frozen-lockfile
npm ci
Quality Gates
- Dependencies added via CLI, not manual edits
- Lockfile committed with changes
- No high/critical vulnerabilities in audit
- Unused dependencies removed
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon