/chaos:format-code [--all] [--check] [files...]from chaos
Auto-detect and run the project's code formatter
Ships in chaos. Installing the plugin adds it to Claude Code.
Detect 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.)What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub jackscammell/parliament-of-chaos --plugin chaos66 commands in this plugin
/adr-newADR NewScaffold a new Architectural Decision Record (ADR) from a title or ongoing discussion/adr-supersedeADR SupersedeMark an existing ADR as superseded and link it to its replacement/agent-usage-statsAgent Usage StatsShow frequency and effectiveness per agent — input to retirement and optimisation decisions/analyse-queriesAnalyse QueriesAnalyse SQL queries and ORM code for performance issues and missing indexes/ask-councilAsk the CouncilAsk the council a question and get a synthesised answer from the appropriate panel of agents/changelogDisplay the Parliament of Chaos version history and changelog