npx claudepluginhub jackscammell/parliament-of-chaos --plugin chaosDetect the project's formatter(s) and run them on changed files. Zero-config — works by reading existing project configuration.
/format-code [--all] [--check] [files...]
Examples:
/format-code # Format changed files (git diff)
/format-code --all # Format entire project
/format-code --check # Check only, don't modify files
/format-code src/utils.ts # Format specific file(s)
--all (optional): Format the entire project instead of just changed files--check (optional): Report unformatted files without modifying themfiles... (optional): Specific files or directories to formatDetect Formatter
.prettierrc, .prettierrc.json, pyproject.toml (Black/Ruff), rustfmt.toml, .clang-format, .editorconfigpackage.json scripts containing prettier, format, etc.gofmt/goimports), Rust (rustfmt), Python (black, ruff format, autopep8), PHP (php-cs-fixer)Determine Scope
git diff --name-only + git diff --staged --name-only)--all: all files matching formatter's configured file patternsRun Formatter
--check: use check/verify mode and report which files need formattingReport Results
# Format Code
**Formatter**: Prettier 3.2.0 (from .prettierrc.json)
**Scope**: 7 changed files
## Results
- 4 files formatted
- 3 files already formatted
- 0 errors
All files formatted successfully.
.prettierignore, .gitignore, etc.)