Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.json and 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
Полный SKILL.md на GitHub

Установить package-manager-ops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Edit
Write
Bash
Glob
Grep

Вложенные файлы

assets/package-manager-facts.jsonreferences/caches-and-ci.mdreferences/detect-and-choose.mdreferences/diagnostics.mdreferences/install-semantics.mdreferences/legacy-exits.mdreferences/npx-exec-safety.mdreferences/platform-gotchas.mdreferences/pm-audit-rules.mdreferences/registries-and-auth.mdreferences/scripts-and-workspaces.mdreferences/upgrades.mdreferences/version-pinning.mdscripts/check-pm-facts.pyscripts/lock-replay.pyscripts/pm-audit.pyscripts/pm-rollup.pyscripts/run-python.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить package-manager-ops с