Description
Format source code files using industry-standard formatters like Black for Python, with support for multiple languages.
Trigger
/formatcommand- User needs to format code
- User wants consistent code style
Usage
# Format Python file
python scripts/code_formatter.py file.py
# Format with specific line length
python scripts/code_formatter.py file.py --line-length 100
Format JSON
python scripts/code_formatter.py config.json
Check without modifyingpython scripts/code_formatter.py file.py --check
Format directorypython scripts/code_formatter.py ./src/ --recursive
## Tags
`format`, `code`, `python`, `black`, `style`
## Compatibility
- Codex: ✅
- Claude Code: ✅