From formatter
Formats code files using Prettier with automatic detection of file types and configuration. Supports --check and --config options.
How this command is triggered — by the user, by Claude, or both
Slash command
/formatter:formatThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Format Command Format code files using Prettier with automatic detection of file types and configuration. ## Usage To format files in your project, I'll: 1. **Check Prerequisites** - Verify Prettier is installed 2. **Detect Configuration** - Find existing .prettierrc or use defaults 3. **Analyze Files** - Identify which files need formatting 4. **Apply Formatting** - Format selected files with Prettier 5. **Report Results** - Show what was changed ## Supported File Types - JavaScript (.js, .jsx) - TypeScript (.ts, .tsx) - JSON (.json) - CSS/SCSS (.css, .scss, .less) - Markdown (.md,...
Format code files using Prettier with automatic detection of file types and configuration.
To format files in your project, I'll:
Common usage patterns:
# Format all JavaScript files
/format **/*.js
# Format specific file
/format src/app.js
# Format entire directory
/format src/
# Check formatting without changes
/format --check
# Format with specific config
/format --config custom-prettier.json src/
--check - Only check if files are formatted, don't modify--config <path> - Use specific Prettier configuration--ignore-path <path> - Use specific ignore file--write - Write changes to files (default)The command looks for configuration in this order:
.prettierrc or .prettierrc.jsonprettier.config.jspackage.json prettier fieldThe command provides detailed feedback:
✓ Formatted: src/app.js
✓ Formatted: src/components/Button.jsx
✗ Error: src/broken.js (syntax error)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Successfully formatted 2/3 files
This command requires Node.js and Prettier to be installed in your environment.
14plugins reuse this command
First indexed Dec 31, 2025
Showing the 6 earliest of 14 plugins
npx claudepluginhub ia23a-lachnita/claude-code-plugins-plus-fix-skills --plugin formatter/formatFormats code files using Prettier with automatic detection of file types and configuration. Supports --check and --config options.
/setup-formattingConfigures code formatting tools for JavaScript/TypeScript, Python, and Java projects. Installs Prettier, Black, isort; sets up config files, IDE settings, and pre-commit hooks.
/setupInteractively sets up Prettier and linting tools: checks NVM/Node version, detects project file types via git, suggests plugins for JS/TS/Vue/PHP/Astro/etc., configures .prettierrc.
/lint-fixAuto-fixes all linting and formatting issues in the project. Detects project type and runs appropriate formatters and linters with auto-fix enabled.
/quality-gateRuns project formatter quality gate on a single file and reports remediation steps. Checks TS/JS, Go, and Python files using Biome, Prettier, gofmt, or ruff.
/cleanAutomates code quality fixes by running black, isort, flake8, and mypy across the entire codebase.