pr-review-merge

pr-review-merge is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 135 tokens per session (862 once invoked), scanned A, original, MIT.

A workflow for handling a pull request, which is a proposed code change awaiting review before it is added to a project. It checks automated tests and reviewer comments, applies fixes, and can merge the change when it is ready.

In plain words
What is it for?
Creating a pull request, waiting for its checks and reviews, fixing problems, resolving conflicts, and merging it when approved.
Why use it?
It prevents pull requests from being created and then forgotten. The workflow keeps checking for test failures, review feedback, and merge conflicts before reporting the result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating a pull request, waiting for its checks and reviews, fixing problems, resolving conflicts, and merging it when approved.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/pr-review-merge
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.

Any agent
npx skills add masa-san-jp/Agent-Aiko --skill pr-review-merge
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

Made for: Claude Code, Codex.

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 pr-review-merge

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/pr-review-merge/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/pr-review-merge)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/pr-review-merge"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/pr-review-merge/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 pr-review-merge

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/pr-review-merge"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/pr-review-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 862 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.00135 $0.00862
Opus 5 $0.00068 $0.00431
Sonnet 5 $0.00027 $0.00172
Haiku 4.5 $0.00014 $0.00086

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

Security

Grade A, and why

pr-review-merge 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.

reference/skills/pr-review-merge/SKILL.md · 62 lines

What it actually says

/pr-review-merge

PR 作成後の標準フロー。PR を作って放置しない。 作成後はこのフローを最後(マージ or 報告)まで同一ターンで完走する。

実行手順

1. PR を作成し、URL と番号を控える

gh pr create --base <target> --head <branch> --title ... --body ...(または既存 PR 番号)。

2. 数分待つ

CI とレビュー(人/bot/自動レビュー)が付くのを待つ。ポーリングはバックグラウンドで(会話を止めない):

# 数分後にチェックを促す待機(バックグラウンド)
( sleep 300 ) &   # 実運用は Bash run_in_background / スケジュール待機機構を使う

待機中に他の作業を進めてよい。CI が早く終われば早めに次へ進んでよい。

3. レビューを確認(CI+コメント+マージ可否)

gh pr checks <num>                       # CI: 全部 pass か(fail/pending を見る)
gh pr view <num> --json reviews,comments,mergeable,mergeStateStatus
gh pr view <num> --comments              # レビューコメント本文

確認軸:① CI が緑 ② レビュー指摘が無い(あれば対応) ③ コンフリクトが無い(mergeable)。

4. 問題があれば修正

  • CI fail:原因を実機で再現・修正してコミット&push → checks 再確認。
  • レビュー指摘:対応してコミット&push。対応内容を PR にコメントで残す。
  • コンフリクト:rebase/merge で解消。
  • 修正したら 手順 2〜3 をもう一度(再度 CI/レビューを待って確認)。

5. 問題なければマージ

gh pr merge <num> --squash --delete-branch    # 既定は squash。プロジェクト規約があれば従う

不可逆操作なので、CI 緑・指摘なし・mergeable を確認してから実行する。 マージ可否に疑義がある(レビュー未着・CI 不明・大きめの変更)ときはマージせず、状態をオーナーに報告して指示を仰ぐ。

6. 報告

マージ結果(または現状:CI・レビュー・マージ可否)を必ずオーナーに報告する。失敗は失敗と正直に。

メモ

  • 待ち時間(例:数分)はプロジェクトの CI 実行時間に合わせて調整する。
  • 待ち時間中も webhook activity が届いたら即調査・対応する(待つ=放置ではない)。
  • gh が無い/権限が無い環境では、その旨を報告して手動マージを案内する。
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 · 62 lines · 135 tokens per session scan A 4b7b351189b8

Subscribe to this mod's changes

pr-review-merge is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 135 tokens to every session and 862 once invoked, about $0.0007 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-31.