PR-ready gauntlet

SkillSecurity

Runs security, code-review, simplification and polish passes over a change before you open or merge a pull request.

Use PR-ready gauntlet in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add PR-ready gauntlet and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the PR-ready gauntlet skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

PR-ready gauntletStart free
About this skill

Run the pre-submit gauntlet (security-audit, code-review, simplify, review-polish) over a change before opening or merging a PR.

What this skill tells your AI

The instructions your AI receives, as published by rommapp/romm in .claude/skills/pr-ready/SKILL.md and read by ahel’s review.

Run the review passes RomM applies to every non-trivial PR, in this order, over one fixed range. Do not skip a step or reorder them.

Target

$ARGUMENTS is a PR number, a branch, or nothing (the current branch). Resolve it to a fetched target and derive $BASE and $RANGE before step 1, then reuse $RANGE for every step but the last. HEAD is the right target only when $ARGUMENTS is empty, so run the dispatch rather than assuming it: skip it and every pass reviews the current checkout instead of what was asked for.

set -eu

git fetch origin master

case "$ARGUMENTS" in
"") TARGET="$(git rev-parse HEAD)" ;;
# a pull ref needs its own refspec, the fetch above will not create it
*[!0-9]*) git fetch origin "$ARGUMENTS"; TARGET="$(git rev-parse FETCH_HEAD)" ;;
*) git fetch origin "pull/$ARGUMENTS/head"; TARGET="$(git rev-parse FETCH_HEAD)" ;;
esac

BASE="$(git merge-base origin/master "$TARGET")"
RANGE="$BASE..$TARGET"

An all-digit argument is a PR number, anything else is a branch.

set -e is load-bearing here, because each failure otherwise fails open. A base fetch that dies on the network, an argument that resolves to nothing, a missing merge base: each leaves a side of $RANGE empty, and git reads an empty side as HEAD, so ..$TARGET is a valid range over the wrong commits rather than an error. Abort on the first failure instead of handing every pass a range built without the thing you asked them to review.

Before steps 2 to 5

Step 1 is read-only and runs against $RANGE from wherever you are. The rest are not: they rewrite files and run the repository's own code from the target ref, including test runners, builds, trunk, package lifecycle scripts, and git hooks. A clean step 1 verdict is no substitute for that, since an audit can miss what it is looking for. So run steps 2 to 5 only on a ref you trust. On anything else, stop after step 1 and report, or run the rest in an isolated environment with no credentials and no network.

They also need the target checked out. Checking out a fetched sha detaches HEAD, where each step's commits belong to no branch and go away on the next switch, so give the work a branch first:

git switch -c "pr-ready/$(git rev-parse --short "$TARGET")" "$TARGET"

Those commits are local either way. They reach the PR only if you can push to its source branch, so on a fork you cannot write to, the summary is the deliverable and the commits are not.

Skip the branch when the target is already the current one. There, uncommitted work counts as part of the change under review: commit or stash anything unrelated first, so each step's edits stay attributable.

Steps

  1. security-audit over $RANGE. Read-only. Stop on a malicious verdict; needs attention is a finding for step 2, not a stop.
  2. code-review at xhigh with --fix, targeting the resolved target rather than "the current diff", so it sees the whole change.
  3. simplify, after the correctness fixes so it can simplify those too.
  4. review-polish: its verification gate has to cover everything the earlier steps rewrote.
  5. humanizer last, over the prose $BASE..HEAD adds or changes (not $RANGE, so it covers what steps 2 to 4 committed). See "Step 5 scope" below.

Commit after each step that changes files, naming the step in the message. A bad automated fix is then one git revert away instead of tangled with the other passes.

Finish with one consolidated summary rather than per-step transcripts: the security verdict, what steps 2 to 5 changed by area, which checks ran and their results, and anything still needing a human decision.

The summary also carries what the PR description needs and the transcripts hold: the screenshots step 4 captured, which the PR body references and gh ... --attach uploads under the Screenshots heading, and the mermaid block for a change that moved a boundary.

The whole gauntlet in one session is a lot of context. For a very large diff, run the steps in separate sessions against the same $RANGE.

Step 5 scope

Read .claude/skills/humanizer/SKILL.md and apply it rather than invoking the skill, since a personal install of the same name would load instead. In file mode it edits the Markdown paragraphs the range touches, and comments and docstrings on added lines. Skip locale files, paths in the .trunk/trunk.yaml ignore list, test fixtures, response schema docstrings (they are API contract text), and lint or type directives (# noqa, # type: ignore, eslint-disable), whose dash separators are syntax. In embedded mode it edits the PR description in the summary, keeping the AI disclosure and what review-polish §F requires.

RomM rules win: rewritten text still meets review-polish §A, and a file's existing headings and bold labels stay (skip "Bold as decoration" and "Decorative headings" there). Then run trunk fmt && trunk check on the files it touched.

Signals

GitHub stars
13k
Forks
747
Last commit
Oct 2026
Advanced
Item type
skill
Key
pr-ready-rommapp
Source
github.com/rommapp/romm