microsoft/typespec · Archived

pnpm-format

Format the codebase with pnpm and recover from common formatting failures.

First seen Jul 8, 2026

Installation

$ npx skills add microsoft/typespec --skill pnpm-format

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from microsoft/typespec.

npx skills add microsoft/typespec

Browse all from microsoft/typespec

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5.8K
License LICENSE
Default branch main
Open issues 1,008
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,013 B
  • docs SUMMARY.md 93 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Format code with pnpm

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.

Preconditions

  • Command must run from the repository root (where package.json and pnpm-workspace.yaml live).
  • Dependencies must be installed.

Steps

  1. Confirm you are at the repo root.
  2. If node_modules are missing or pnpm complains about missing packages, run:

``bash pnpm install ``

  1. Run the formatter:

``bash pnpm format ``

  1. If the command fails with ERRPNPMNOIMPORTERMANIFEST_FOUND, you are not at the repo root. cd to the root and retry.
  2. If 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.

Notes

  • Do not cancel the command; formatting may take about a minute.