prettier

Installation
SKILL.md

Prettier

Commands

Task Command
Format everything (write) pnpm format:write
Check formatting without writing pnpm format:check
Format a specific file pnpm exec prettier -w <path>
Check a specific file pnpm exec prettier -l <path>

Default action: When asked to "format" or "run Prettier" without further qualification, run pnpm format:write.

What gets formatted

Before formatting, read the project's ignore and config files to understand scope and rules.

Use the configuration files to determine which files will be affected and what formatting rules apply (line width, quote style, parsers, plugins, per-file overrides, etc.) before running any command.

Workflow notes

  • Run pnpm format:write before every commit
  • Import organization is handled by Prettier, not ESLint — never reorganize imports by hand or via ESLint rules
  • If format:check fails in CI, the fix is always pnpm format:write locally, then commit the result
Related skills
Installs
10
First Seen
Apr 11, 2026