code-review-github

A GitHub pull-request review workflow for checking proposed code changes and updating the pull request. A pull request is a request to merge changes into a project.

In plain words
What is it for?
It helps list pull requests, read their changes, post review comments, apply or remove labels, and optionally merge clean requests after explicit approval.
Why use it?
It removes repetitive work from reviewing pull requests, such as finding open requests, writing comments, and adding labels.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/initializ/forge/code-review-github
Any agent
npx skills add initializ/forge --skill code-review-github
Clone the repo
git clone --depth 1 https://github.com/initializ/forge

Made for: Claude Code, Codex.

Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.01987
Opus 5 $0.00015 $0.00993
Sonnet 5 $0.00006 $0.00397
Haiku 4.5 $0.00003 $0.00199

Measured yesterday against content hash c754d3c3a7c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review-github 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 yesterday.

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.

forge-skills/local/embedded/code-review-github/SKILL.md · 221 lines

How it starts

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

Code Review GitHub Integration

Orchestrates GitHub PR workflows for AI code review. Provides tools to list pull requests, post inline review comments, apply labels based on review findings, and (with explicit opt-in) auto-merge clean PRs.

All GitHub API interactions go through the gh CLI. Direct HTTP requests and web searches are denied to ensure all operations are auditable and respect GitHub's rate limiting.

Authentication

export GH_TOKEN="ghp_..."

The token needs read-write access since this skill posts comments, applies labels, and can merge PRs:

Scope (classic PAT) Fine-grained permission Why
repo Pull requests: Read & Write List PRs, post review comments, merge
repo Contents: Read Read PR diff and file contents
repo Issues: Write Apply and remove labels
read:org (optional) Organization: Read Org-level label policies

Minimum fine-grained token permissions: pull_requests: write, contents: read, issues: write on the target repository.

For read-only review without GitHub interaction, use the code-review skill instead — it only needs read access.

Environment Variables

Variable Required Description
GH_TOKEN yes GitHub personal access token or fine-grained token
REVIEW_AUTO_MERGE no Set to true to enable guarded auto-merge. Default: disabled
REVIEW_LABEL_PREFIX no Prefix for review labels (default: review/). Labels: review/approved, review/needs-changes, review/security-concern

Tool: review_github_list_prs

List open pull requests for a repository, optionally filtered by author or label.

Input:

Parameter Type Required Description
repo string yes Repository in owner/repo format
author string no Filter by PR author username
label string no Filter by label
limit integer no Maximum PRs to return (default: 10, max: 100)

Read the full file on GitHub · 221 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. yesterday First seen · 221 lines · 30 tokens per session scan A c754d3c3a7c6

Subscribe to this mod's changes

code-review-github is a skill published in the GitHub repository initializ/forge (156 stars, last pushed 4d ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,987 once invoked, about $0.0002 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-30.