apply-pr-review

apply-pr-review is a skill for Claude Code, Codex from aiya000/dotfiles. It costs 70 tokens per session (1,461 once invoked), scanned A, original, MIT.

A pull-request review workflow for GitHub. A pull request is a proposed code change, and review conversations are the comments and discussions attached to it.

In plain words
What is it for?
Find all review threads, classify each request, apply valid code changes, run relevant checks, and reply to each conversation in Japanese with the outcome.
Why use it?
It ensures every review comment is considered, distinguishes valid requests from incorrect ones, and records the response to each conversation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Find all review threads, classify each request, apply valid code changes, run relevant checks, and reply to each conversation in Japanese with the outcome.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiya000/dotfiles/apply-pr-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.

Any agent
npx skills add aiya000/dotfiles --skill apply-pr-review
Clone the repo
git clone --depth 1 https://github.com/aiya000/dotfiles

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiya000/dotfiles/apply-pr-review"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/apply-pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,461 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.00070 $0.01461
Opus 5.5 $0.00028 $0.00584
Sonnet 5.5 $0.00014 $0.00292
Haiku 4.5 $0.00007 $0.00146

Measured 1mo ago against content hash 2c16920b769d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

apply-pr-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 1mo 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.

.kiro_global/skills/apply-pr-review/SKILL.md · 97 lines

How it starts

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

PRレビュー指摘の適用

目的

対象PRのレビュー指摘を漏れなく評価し、妥当な指摘を修正して、指摘ごとのConversationへ対応内容を日本語で返信する。

対象PRの決定

  1. ユーザーがPR番号またはURLを指定した場合は、そのPRを対象にする
  2. 指定がない場合は、現在のブランチに紐づくPRと会話の文脈から対象を特定する
  3. 対象を特定できない場合は、PR番号またはURLをユーザーに確認し、回答があるまで作業を止める
  4. 推測はできるが不明瞭な場合は、作業前に対象PRのURLを示して宣言する
  5. ユーザーが明示的に除外したレビューだけを対象外とし、それ以外のレビューをすべて対象にする

手順

1. 前提とPR情報を確認する

  1. Gitリポジトリ、現在のブランチ、remote、Git identityを確認する
  2. gh auth status でGitHub認証を確認する
  3. gh pr view <PR> --json number,title,body,url,headRefName,baseRefName,reviewDecision,reviews,comments でPR情報を取得する
  4. GitHub GraphQL APIを使い、inline review threadを含む全Conversation、コメント、返信、resolve状態、対象ファイル、行番号、node IDを取得する
  5. gh pr view --comments だけでinline review threadを取得できたと判断しない
  6. 対象ブランチが現在のブランチと異なる場合は、勝手に別ブランチへ変更せずユーザーへ確認する

2. 全指摘を分類する

各指摘について、関連コードとリポジトリ規約を読み、次のいずれかに分類する。

  • 対応する: 技術的に妥当で、修正を入れてよい
  • 対応しない: 誤認、要件違反、セキュリティ低下、破壊的変更など、入れてはいけない要因がある
  • 確認待ち: 要件やレビュワーの意図が不明で、安全に判断できない
  • 対応済み: 現在のPR内容ですでに解消されている

同じ原因に見える指摘でも、Conversationごとに状態と返信先を管理する。

3. 妥当な指摘を修正する

  1. 指摘ごとに単一目的の修正を行う
  2. 変更対象に適用される AGENTS.md とプロジェクト規約を守る
  3. 指摘に必要な範囲を超える無関係な変更を混ぜない
  4. 変更後、対象テスト、lint、型チェック、ビルドなど最も関連する検証を実行する
  5. 検証が失敗した場合は原因を修正し、成功するまで再検証する。実行できない検証は理由を記録する
  6. 指摘ごとに変更ファイルだけをstageし、単一目的の新規コミットを作る
  7. --no-verify を使用しない。hook失敗後は修正を再stageし、--amend ではなく新しいコミットを作る
  8. 複数のConversationを1コミットへまとめない。ただし同一原因を同時に直さなければコードが成立せず、各Conversationへの説明も明確にできる場合は例外とする
  9. PRのheadブランチへ通常のpushを行う。force push、履歴改変、main/master/developへの直接pushはしない

4. 入れてはいけない指摘を保留する

指摘を入れてはいけない要因がある場合は、コードを変更しない。

  1. Kiroの現在の会話で、対象指摘と対応できない技術的理由をユーザーへ報告する
  2. 該当Conversationにも、対応しない理由と必要な判断を日本語で返信する
  3. その指摘はユーザーが次のアクションを命じるまで保留する
  4. 他の独立した指摘は、安全に続行できる場合に限り処理を続ける

5. Conversationへ返信する

修正コミットをpushした後、対応した各Conversationへ直接返信する。PR全体のコメントで代用しない。

返信には次を含める。

  • 対応結果
  • 修正内容の短い説明
  • 修正ファイル名と行番号
  • コミットSHA
  • コミットURL
  • 実行した検証と結果

対応済みまたは対応不要と判断したConversationにも、その根拠を返信する。API呼び出し後はConversationを再取得し、返信が正しいthreadへ投稿されたことを確認する。

6. Resolveを制御する

  • Conversationは既定ではResolveしない
  • ユーザーが事前または事後に明示的にResolveも依頼した場合だけ、対象threadをResolveする
  • Resolve後はthreadの状態を再取得して確認する

Read the full file on GitHub · 97 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. 1mo ago First seen · 97 lines · 70 tokens per session scan A 2c16920b769d

Subscribe to this mod's changes

apply-pr-review is a skill published in the GitHub repository aiya000/dotfiles (21 stars, last pushed 2d ago), licensed MIT. It adds 70 tokens to every session and 1,461 once invoked, about $0.0003 per session on Opus 5.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-09-09.

Related

Other skills, from other repositories