openai/pnpm-upgrade
Keep pnpm current: preflight the published package and pnpm/action-setup self-installer, update pnpm locally, align packageManager in package.json, and refresh CI pins. Use this when refreshing the pnpm toolchain manually or in automation.
npx skills add https://github.com/openai/openai-agents-js --skill pnpm-upgrade
Use these steps to update pnpm and CI pins without blunt search/replace.
PNPM_VERSION=$(curl -fsSL https://registry.npmjs.org/pnpm/latest | jq -r .version).curl -fsSL "https://registry.npmjs.org/pnpm/${PNPM_VERSION}" | jq -r .dist.integrity.PNPM_INTEGRITY.sha512-.sha512- to lowercase hex, for example: printf '%s' "${PNPM_INTEGRITY#sha512-}" | base64 -d | xxd -p -c 256
PNPM_SHA512_HEX.curl -fsSL https://api.github.com/repos/pnpm/action-setup/releases/latest | jq -r .tag_name.GITHUB_TOKEN/GH_TOKEN if available for higher rate limits.ACTION_TAG (e.g., v4.2.0). Abort if missing.git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}^{}" and capture the SHA as ACTION_SHA.git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}".ACTION_SHA is empty.node .agents/skills/pnpm-upgrade/scripts/preflight.mjs --version "${PNPM_VERSION}" --action-ref "${ACTION_SHA}".dependencies or devDependencies. pnpm bundles its runtime dependencies, so these fields indicate a broken publication such as [email protected].pnpm/action-setup installation paths in separate temporary directories: install the regular pnpm bootstrap from pnpm-lock.json and the standalone @pnpm/exe bootstrap from exe-lock.json, set isolated PNPM_HOME directories, and self-update each bootstrap to PNPM_VERSION.pnpm self-update "${PNPM_VERSION}".corepack prepare "pnpm@${PNPM_VERSION}" --activate. Do not use this fallback to bypass a failed preflight.pnpm -v exactly matches PNPM_VERSION.package.json and set packageManager to pnpm@${PNPM_VERSION}+sha512.${PNPM_SHA512_HEX} (preserve trailing newline and formatting)..github/workflows/ that uses pnpm/action-setup.uses: pnpm/action-setup@${ACTION_SHA}.with: version: field exists, set it to ${PNPM_VERSION} (keep quoting style/indent).pnpm -v and confirm it matches the version portion of packageManager.packageManager keeps the exact +sha512.${PNPM_SHA512_HEX} suffix.git diff to ensure only intended workflow/package.json changes.$code-change-verification; otherwise, a light check is enough.chore: upgrade pnpm toolchain and open a PR (automation may do this).curl, jq, base64, xxd, node, npm, and pnpm/corepack. Install if missing.Take openai/pnpm-upgrade from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.