AGENT SKILL
prettier
Use this skill when the user wants to format code with prettier.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- prettier
- description
- Use this skill when the user wants to format code with prettier.
03 SKILL.md 正文
Prettier Plugin
Code formatter using prettier. Opinionated code formatter for JavaScript, TypeScript, CSS, HTML, JSON, and more.
Commands
Code Formatting
prettier file format— Format file with prettierprettier file check— Check if files are formatted
Usage Examples
- "prettier file format --file index.js"
- "prettier file check --file src/"
- "prettier file format --file index.js --single_quote"
Installation
npm install -g prettier
Examples
# Format a file
prettier --write index.js
# Format entire directory
prettier --write src/
# Check if files are formatted
prettier --check src/
# Format with single quotes
prettier --write --single-quote index.js
# Format with trailing commas
prettier --write --trailing-comma all index.js
# Format JSON
prettier --write package.json
# Check formatting
prettier --check src/
Key Features
- Opinionated code formatting
- Supports multiple languages (JS, TS, CSS, HTML, JSON, Markdown)
- Configurable via .prettierrc
- Check mode for CI/CD
- Consistent code style across projects
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57