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:writebefore every commit - Import organization is handled by Prettier, not ESLint — never reorganize imports by hand or via ESLint rules
- If
format:checkfails in CI, the fix is alwayspnpm format:writelocally, then commit the result
Related skills
More from dnd-mapp/ai-standards
eslint
>
11pull-request
This skill should be used whenever the user asks to create a pull request, open a PR, or submit changes for review.
11prisma
>
10angular
>
10commit
This skill should be used whenever the user asks to commit changes, create a git commit, or stage and commit files. Enforces Conventional Commits format for this project.
10nestjs
>
10