Format

From platformplatform/PlatformPlatform · View interactive version

Format is an AI agent skill from the GitHub repository platformplatform/PlatformPlatform. Auto-format code via the developer CLI - backend (.NET via JetBrains cleanupcode), frontend (oxfmt + oxlint --fix), and the developer CLI itself.

How to use this skill

Skill file

Format

dotnet run --project developer-cli -- format [--backend] [--frontend] [--cli] [--self-contained-system <name>] [--no-build] [--all-files] --quiet

Use developer-cli exactly as written - do not expand to an absolute worktree path.

No arguments formats everything (changed-only by default). Unformatted code fails CI - commit all changes, never revert.

After build succeeds, run format, lint, test in parallel with --no-build.

Examples

dotnet run --project developer-cli -- format --quiet                                            # everything
dotnet run --project developer-cli -- format --backend --quiet                                  # all backend
dotnet run --project developer-cli -- format --frontend --quiet                                 # frontend
dotnet run --project developer-cli -- format --backend --self-contained-system account --quiet  # one SCS

Always pass --quiet

Verbose output goes to a log file. On success the CLI prints a single line; on failure it prints a short error message - read the log if you need details. Backend is slow - run last. Frontend is fast.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.