Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By flight505v2.1.0MITIn 1 marketplace
Comprehensive code formatting plugin with Prettier integration. Use when you need to format code, validate formatting, or maintain consistent code style. Activates with phrases like 'format my code', 'check formatting', or 'apply code style'. Supports JavaScript, TypeScript, JSON, CSS, Markdown, and many other file types with automatic formatting on file operations.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
formatting, prettier, code-style, linting, automation, hooks, validation
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A comprehensive code formatting plugin for Claude Code that automatically formats your code using Prettier and other formatting tools. Includes automatic formatting hooks, validation commands, and Agent Skills for intelligent formatting assistance.
/format and /format-check for manual control# Add the marketplace
/plugin marketplace add jeremylongshore/claude-code-plugins
# Install the formatter plugin
/plugin install formatter@claude-code-plugins-plus
The plugin requires Node.js and npm/npx to be installed:
# Check if Node.js is installed
node --version
# Install Prettier globally (optional)
npm install -g prettier
# Or use npx (no installation needed)
npx prettier --version
The plugin automatically formats files after you edit them:
Write or Edit toolFormat files:
# Format all files in project
/format
# Format specific directory
/format src/
# Format specific file
/format src/app.js
# Format with custom config
/format --config .prettierrc.strict src/
Check formatting:
# Check all files
/format-check
# Check specific files
/format-check **/*.js
# Use in CI/CD (exits with error if unformatted)
/format-check || exit 1
The plugin's Agent Skill activates when you mention:
Example:
User: "Please format my JavaScript files"
Claude: [Activates code-formatter skill and formats all JS files]
Create a .prettierrc file in your project:
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "avoid"
}
Create .prettierignore to skip files:
# Dependencies
node_modules/
vendor/
# Build outputs
dist/
build/
*.min.js
*.min.css
# Generated files
coverage/
*.lock
The plugin's hooks are configured in hooks/hooks.json:
To disable automatic formatting, edit the hooks.json and set "enabled": false.
The plugin includes two main scripts:
Both scripts are executable and support debug mode:
# Enable debug mode
export FORMATTER_DEBUG=true
# Check logs
tail -f plugins/examples/formatter/logs/formatter.log
To test the plugin installation:
# 1. Check if plugin is installed
/plugin list
# 2. Test format checking
echo 'const x={a:1,b:2}' > test.js
/format-check test.js
# 3. Test formatting
/format test.js
cat test.js # Should show formatted code
# 4. Test Agent Skill
# Just say: "format my code"
| Extension | Language | Support Level |
|---|---|---|
| .js, .jsx | JavaScript | ✅ Full |
| .ts, .tsx | TypeScript | ✅ Full |
| .json | JSON | ✅ Full |
| .css, .scss | CSS/SASS | ✅ Full |
| .md, .mdx | Markdown | ✅ Full |
| .yaml, .yml | YAML | ✅ Full |
| .html | HTML | ✅ Full |
| .vue | Vue | ✅ Full |
| .svelte | Svelte | ✅ Full |
| .graphql | GraphQL | ✅ Full |
| .xml | XML | ⚠️ Limited |
# Reinstall the plugin
/plugin uninstall formatter@claude-code-plugins-plus
/plugin install formatter@claude-code-plugins-plus
# Check plugin status
/plugin list
# Install Prettier globally
npm install -g prettier
# Or ensure npx is available
which npx
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub flight505/skill-forge --plugin formatterPlugins from other owners that cover similar ground