Auto Format
Runs the formatter your project already configures (prettier, biome, ktlint or spotless, swiftformat, gofmt, ruff or black) on each file the agent edits, using only locally installed tools, so diffs stay clean and style review noise disappears. Never fails an edit.
What it does
Runs the formatter your project already configures (prettier, biome, ktlint or spotless, swiftformat, gofmt, ruff or black) on each file the agent edits, using only locally installed tools, so diffs stay clean and style review noise disappears. Never fails an edit.
- Category
- qualityformatting
- Platforms
- webandroidiosbackend
- Capabilities
- formattingpost-edit
Example tasks
- “After the agent edits a TypeScript file in a repo with a prettier config, the file is reformatted in place.”
- “A Go service has go.mod and gofmt installed, so every edited .go file is gofmt-ed automatically.”
- “A Python project without ruff or black configured is left untouched and the edit proceeds normally.”
Works with
Recommended alongside
Permissions summary
Files
Reads and edits files
Shell
Runs a limited set of commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .forgekit/hooks/<id>/ + .claude/settings.json |
| OpenAI Codex | Not supported | Skipped (reported at install) |
| Cursor | Not supported | Skipped (reported at install) |
| VS Code (Copilot) | Not supported | Skipped (reported at install) |
| Generic markdown | Adapter | docs/forgekit/hooks/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (29 lines in total).
- 01auto-format
- 02Detection
- 03Safety rules
- 04Configure and disable
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Auto Format
1.0.0
- Initial release.