Prettier Workflow
Use this skill when a user asks to format code or run Prettier.
Rules
- •Prefer Makefile targets over direct npm commands.
- •For full-repo formatting, run
make prettier. - •If only one service needs formatting, use
make prettier-webormake prettier-apiwhen available. - •If a required make target does not exist, add it in the style of existing targets before running Prettier.
- •After formatting, confirm command exit status and summarize key results.
Verification
- •If formatting changed source code, run checks for affected services:
- •
make lint-webandmake typecheck-webfor web changes. - •
make lint-apiandmake typecheck-apifor api changes.
- •
- •If only docs/config/format-only files changed, skip checks and state that explicitly.