pr-checks

pr-checks is a command for Claude Code from vishnu2kmohan/mcp-server-langgraph. It costs 6 tokens per session (3,529 once invoked), scanned A, original, MIT.

A command that summarises the checks and review state of a GitHub pull request, which is a proposed code change awaiting review.

In plain words
What is it for?
Checking required checks, approvals, merge conflicts, pull-request size, continuous-integration results, and code-coverage changes.
Why use it?
It gathers information that is otherwise spread across automated checks, reviews, merge-conflict status, and code changes.

Command for Claude Code

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 commands/vishnu2kmohan/mcp-server-langgraph/pr-checks
Clone the repo
git clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraph

Made for: Claude Code.

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-checks

README.md
[![agentmods](https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/pr-checks.svg)](https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/pr-checks)
Your own site
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/pr-checks"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/pr-checks.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,529 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.00006 $0.03529
Opus 5 $0.00003 $0.01765
Sonnet 5 $0.00001 $0.00706
Haiku 4.5 $0.00001 $0.00353

Measured 5d ago against content hash 64aa2c0255c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-checks 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.

.claude/commands/pr-checks.md · 572 lines

How it starts

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

PR Checks Summary

Usage: /pr-checks or /pr-checks <pr-number>

Purpose: Comprehensive Pull Request validation summary


🔍 What This Command Does

Shows complete PR validation status including:

  1. Required checks status (passing/failing/pending)
  2. Review approval status
  3. Merge conflicts status
  4. PR size and complexity metrics
  5. CI/CD workflow results
  6. Code coverage impact

📊 PR Validation Workflow

Step 1: Identify Pull Request

Determine which PR to check:

# If PR number provided
if [ -n "$ARGUMENTS" ]; then
    PR_NUMBER="$ARGUMENTS"
else
    # Get PR for current branch
    PR_NUMBER=$(gh pr view --json number --jq '.number' 2>/dev/null)

    if [ -z "$PR_NUMBER" ]; then
        echo "No PR found for current branch"
        echo "Create PR with: gh pr create"
        exit 1
    fi
fi

echo "Checking PR #$PR_NUMBER"

Step 2: Fetch PR Information

Get comprehensive PR details:

# Get PR metadata
gh pr view $PR_NUMBER --json \
  number,title,state,isDraft,mergeable,reviewDecision,\
  statusCheckRollup,additions,deletions,changedFiles,\
  url,baseRefName,headRefName,author,createdAt,updatedAt

# Example output structure:
# {
#   "number": 123,
#   "title": "feat: add session management",
#   "state": "OPEN",
#   "isDraft": false,
#   "mergeable": "MERGEABLE",
#   "reviewDecision": "APPROVED",
#   "statusCheckRollup": [...]
#   "additions": 450,
#   "deletions": 120,
#   "changedFiles": 8
# }

Step 3: Check Required Status Checks

Analyze CI/CD check status:

# Parse status checks
gh pr view $PR_NUMBER --json statusCheckRollup \
  --jq '.statusCheckRollup[] | {name: .name, status: .status, conclusion: .conclusion}'

# Group by status
PASSING=$(gh pr view $PR_NUMBER --json statusCheckRollup \
  --jq '[.statusCheckRollup[] | select(.conclusion=="SUCCESS")] | length')

FAILING=$(gh pr view $PR_NUMBER --json statusCheckRollup \
  --jq '[.statusCheckRollup[] | select(.conclusion=="FAILURE")] | length')

PENDING=$(gh pr view $PR_NUMBER --json statusCheckRollup \
  --jq '[.statusCheckRollup[] | select(.status=="PENDING")] | length')

TOTAL=$(gh pr view $PR_NUMBER --json statusCheckRollup --jq '.statusCheckRollup | length')

Read the full file on GitHub · 572 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. 5d ago First seen · 572 lines · 6 tokens per session scan A 64aa2c0255c1

Subscribe to this mod's changes

pr-checks is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 11d ago), licensed MIT. It adds 6 tokens to every session and 3,529 once invoked, about $0.0000 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-31.