extract-pr-review-rules

extract-pr-review-rules is a skill for Claude Code from eai-org/agent-toolkit. It costs 39 tokens per session (1,255 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 CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the agent-toolkit plugin — 30 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 30 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 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 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.00039 $0.01255
Opus 5.5 $0.00016 $0.00502
Sonnet 5.5 $0.00008 $0.00251
Haiku 4.5 $0.00004 $0.00126

Measured 3d ago against content hash b88110df0193, 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 3d 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 · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 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 one governing doc the project's review skills run as a checklist. 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 doc lands in the current project, under its governing-docs convention, default .agents/docs/pr-review-rules.md. Absent → first run, no checkpoint, whole history in scope. Already there → read it: built from the same repo, its checkpoint and standing rules make this a refresh; built from another repo, ask — another doc path, or replace it with a first run.

Done when forge tooling, doc 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 — never through the model, which truncates silently. On a refresh, filter by the checkpoint so only new comments come down:

gh api --paginate "repos/<owner>/<repo>/pulls/comments?per_page=100&since=<checkpoint>" \
  > "$SCRATCH/comments.json"

Record the time the fetch started as the next checkpoint — not the newest comment's timestamp, which would skip anything posted while the run was working.

Then, still on disk, drop bots and deleted accounts, tally comments per author, and split the file into one per author. Nothing new to process → say so, leave the doc untouched, and stop.

Done when each author's file exists, the tallies plus the dropped comments sum to the fetched total, and the new checkpoint is recorded.

3. Extract, one subagent per reviewer

One isolated subagent per author, in parallel, each reading only that author's file so the raw comments never reach this session. No subagents in the runtime → work the files here one at a time. Prompt each with:

Read the full file on GitHub · 131 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. 3d 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 (61 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,255 once invoked, about $0.0002 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

Other skills, from other repositories

gsd-pr-branch

Create a clean PR branch by filtering out .planning/ commits — ready for code review.

open-gsd/gsd-core · 23 tokens

pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 59 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

ai-diff-reviewer-address-review

Close the review loop in one invocation — a bare invocation on a fresh context is fully specified — it targets the current branch's open PR. Surveys ALL the PR's CI health (every workflow and check — failing checks diagnosed from logs and fixed, a behind branch updated, at most one flake re-run), checks whether the AI…

DailybotHQ/deepworkplan-skill · 225 tokens

github-pr-best-practices

Best practices for creating GitHub pull requests including conventional commits, PR formatting, and multi-language support (en/ja). Use when creating PRs, writing PR descriptions, or formatting commit messages.

aiskillstore/marketplace · 46 tokens

git-workflow

Enhanced git operations using lazygit, gh (GitHub CLI), and delta. Triggers on: stage changes, create PR, review PR, check issues, git diff, commit interactively, GitHub operations, rebase, stash, bisect.

aiskillstore/marketplace · 55 tokens