review-and-fix

review-and-fix is a command for Claude Code from sjungling/sjungling-claude-plugins. It costs 14 tokens per session (1,382 once invoked), scanned A, original, MIT.

A pull-request command that reviews an existing GitHub pull request, applies high-confidence fixes, checks the build, and pushes the changes.

In plain words
What is it for?
Use it to resolve a pull request from its number or current branch, review it with a subagent, fix clear issues, verify the build, and push the result.
Why use it?
It combines review and follow-up repair work into one process while stopping when the pull request cannot be identified, is closed, or is on another branch.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the workflow plugin — 10 commands, 1 agent shipped together

Good fit Use it to resolve a pull request from its number or current branch, review it with a subagent, fix clear issues, verify the build, and push the result.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sjungling/sjungling-claude-plugins/review-and-fix
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/sjungling/sjungling-claude-plugins

Made for: Claude Code.

Or install workflow, the plugin that ships this one along with the rest of its 10 commands, 1 agent.

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 review-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/review-and-fix/github.svg)](https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/review-and-fix)
Your own site
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/review-and-fix"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/review-and-fix/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 review-and-fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/review-and-fix"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/review-and-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,382 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.00014 $0.01382
Opus 5 $0.00007 $0.00691
Sonnet 5 $0.00003 $0.00276
Haiku 4.5 $0.00001 $0.00138

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

Security

Grade A, and why

review-and-fix 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 11d 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/workflow/commands/review-and-fix.md · 158 lines

How it starts

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

Run a review-and-fix cycle on a pull request. The PR must already exist. If a PR number is provided as an argument, use it; otherwise use the PR associated with the current branch.

Step 1: Resolve PR Context

Determine which PR to work on:

# If $ARGUMENTS is set, use it as the PR number; otherwise resolve from current branch
PR_NUMBER="${ARGUMENTS:-}"
if [ -z "$PR_NUMBER" ]; then
    PR_NUMBER=$(gh pr view --json number -q '.number' 2>/dev/null || echo "")
fi

If no PR can be resolved, tell the user and stop. Do not try to open a PR — this command is fix-only.

Fetch PR metadata to confirm the target:

gh pr view "$PR_NUMBER" --json number,title,headRefName,baseRefName,state,mergeable

Confirm the PR is open. If it is merged or closed, stop and report.

Check that the current working tree matches the PR's headRefName. If not, tell the user and stop — do not switch branches automatically, since the user may have unsaved work or be in a specific worktree. Tell them the command required branch and let them switch.

Step 2: Dispatch Review Subagent

Use the Agent tool to run a code review in a subagent. This keeps the raw diff output out of the main context and isolates the review findings.

Agent prompt template:

Review PR #<number> in the current repository. The head branch is <headRefName>
and the base is <baseRefName>.

1. Get the diff with: gh pr diff <number>
2. Analyze every changed hunk for:
   - Bugs and logic errors
   - Missing error handling on system-boundary calls
   - Style violations against project conventions (read CLAUDE.md if present)
   - Missing tests for new behavior
   - Performance regressions on hot paths
   - Accessibility issues in view code (if the project has accessibility rules)
3. For each finding, return a JSON object:
   {
     "path": "relative/path.ext",
     "line": 42,
     "confidence": 0-100,
     "category": "bug|style|test|perf|a11y|other",
     "description": "What is wrong",
     "suggested_fix": "Concrete change to make (code snippet or instruction)"
   }
4. Return a JSON array of findings. If nothing is wrong, return [].

Be strict about confidence scoring. Only score >= 80 for issues you are certain
are real bugs or clear policy violations. Score 60-79 for likely-but-not-certain
issues. Score below 60 for subjective preferences — these will be discarded.

Read the full file on GitHub · 158 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. 11d ago First seen · 158 lines · 14 tokens per session scan A e06b3a135a09

Subscribe to this mod's changes

review-and-fix is a command published in the GitHub repository sjungling/sjungling-claude-plugins (13 stars, last pushed 28d ago), licensed MIT. It adds 14 tokens to every session and 1,382 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.