microsoft/pnpm-format
Format the codebase with pnpm and recover from common formatting failures.
npx skills add https://github.com/microsoft/typespec --skill pnpm-format
Use this skill any time formatting is required in the TypeSpec repo. Do not assume formatting happens automatically; always run pnpm format following this guidance.
package.json and pnpm-workspace.yaml live).node_modules are missing or pnpm complains about missing packages, run: pnpm install
pnpm format
ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND, you are not at the repo root. cd to the root and retry.pnpm format exits with a non-zero code but prints a list of changed files, re-run pnpm format once to ensure a clean exit.Take microsoft/pnpm-format 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.
The instructions reference npm.
Without those the skill loads but fails at the first command.