finalize-pr

finalize-pr is a skill for Claude Code from dryvist/claude-code-plugins. It costs 63 tokens per session (3,479 once invoked), scanned A, original, Apache-2.0.

A tool for taking an existing GitHub pull request—the proposed change submitted for review—and getting it ready to merge by handling review comments, security findings, conflicts, and failed checks.

In plain words
What is it for?
It helps finish one pull request, every open pull request in a repository, or every open pull request across an organisation. It also handles pull requests created by bots.
Why use it?
It removes the need to repeatedly monitor several sources of feedback and fix each problem by hand before a pull request can be merged.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the github-workflows plugin — 18 skills shipped together

Good fit It helps finish one pull request, every open pull request in a repository, or every open pull request across an organisation. It also handles pull requests created by bots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/finalize-pr
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 dryvist/claude-code-plugins --skill finalize-pr
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install github-workflows, the plugin that ships this one along with the rest of its 18 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 finalize-pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/finalize-pr"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/finalize-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,479 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.00063 $0.03479
Opus 5.5 $0.00025 $0.01392
Sonnet 5.5 $0.00013 $0.00696
Haiku 4.5 $0.00006 $0.00348

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

Security

Grade A, and why

finalize-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 4d 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.

github-workflows/skills/finalize-pr/SKILL.md · 283 lines

How it starts

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

Finalize PR

FULLY AUTOMATIC - Fully automates PR finalization: monitor, fix, prepare for merge. Assumes PR already exists. No manual intervention required. For manual review-focused workflows, use /review-pr.

State warning: Automated reviewers (CodeQL, Copilot, AI reviews) post asynchronously. CI may have re-run. Merge conflicts may have appeared. Re-fetch live PR state from Step 1.

Goal and done-criteria

Goal: drive every targeted PR (single, all in-repo, or org) to merge-ready without manual intervention — CI green, CodeQL clean, all PR feedback answered, no conflicts, code simplified, metadata current — by taking direct action on whatever blocks it, never by reporting the blocker back.

Done when, for every targeted PR: Phase 3's live-API gate passes (re-run on every invocation — "mergeable" means git-conflict-free only, not fully unblocked); /resolve-pr-threads and /resolve-codeql found nothing left to fix; /simplify ran once after all other fixes (Step 2.3.5 — pre-push simplification is /ship's job, not this skill's); local linters and tests pass; title/description/linked-issues were regenerated via a haiku subagent before reporting ready; bot-authored PRs (dependabot, release-please, claude, github-actions, etc.) were never filtered out; org mode never crossed the org boundary the current repo implies; and, on a Git Flow repo, the post-merge develop→main promotion via /promote-release was added to the active session checklist as mandatory, not optional.

Phase 1: PR Discovery and Targeting

Steps 1.1–1.4 run sequentially.

1.1 Parse Argument

Argument Mode Target
(none) Current branch Single PR on current branch
42 Single PR PR #42
all Repo-wide All open PRs in current repo
org Org-wide All open PRs across all repos in current org

1.2 Discover PRs

  • Single/current-branch: Resolve PR number from current branch, proceed to Phase 1.5.
  • Repo-wide (all): List all open PRs (limit 50) with number, title, author, headRefName.
  • Org-wide (org): Enumerate repos, list open PRs per repo (limit 50 each, 50 total cap), include repository field.

Read the full file on GitHub · 283 lines

Files

What ships with it

1 file 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. 4d ago Changed · +23 lines ada760bf2bea
  2. 6d ago Changed 5995d73ce3a0
  3. 11d ago Changed · -11 lines 8aca92e36fdf
  4. 24d ago Changed · -22 lines 2b34caa721fe
  5. 1mo ago First seen · 293 lines · 63 tokens per session scan A 56b11970f719

Subscribe to this mod's changes

finalize-pr is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 3,479 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-08-31.

Related

Other skills, from other repositories

review-pr

Multi-agent PR review with four modes (review, re-review, self-review, address-feedback) - spawns parallel subagents, saves diff to /tmp for context efficiency, supports file exclusion patterns.

hoblin/claude-ruby-marketplace · 39 tokens

code-review-loop

Use when opening a PR for review or when receiving review feedback. Activate for keywords like "code review", "PR review", "request review", "review feedback", "address comments", "reviewer said". Covers both ends of the loop: preparing a reviewable PR and acting on feedback rigorously. Always engage with every…

duthaho/claudekit · 79 tokens

prkit

Draft and open a GitHub pull request from your branch, with title, summary, and test plan written from the actual commits and diff, then created with the gh CLI, embedding verifykit proof artifacts inline when a bundle is present. Use when the user asks to open a PR, says "create a pull request", "raise a PR", "submit…

mimukit/skills · 95 tokens

mergekit

Take an open GitHub PR and set it up for review on your machine (worktree, project running, review pack), then merge it once you say so, or service review feedback on a PR you authored. Use when you say "pull PR #34 down so I can test it", "merge PR #34", "address the review comments on my PR", or "my PR is red, fix…

mimukit/skills · 88 tokens

contribute

Complete contribution workflow using git-town. Create branch → commit → PR → ship. Preflight at every step.

terrylica/cc-skills · 25 tokens

commit-review

Review git commits for quality, clarity, and best practices before pushing. Checks commit message format, diff size, test coverage signals, and common mistakes. Use when reviewing commits, before pushing, when asked to "check my commits", "review changes", or "is this ready to push".

myclaude-sh/myclaude-creator-engine · 61 tokens