pwf-review

pwf-review is a command for Claude Code from J-Pster/Psters_AI_Workflow. It costs 27 tokens per session (547 once invoked), scanned A, original, MIT.

A command that runs several targeted code reviews after a change and then repeats the review after fixes. It uses the changed files and the type of change to select review checks.

In plain words
What is it for?
Use it to review a pull request, branch, or current-branch changes. It gathers the diff, runs relevant review agents in parallel, applies fixes, and repeats checks until the change is ready.
Why use it?
It helps find problems that a single general review might miss. It also preserves specified planning and solution documents during the review process.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Good fit Use it to review a pull request, branch, or current-branch changes. It gathers the diff, runs relevant review agents in parallel, applies fixes, and repeats checks until the change is ready.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/j-pster/psters_ai_workflow/pwf-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwf-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-review/github.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-review)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-review"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwf-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-review"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00547
Opus 5 $0.00014 $0.00273
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured 10d ago against content hash 6a3bc1b12c32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pwf-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/psters-ai-workflow/commands/pwf-review.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Step 4 — Review and Validate Changes

Use this command to run a structured multi-agent review after implementation, then fix findings and re-run until the change is ready. Apply skills/using-psters-workflow/SKILL.md at start.

Target

<review_target> #$ARGUMENTS </review_target>

Determine: PR (number/URL), branch name, or current branch. Fetch diff and file list:

  • PR: gh pr view <number> + gh pr diff <number>
  • Branch: git diff main...<branch> --name-only + git diff main...<branch>

Protected Artifacts

Never recommend deleting or ignoring docs/plans/*.md or docs/solutions/*.md. Discard any agent finding that suggests removing these.

Run Review Agents

First inspect which repos/files were changed. Then spawn all applicable review agents in parallel using the Task tool (subagent_type: generalPurpose). For each, tell the subagent to read its agent file and review the provided diff + file list. Use collision-safe agent naming in prompts: psters-ai-workflow:<category>:<agent-name>.

Use the canonical mapping in assets/review-agent-selection-mapping.md to choose agents based on changed scope. Always include the baseline reviewers from the mapping. If reviewer feedback comments are provided as input, also run pr-comment-resolver (agents/workflow/pr-comment-resolver.md) to propose/implement fixes. If major TypeScript/JS changes are present, include the lint reviewer agent (agents/workflow/lint.md) in the review loop.

Each Task tool call must include the full diff content and changed file list in the prompt.

Synthesize

Merge findings; remove duplicates; prioritize by severity (critical → warning → informational). Present:

  1. Summary — what changed and scope
  2. Critical issues — must fix before merge
  3. Recommendations — should fix
  4. Informational — optional improvements

Use skills/requesting-code-review/code-reviewer.md as the default output template for the final synthesized review.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 51 lines · 27 tokens per session scan A 6a3bc1b12c32

Subscribe to this mod's changes

pwf-review is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 547 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.