Review each open PR into .git/reviews, draw diagrams for code changes, and post one diagram comment, with Claude or Codex per step. Use when a scheduled task or the user asks to review the open PRs with diagrams.
Ships in general. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Take each open PR through a review: a folder of private review files, then diagrams, then one diagram comment. You orchestrate. Run the heavy steps of each PR in subagents.
Each configurable step runs on a harness: claude or codex.
| Step | Values | What it does |
|---|---|---|
verdict | claude | codex | both | claude: a subagent (model: opus) runs /pr-verdict. codex: adversarial-review --wait --base <PR base> on the PR head. Codex does not verify its findings: Claude verifies each critical or high finding against the code. |
diagram | claude | codex | Who writes the diagram HTML. |
review | claude | codex | Who looks at the rendered PNG and lists defects. Codex reads a PNG given by path. |
These steps always run on Claude:
layman.md: it uses /phrasing:phrase, a Claude skill.brief-review.md: Claude writes it from pr-verdict.md.export_png.py fail there.Arguments: verdict=both diagram=codex review=claude.
AskUserQuestion call. Put the default first, as recommended.verdict=codex diagram=codex review=claude.Do not pass --model or --effort to Codex: ~/.codex/config.toml sets them. Read the model and the effort from that file for the report.
Run Codex with node "$CLAUDE_PLUGIN_ROOT/scripts/codex-companion.mjs" <command>. CLAUDE_PLUGIN_ROOT is the installed codex plugin folder, ~/.claude/plugins/cache/openai-codex/codex/<version>. The /codex:* commands block model invocation, so call the script directly.
Check these before any work, in this order. <reviews> is $(git rev-parse --git-common-dir)/reviews: a worktree has a .git file, not a folder. <sha> is the PR's headRefOid. "Me" is gh api user --jq .login.
gh pr list --state open is empty → STOP the run.reviewDecision is APPROVED<reviews>/<PR>-<sha>/ exists<img or user-attachments in its body)<reviews>/<PR>-*/ folder of any sha holds a *.png.md or other descriptor filesWhen diagram=codex or verdict uses Codex, do the PRs one at a time: Codex runs one job at a time (see Codex jobs).
Create <reviews>/<PR>-<sha>/. Read the diff with gh pr diff <PR>.
Use /phrasing:phrase to explain the PR: the issue or request that it solves, and how. Write it to layman.md.
Run the verdict on the configured harness. Tell each harness, Claude and Codex, to read REVIEW.md at the repository root first and to obey it: where to look, the risk depth of each path, and what to report. If REVIEW.md does not exist, say so in pr-verdict.md. Write pr-verdict.md. If verdict=both, write one file with two sections. In the Codex section, mark each finding that Claude confirmed.
Then write brief-review.md: only the important points, no nits, simple English. Explain each issue so that a junior developer understands it.
NEVER post review files on the PR.
Count: 1–2 for a small change, 3–4 for a large change, never more than 4. Types:
Use /diagram-design:diagram-design with variant full editorial, light, format html, audience engineer, detail faithful, size print-a4-landscape. The page carries title, subtitle, legend and notes, not only the diagram. Write NN-<type>.html into the folder.
If diagram=codex, start with task --fresh --write for the first diagram of the PR. The task text must say:
~/.agents/skills natively.SKILL.md names, in full: at least primitives-core.md (connector rules), the matching assets/example-*-full.html, the whole template-full.html, and semantic-patterns.md when it applies.scripts/self_check.py.After the job, make sure that the HTML exists at the exact path. Codex once wrote to a changed path.
A round is render, review, fix. Do at most 3 rounds per diagram.
Render (Claude): Playwright, viewport width 1296, device_scale_factor 2, page.screenshot(full_page=True). Capture the FULL PAGE, never #capture or .frame: the 48px page padding is on <body>. export_png.py exports only the SVG node and drops the editorial header, so do not use it. Make sure that each PNG is exactly 2592 px wide.
Review (configured harness): look at the PNG. Also compute the node rectangles from the HTML, so that each overlap has numbers. self_check.py does not test overlaps, and the installed skill has no verify-geometry.py. Check for these defects:
The diagram is clean when the review finds no defect from this list. Then go to the next diagram.
Fix: send the numbered defect list to the author of the HTML. For Codex, use task --resume --write, then make sure that the Codex thread id did not change. The author edits the HTML. The reviewer never edits it.
status <job-id> --wait. Do not kill your own wait loops with pkill: this killed a Codex job once.--resume takes the latest thread of this Claude session, and it refuses while any job is running. It cannot take a thread id. So run one Codex job at a time.cancel <job-id> only when it is running, its PID is dead, and its log was idle for more than 1 minute. Never cancel a job with a live process.Write the body to comment.md in the review folder. Prefix each line of layman.md with > . In place of the attach line, put one  per diagram, in order: gh appends a file that the body does not reference to the end of the comment.
<details>
<summary>📈 Diagrams</summary>
⚠️ These diagrams are automatically generated, not verified by the original author of the Pull Request! It might contain factual errors.
> <content of layman.md>
[attach diagrams here in sequential order]
</details>
Post it: gh pr comment <PR> --body-file <folder>/comment.md --attach <folder>/01-<type>.png --attach …, one --attach per PNG in order.
The run is done when each open PR is either skipped with a named early return, or has layman.md, pr-verdict.md, brief-review.md and, where diagrams apply, clean PNGs and one comment.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/general:open-pr-reviewfrom general
npx claudepluginhub harkairt/harkairt-claude-marketplace --plugin general5 skills in this plugin
/demo-recordingTurn a mobile-app scenario into a short captioned demo video, portrait or landscape with an explanation panel and arrows, with evidence that the demonstrated feature really works. Use to record a demo of an iOS simulator app, to trim or caption a screen recording, or to prove an effect that the screen does not show (analytics events, backend writes, emails, logs) with an annotated chart or screenshot./interviewInterview the user when they ask for an interview, ask for questions on a page, or want to answer several open questions in one place./jira-watchWatch Jira cards for new comments and changes without polluting the session, with one sub-session per card and per subtask. Tracks cards by key, by assignee email, or by JQL. Use when the user wants to track Jira cards, to be notified about comments or description changes, or to add or remove a tracked card or query./pr-epareReview the branch with /pr-verdict and a Codex adversarial review, fix their Important findings until a round is clean, then run /create-pr.