Agent skill
personal-installing-npm-packages
npm、yarn、pnpm、bun で適切なバージョンのパッケージをインストールします。npm、yarn、pnpm、bun を使ってパッケージをインストールするときに必ず使用してください。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/installing-npm-packages
SKILL.md
パッケージインストール
ワークフロー
1. パッケージマネージャーの検出
1-1. packageManager フィールドを確認
grep '"packageManager"' package.json
1-2. lock ファイルを確認(packageManager フィールドがない場合)
ls package-lock.json yarn.lock pnpm-lock.yaml bun.lockb 2>/dev/null
2. 最新バージョンを取得
npm view <pkg> version
3. インストール
| 種類 | npm | yarn | pnpm | bun |
|---|---|---|---|---|
| dependencies | npm install <pkg>@<v> |
yarn add <pkg>@<v> |
pnpm add <pkg>@<v> |
bun add <pkg>@<v> |
| devDependencies | npm install -D <pkg>@<v> |
yarn add -D <pkg>@<v> |
pnpm add -D <pkg>@<v> |
bun add -d <pkg>@<v> |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?