Skip to content
Development
Command

/format

Show the formatted result for files, so you can review and write it.

From plugin
procoder
21230 skills30 commands2 hooks
> /plugin marketplace add azrtydxb/procoder
> /plugin install procoder@procoder

Command definition

format.md
description: Show the formatted result for files, so you can review and write it.

The user invoked /procoder:format with arguments: $ARGUMENTS

Run the harness formatter over the requested files:

"${CLAUDE_PLUGIN_ROOT}/hooks/launcher.sh" format <files...>

If no files were named in the arguments, use the files you have written or edited in this session.

The command prints each file's formatted result — it never modifies anything; you stay in control.

For ONE file, stdout is exactly the bytes that belong in that file, whatever the verdict: the formatter's output when it disagrees, the file's own bytes when it does not, when no formatter covers the type, or when the formatter could not answer. The verdict line goes to stderr. Capture that output to another path and write it yourself, and the round trip is loss-free on every verdict: an empty stdout means the file could not be read, never that it came out clean.

Never redirect the output over the file it just read. The shell truncates the target before the command runs, so that file is already empty by the time the formatter could look at it, and nothing printed afterwards can put it back. The command notices this shape and refuses with the name of the file and how to restore it — that is a loud failure, not a recovery.

With MORE THAN ONE file, stdout carries a header naming each one, because five files cannot share one stream otherwise. Read that output; never redirect a multi-file run over any file it names.

For each file, the verdict says:

  • "already formatted": the bytes on stdout are the file unchanged, and there is

nothing to do.

  • a formatted result: review it, then write it to the file yourself.
  • "NOT checked": the formatter is missing or failed — the exit is non-zero. Tell

the user what the output says, and suggest /procoder:doctor. Do not treat the file as clean.

  • "out of scope": no formatter covers this file type; say so and move on.
Read more
@azrtydxb
Ships withprocoder

Senior-developer discipline for AI coding agents. A commit gate that counts unchecked as failing, quality controllers that refuse to call unfinished work done, and a lessons loop that closes each escaped bug's class. One Go binary, no runtime deps, works with 20+ agents.

Stars on GitHub

Momentum

stars in total
212
Star history of azrtydxb/procoder on GitHub, a chart by star-history.com

Other commands on procoder.

adr

adr

Command

Architecture decision records: durable decisions with their date, context, and consequences — supersede, never rewrite.

@azrtydxb@azrtydxbInstall Command
audit

audit

Command

Onboard an existing codebase: every domain's checks over the whole tree, then a triaged plan to bring it in line.

@azrtydxb@azrtydxbInstall Command
backlog

backlog

Command

The project layer: milestones, epics, and user stories with refusing controllers — spec-seeded, sprint-ready.

@azrtydxb@azrtydxbInstall Command
check

check

Command

Run the formatting gate over the changed files, as a commit or CI would.

@azrtydxb@azrtydxbInstall Command
ci

ci

Command

CI/CD hygiene and run health: pinned actions, timeouts, concurrency, tests — plus the latest runs via gh.

@azrtydxb@azrtydxbInstall Command
copilot-leak

copilot-leak

Command

Copilot's auto-review escapes: find them since the last look, sanitise them, and turn each one into a lesson.

@azrtydxb@azrtydxbInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command