/prettier:format [file paths...] | [natural-language description of files to include]from prettier
Use when the user asks to "format with Prettier", "run prettier", "format these files", or wants Prettier run over files this session never touched. Formats files with Prettier, including pre-existing ones.
Ships in prettier. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Format files with Prettier. Arguments given: $ARGUMENTS
This skill is the explicit opt-in for formatting pre-existing files — files this session didn't create or edit. The plugin's hook only ever formats a file immediately after Claude edits or writes it; use this skill whenever the user wants existing files formatted too.
npx prettier --write --ignore-unknown .), letting Prettier's own .prettierignore and
.gitignore discovery decide what to skip.git status/git diff and directory listings as needed) and resolve it to a
concrete set of paths before continuing.If the natural-language match is ambiguous — nothing clearly matches, or there are multiple plausible interpretations — do NOT guess. List the candidate files with a one-line reason each and ask for confirmation before formatting anything.
npx -y prettier --write --ignore-unknown <target>. Do not pass
--config; let Prettier discover the nearest .prettierrc* on its own
(including per-package configs in a monorepo).git diff --stat over the
target is enough — Prettier itself doesn't report which files it
rewrote).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub leonardo-marziali/agentic-development-kit --plugin prettier