Skip to content
Development
Command

/format

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

BOOST
From plugin
procoder
21130 skills30 commands2 hooks
Install
> /plugin marketplace add azrtydxb/procoder
> /plugin install procoder@procoder

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/format

Context preview

What this command does when you run it.

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

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
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.

Get the whole plugin
Stats
210
Stars
17
Forks
Active
Maintenance
Go
Language
Apache-2.0
License
1d ago
Last commit
2mo ago
Created
5h ago
Added

Repo: azrtydxb/procoder

Other commands on procoder.

adr
Command

adr

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

@azrtydxb@azrtydxbInstall Command