extract-pr-review-rules

extract-pr-review-rules is a skill for Claude Code from eai-org/agent-toolkit. It costs 37 tokens per session (1,987 once invoked), scanned A, original, MIT.

A tool that turns inline pull-request review comments into a project document of reviewer rules. It remembers where the previous run stopped and fetches only newer comments on later runs.

In plain words
What is it for?
Use it to collect review comments from a repository and build or refresh a per-reviewer rules document in the current project.
Why use it?
It reduces the need to repeatedly interpret old review discussions and makes repository-specific review expectations available as a checklist.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Part of the agent-toolkit plugin — 31 skills shipped together

Good fit Use it to collect review comments from a repository and build or refresh a per-reviewer rules document in the current project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eai-org/agent-toolkit/extract-pr-review-rules
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 eai-org/agent-toolkit --skill extract-pr-review-rules
Clone the repo
git clone --depth 1 https://github.com/eai-org/agent-toolkit

Made for: Claude Code.

Or install agent-toolkit, the plugin that ships this one along with the rest of its 31 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 extract-pr-review-rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eai-org/agent-toolkit/extract-pr-review-rules"><img src="https://agentmods.dev/badge/skills/eai-org/agent-toolkit/extract-pr-review-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 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. 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.00037 $0.01987
Opus 5.5 $0.00015 $0.00795
Sonnet 5.5 $0.00007 $0.00397
Haiku 4.5 $0.00004 $0.00199

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

Security

Grade A, and why

extract-pr-review-rules 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 29d 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.

skills/extract-pr-review-rules/SKILL.md · 156 lines

How it starts

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

Extract PR review rules

Mine the conventions a repository's reviewers enforce in their inline PR review comments into the project's own governing docs — each rule in the topic doc it belongs to, so it loads only with its subject, never as one always-read rules file. Re-runnable: each run resumes from the last checkpoint, fetching only newer comments.

Invocation: /extract-pr-review-rules <repo-url>

1. Resolve the target

Identify the forge from the repo URL and work through whatever MCP or CLI is connected for it (GitHub → gh). Unrecognized URL, or nothing connected → ask.

The URL is only the comment source; the rules land in the current project's docs, and the run's state in a checkpoint file in its planning directory — the one its governing docs name or already in use, else .agents/plans/, created when missing — default .agents/plans/pr-review-checkpoint.md. Absent → first run, no checkpoint, whole history in scope. Already there → read it: built from the same repo, its checkpoint makes this a refresh; built from another repo, ask — another file path, or replace it with a first run.

Done when forge tooling, checkpoint path, and checkpoint (a timestamp, or none) are settled.

2. Fetch to disk

Page the repo's inline review-comment feed across all PRs, open and closed, straight to a file in the session's scratch dir ($SCRATCH below; substitute it) — never through the model, which truncates silently. On a refresh, filter by the checkpoint, which on most forges matches the last-updated time, so an edited old comment comes down too. The feed is the forge's repo-wide listing of inline review comments, paged and filtered by time; on GitHub (first run: drop &since=<checkpoint>):

date -u +%Y-%m-%dT%H:%M:%SZ > "$SCRATCH/started"
gh api --paginate --slurp "repos/<owner>/<repo>/pulls/comments?per_page=100&since=<checkpoint>" \
  > "$SCRATCH/pages.json" && jq add "$SCRATCH/pages.json" > "$SCRATCH/comments.json"

A forge with threads only per PR → list the PRs updated since the checkpoint and page each one's threads. A non-zero exit from any command, or an output file that is not one JSON array, is a partial fetch: record no checkpoint, split nothing, report and stop.

Read the full file on GitHub · 156 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. 29d ago Changed · -13 lines · +2 tokens per session 1f5dd07d60f6
  2. 1mo ago Changed · +2 lines ddf9038f6912
  3. 1mo ago Changed · +36 lines · -4 tokens per session 8baa4399efd7
  4. 1mo ago First seen · 131 lines · 39 tokens per session scan A b88110df0193

Subscribe to this mod's changes

extract-pr-review-rules is a skill published in the GitHub repository eai-org/agent-toolkit (116 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,987 once invoked, about $0.0001 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-10-14.

Related

extract-pr-review-rules compared with skills from other repositories

extract-pr-review-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
extract-pr-review-ruleseai-org/agent-toolkitSkill116todayMITA37Claude Code
gsd-pr-branchopen-gsd/gsd-coreSkill12ktodayMITA23Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA61Claude Code, Codex
suede-release-to-marketingJasonColapietro/suede-creator-skillsSkill121todayMITA68Claude Code, Codex
ai-diff-reviewer-address-reviewDailybotHQ/deepworkplan-skillSkill2712d agoMITA225Claude Code
writing-pull-requestsCristhianzl/claude-skills-czlSkill52d agoMITA66Claude Code, Codex