pr-verification

pr-verification is a skill for Claude Code from aws-samples/sample-agent-assisted-sdlc. It costs 21 tokens per session (332 once invoked), scanned A, original, Apache-2.0.

A procedure for checking whether a GitHub pull request already exists, is open, was merged, or was closed without merging. A pull request is a proposal to add code changes to a shared repository.

In plain words
What is it for?
It is for checking a branch's pull requests, distinguishing open, merged, and closed states, and choosing whether to continue the existing implementation flow or stop.
Why use it?
It prevents duplicate pull requests and avoids falsely reporting that work was merged by using the branch and merge records as the decision source.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sdlc-claude plugin — 6 skills, 3 agents, 1 hook shipped together

Good fit It is for checking a branch's pull requests, distinguishing open, merged, and closed states, and choosing whether to continue the existing implementation flow or stop.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-agent-assisted-sdlc/pr-verification
About the project

Agent-Assisted SDLC is a sample software development pipeline in which an AI coding assistant reads an issue, changes a codebase, and opens a pull request through Amazon Bedrock AgentCore. Developers use it to automate work from an issue to a proposed code change, with a shared orchestration process and repository-specific guidance. The catalogue entries provide the skills, agents, plugin, hook, and instruction used by this workflow.

aws-samples/sample-agent-assisted-sdlc · 47 stars · on GitHub

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 aws-samples/sample-agent-assisted-sdlc --skill pr-verification
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-agent-assisted-sdlc

Made for: Claude Code.

Or install sdlc-claude, the plugin that ships this one along with the rest of its 6 skills, 3 agents, 1 hook.

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 pr-verification

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification/github.svg)](https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification/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 pr-verification

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-assisted-sdlc/pr-verification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 332 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.00021 $0.00332
Opus 5.5 $0.00008 $0.00133
Sonnet 5.5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

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

Security

Grade A, and why

pr-verification 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 5d 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.

coding-assistants/claude-code/plugin/skills/pr-verification/SKILL.md · 17 lines

What it actually says

Run this procedure before any action that reports "already merged" or creates a PR. Uses ONLY state + mergedAt for control flow; mergeStateStatus is diagnostic-only.

  1. Resolve the branch name feat/issue-{number} from project.json.
  2. Call mcp__gateway__source-control___list_pull_requests with head={owner}:feat/issue-{number} (REST-filtered fast path). If empty or errors, list open PRs and match headRefName == feat/issue-{number} client-side (fallback).
  3. If a PR is found, call mcp__gateway__source-control___pull_request_read and read state, mergedAt, mergeStateStatus. Log mergeStateStatus as diagnostic context only — it MUST NOT drive any branching decision.
  4. Four-way decision using ONLY state + mergedAt:
    • mergedAt not null → already merged. Set labels ["{{LABEL_PREFIX}}:pr-completed"], post comment, exit.
    • state == OPEN AND mergedAt null → open PR exists. Do NOT create a duplicate. Fall through to existing flow.
    • state == CLOSED AND mergedAt null → closed without merge. Set labels ["{{LABEL_PREFIX}}:error"], post comment, exit.
    • No PR found → MUST NOT report success. Continue to implement+pr flow.
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. 5d ago First seen · 17 lines · 21 tokens per session scan A 58aa41aca181

Subscribe to this mod's changes

pr-verification is a skill published in the GitHub repository aws-samples/sample-agent-assisted-sdlc (47 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 332 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-20.