post-code-review-to-pr

post-code-review-to-pr is a skill for Claude Code from testdouble/han. It costs 88 tokens per session (1,760 once invoked), scanned A, original, MIT.

An automated code-review workflow for an existing GitHub pull request, with review comments posted directly to that pull request.

In plain words
What is it for?
Use it to review the current branch's pull request and publish the findings as GitHub comments. It requires the GitHub command-line tool and an existing pull request.
Why use it?
It keeps review findings with the code changes where the team can discuss and resolve them, instead of leaving them in a separate report.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the han-github plugin — 3 skills shipped together

Good fit Use it to review the current branch's pull request and publish the findings as GitHub comments. It requires the GitHub command-line tool and an existing pull request.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add testdouble/han
Claude Code
/plugin install han-github

Made for: Claude Code.

Or install han-github, the plugin that ships this one along with the rest of its 3 skills.

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 post-code-review-to-pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/testdouble/han/post-code-review-to-pr"><img src="https://agentmods.dev/badge/skills/testdouble/han/post-code-review-to-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,760 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.00088 $0.01760
Opus 5.5 $0.00035 $0.00704
Sonnet 5.5 $0.00018 $0.00352
Haiku 4.5 $0.00009 $0.00176

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

Security

Grade A, and why

post-code-review-to-pr 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/create-review-tempfile.sh, scripts/post-pr-comment.sh, scripts/post-pr-review.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

han-github/skills/post-code-review-to-pr/SKILL.md · 107 lines

How it starts

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

When running a PR code review, follow the process outlined here.

Pre-requisites

  • gh CLI: !which gh 2>/dev/null || echo "not installed"
  • jq: !which jq 2>/dev/null || echo "not installed"

If gh is not found, inform the user it must be installed and configured; if jq is not found, inform the user it must be installed. In either case, immediately stop.

Project Context

  • current branch: !git branch --show-current 2>/dev/null || echo unknown
  • default branch: !git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo unknown
  • changed files: !gh pr diff --name-only 2>/dev/null || echo "no pr"
  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Step 1: Validate PR State

If changed files is empty or reads no pr, or gh pr view --json number,url fails, inform the user no reviewable PR exists for the current branch and stop.

Step 2: Run Code Review

Invoke the /code-review skill to perform the full code review. Pass along any user-provided focus areas or context from the original arguments.

/code-review writes its report to a file and names the path in its closing message; it does not print the review into the conversation. Capture that path — Step 3 reads the report from it. After /code-review completes, proceed immediately to Step 3 — do not stop here.

Step 3: Offer to Post Review to GitHub

Ask the user whether they'd like to post the review to the PR on GitHub using AskUserQuestion with options "Yes, post the review to GitHub" and "No, just the local review". If the user declines, proceed to Step 5.

Read the full file on GitHub · 107 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +5 lines 86555881798f
  2. 3mo ago First seen · 102 lines · 88 tokens per session scan A f1208f38a237

Subscribe to this mod's changes

post-code-review-to-pr is a skill published in the GitHub repository testdouble/han (365 stars, last pushed yesterday), licensed MIT. It adds 88 tokens to every session and 1,760 once invoked, about $0.0004 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-03.

Related

post-code-review-to-pr compared with skills from other repositories

post-code-review-to-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
post-code-review-to-prtestdouble/hanSkill365yesterdayMITA88Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA61Claude Code, Codex
pr-threads-addressposit-dev/skillsSkill58021d agoMITA48Claude Code
timelinetykisgod/quick-questionSkill131mo agoMITA26Claude Code
PRテンプレート品質チェックs977043/river-reviewSkill8todayMITA58Claude Code
brieftykisgod/quick-questionSkill131mo agoMITA22Claude Code