package-manager-ops
БесплатноЗапускает вложенные скриптыНе проверенUse when installing, pinning, upgrading or debugging JS and PHP dependencies with npm, Yarn, pnpm, Bun or Composer: two lockfiles, switching managers, npm ci…
от 0xDarkMatter★ 86 звёзд на GitHubОб этом скилле
Package Manager Operations
Day-to-day use of npm, Yarn, pnpm, Bun and Composer: which one a repo uses, which install
command belongs in dev, CI and deploy, how to pin Node and PHP so every machine agrees,
how to run packages without fetching strangers' code, and how to get off the legacy
tools. Written for server-rendered sites (Craft CMS, Laravel, WordPress) on DDEV with a
Vite or Laravel Mix build, where these mistakes are common: two lockfiles, unpinned
Node, no require.php, end-of-life PHP and npx in READMEs.
Facts verified as of 2026-10-06 against docs.npmjs.com, yarnpkg.com, pnpm.io, bun.com, getcomposer.org (checked against the 2.10.3 tag), nodejs.org, php.net and docs.ddev.com. Current majors: npm 12 (since 2026-07-08; Node 24 and 26 still bundle npm 11), pnpm 12, Yarn 4, Composer 2 (2.10.3), Bun 1. Each reference cites its sources. For a version-sensitive answer, read
assets/package-manager-facts.jsonand re-check upstream when this date is stale; keeping it current (scripts/check-pm-facts.py) is in version-pinning.md.
Start here
| You find or are asked | Do | Read |
|---|---|---|
| Any repo, before changing dependencies | Run pm-audit (below); fix the findings relevant to the change and report the rest | diagnostics.md |
Two lockfiles (package-lock.json + yarn.lock) |
Keep the one the deploy uses, delete the other, reinstall, commit with the reason | detect-and-choose.md |
| Choosing a manager, or switching managers | npm by default for a site; switch by importing the lockfile, never by deleting it | detect-and-choose.md |
| "Which command in CI / on deploy?" | The frozen one: npm ci, composer install |
install-semantics.md |
npm install or composer update in a deploy hook |
Replace with the frozen install | install-semantics.md |
| Offline or air-gapped CI | npm ci --offline or pnpm install --offline from a filled cache, or a mirror inside the network |
caches-and-ci.md |
| Composer autoloader for production | -o always; -a only when no class appears at run time |
install-semantics.md |
No .nvmrc, or pins that disagree with DDEV |
One Node major in .nvmrc, engines, DDEV |
version-pinning.md |
composer.json without require.php or config.platform.php |
Add both; match DDEV php_version |
version-pinning.md |
npx something in scripts or README |
devDependency, or an exact @x.y.z pin |
npx-exec-safety.md |
| A planned dependency upgrade | Survey, then one layer and one major at a time | upgrades.md |
| ERESOLVE during an install | Read which peer range conflicts; fix the version, not the flag | diagnostics.md |
| Duplicate versions, or an unexpected transitive dependency | Find who pulls it in, then dedupe or move the range that holds it back | upgrades.md |
| A native package "installed" but its binary is missing | Check the platform and the lockfile's optional per-platform packages first; only if a lifecycle script was blocked, follow the project's install-script policy (owned by supply-chain-defense) |
platform-gotchas.md, scripts-and-workspaces.md |
| Monorepo, workspaces, Composer scripts or plugins | One lockfile at the root; allow plugins one by one | scripts-and-workspaces.md |
| Adding a dependency to one workspace | Target the workspace (-w, yarn workspace, --filter), not the root |
scripts-and-workspaces.md |
| Private packages, tokens, mirrors | Env references only; never a token in git | registries-and-auth.md |
| Slow or flaky CI installs | Cache the download cache keyed on the lockfile | caches-and-ci.md |
| Windows, DDEV host-vs-container, Apple Silicon oddities | Install where the code runs; check node -p process.arch |
platform-gotchas.md |
bower.json, node-sass, Yarn 1, PHP 8.1 or older |
Planned exit, one at a time | legacy-exits.md |
| EINTEGRITY | Diagnose the artifact, the registry and the cache before touching the lockfile | [diagnostics.md](references |
Установить package-manager-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteBashGlobGrepВложенные файлы
FAQ
Что делает скилл package-manager-ops?
Use when installing, pinning, upgrading or debugging JS and PHP dependencies with npm, Yarn, pnpm, Bun or Composer: two lockfiles, switching managers, npm ci vs install, frozen or offline CI installs, workspace targeting, Node/PHP pins vs DDEV, packageManager, Corepack, unpinned npx, ERESOLVE, EINTEGRITY, duplicate versions, dedupe, Composer autoload, registry auth, CI caches, leaving Bower, node-sass, Yarn 1 and EOL PHP. Ships pm-audit. Not for bundler config, CVE triage or vetting a package.
Как установить скилл package-manager-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл package-manager-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub